diff options
-rw-r--r-- | vcl/source/filter/ixpm/xpmread.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/filter/ixpm/xpmread.cxx b/vcl/source/filter/ixpm/xpmread.cxx index 9d6e8d14b42d..bb89e7a5e647 100644 --- a/vcl/source/filter/ixpm/xpmread.cxx +++ b/vcl/source/filter/ixpm/xpmread.cxx @@ -406,6 +406,9 @@ bool XPMReader::ImplGetColKey( sal_uInt8 nKey ) { sal_uInt8 nTemp, nPrev = ' '; + if (mnStringSize < mnCpp + 1) + return false; + mpPara = mpStringBuf + mnCpp + 1; mnParaSize = 0; |