[Libreoffice-commits] core.git: Branch 'libreoffice-5-3' - vcl/source
Caolán McNamara
caolanm at redhat.com
Tue Jan 10 13:25:50 UTC 2017
vcl/source/filter/ixbm/xbmread.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit e0eee341997e372e2e07638c1b8a5d2e42bd7bbf
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Jan 9 09:05:12 2017 +0000
ofz#394 xbm ParseDefine problem
Change-Id: I75fb761d23fdb3780088a9d209200429edb57a26
Reviewed-on: https://gerrit.libreoffice.org/32877
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Eike Rathke <erack at redhat.com>
diff --git a/vcl/source/filter/ixbm/xbmread.cxx b/vcl/source/filter/ixbm/xbmread.cxx
index 5b0741f..15931a6 100644
--- a/vcl/source/filter/ixbm/xbmread.cxx
+++ b/vcl/source/filter/ixbm/xbmread.cxx
@@ -165,11 +165,11 @@ long XBMReader::ParseDefine( const sal_Char* pDefine )
cTmp = *pTmp--;
// search last digit
- while( pHexTable[ cTmp ] == -1 )
+ while (pHexTable[ cTmp ] == -1 && pTmp >= pDefine)
cTmp = *pTmp--;
// move before number
- while( pHexTable[ cTmp ] != -1 )
+ while (pHexTable[ cTmp ] != -1 && pTmp >= pDefine)
cTmp = *pTmp--;
// move to start of number
More information about the Libreoffice-commits
mailing list