vcl/source/filter/ixpm/xpmread.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit e02f068b9719c89d7aac1aaf4bb650160a3a3aed Author: Caolán McNamara <caol...@redhat.com> Date: Sat Nov 11 15:10:30 2017 +0000 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 <c...@libreoffice.org> Reviewed-by: David Tardon <dtar...@redhat.com> 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;
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits