summaryrefslogtreecommitdiffstats
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-11-11 15:10:30 +0000
committerDavid Tardon <dtardon@redhat.com>2017-11-20 09:35:45 +0100
commite02f068b9719c89d7aac1aaf4bb650160a3a3aed (patch)
tree9925529e290f1a5f7d449cee89a2df09a9d683a6 /vcl
parentRelated: tdf#112549 gtk3 hide/show menubar on enter/exit fullscreen (diff)
downloadcore-e02f068b9719c89d7aac1aaf4bb650160a3a3aed.tar.gz
core-e02f068b9719c89d7aac1aaf4bb650160a3a3aed.zip
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/44629 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'vcl')
-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 abda3b45cf11..d65844976d3c 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;