cid#1607687 Overflowed constant
This code does not appear to be handling the case where there
is no anchor correctly, all the way back to
commit c5718b9414
Author: Andreas Bille <abi@openoffice.org>
Date: Wed Oct 31 12:08:14 2001 +0000
#83054#
Now reading the necessary variables( provider.cxx ),
Change-Id: Ia8f514a95ca2e3ae17129b34f0ed444cd9d0ade8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174122
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
committed by
Noel Grandin
parent
2264538ec2
commit
2596131a1f
@@ -592,7 +592,7 @@ void KeywordInfo::KeywordElement::init( Databases const *pDatabases,helpdatafile
|
||||
if( idx == std::u16string_view::npos )
|
||||
break;
|
||||
size_t h = ids.find( '#', k );
|
||||
if( h == std::u16string_view::npos || h < idx )
|
||||
if( h != std::u16string_view::npos && h < idx )
|
||||
{
|
||||
// found an anchor
|
||||
id.push_back( OUString(ids.substr( k, h-k )) );
|
||||
|
||||
Reference in New Issue
Block a user