[Libreoffice-commits] core.git: vcl/source
Caolán McNamara
caolanm at redhat.com
Wed Feb 8 10:37:25 UTC 2017
vcl/source/filter/ixbm/xbmread.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 0898d12d218431a7879c0d891a024702ce35c0b1
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/32876
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/source/filter/ixbm/xbmread.cxx b/vcl/source/filter/ixbm/xbmread.cxx
index 1e80a1f..4a4c358 100644
--- a/vcl/source/filter/ixbm/xbmread.cxx
+++ b/vcl/source/filter/ixbm/xbmread.cxx
@@ -156,11 +156,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