diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-08-22 16:20:56 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-08-22 16:20:56 +0200 |
commit | c0ee13464f239d84bb4afaf34e491413eb49961b (patch) | |
tree | 60b8608d6e9e38318dae1239bb315e3f1e9dc6b3 /basic | |
parent | 87c271d4a9c373ea13bd682945c1cc8a9ac52bea (diff) |
Avoid OUString::operator[] out-of-bounds assertion when line ends with "&"
Change-Id: I430e1df81a378243b139c654869589f1a75f5897
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/comp/scanner.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/comp/scanner.cxx b/basic/source/comp/scanner.cxx index 968458f696a8..bb263a802f12 100644 --- a/basic/source/comp/scanner.cxx +++ b/basic/source/comp/scanner.cxx @@ -421,7 +421,7 @@ bool SbiScanner::NextSym() } // Hex/octal number? Read in and convert: - else if(nCol < aLine.getLength() && aLine[nCol] == '&') + else if(aLine.getLength() - nCol > 1 && aLine[nCol] == '&') { ++pLine; ++nCol; sal_Unicode base = 16; |