summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-11-11 15:10:30 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-11-11 20:27:06 +0100
commit019e6ae7be38176978943d95fa3b586830e1b3b1 (patch)
treeeec29b325f636d41bf2afd3717166402a3b83727 /vcl/source
parent331b9aabb2ce91171bd0256f9e9f22761537dd9f (diff)
ofz: XPMReader::ImplGetColKey short read
like commit 10a2388558df957b30136ba32ecc97ddef43fb57 Date: Tue Jan 17 12:35:24 2017 +0000 ofz#411: XPMReader::ImplGetColKey short read Change-Id: Iffc7ddb00b2849b2f9fad17314086b87d3097660 Reviewed-on: https://gerrit.libreoffice.org/44628 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/source')
-rw-r--r--vcl/source/filter/ixpm/xpmread.cxx3
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;