diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-01-09 09:05:12 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-02-08 10:37:03 +0000 |
commit | 0898d12d218431a7879c0d891a024702ce35c0b1 (patch) | |
tree | 800e9d1a061a7f4b625daf46f66d082d57e86642 /vcl | |
parent | 321205e4a37e073158170a10f55e8641198c347c (diff) |
ofz#394 xbm ParseDefine problem
Change-Id: I75fb761d23fdb3780088a9d209200429edb57a26
Reviewed-on: https://gerrit.libreoffice.org/32876
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/filter/ixbm/xbmread.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/filter/ixbm/xbmread.cxx b/vcl/source/filter/ixbm/xbmread.cxx index 1e80a1fcb263..4a4c358b5aa7 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 |