[Libreoffice-commits] core.git: vcl/source
Caolán McNamara
caolanm at redhat.com
Tue Jun 12 14:15:06 UTC 2018
vcl/source/filter/igif/gifread.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit f24f7b83986da4934473cd8e51a8695e009f77d3
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Jun 12 13:32:01 2018 +0100
crashtesting: asserts on empty gifs
since...
commit d46c32140fdb05758c039dd27552b1788faac104
Date: Thu Jun 7 12:37:33 2018 +0200
assert in BitmapInfoAccess if bitmap is empty or we can't read from it
Change-Id: I0861667227b512634bce7381ef77ab99c7c011cf
Reviewed-on: https://gerrit.libreoffice.org/55685
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/source/filter/igif/gifread.cxx b/vcl/source/filter/igif/gifread.cxx
index b050769be6ad..0000ef1ce61d 100644
--- a/vcl/source/filter/igif/gifread.cxx
+++ b/vcl/source/filter/igif/gifread.cxx
@@ -198,6 +198,12 @@ void GIFReader::CreateBitmaps(long nWidth, long nHeight, BitmapPalette* pPal,
return;
}
+ if (!aSize.Width() || !aSize.Height())
+ {
+ bStatus = false;
+ return;
+ }
+
if (bGCTransparent)
{
const Color aWhite(COL_WHITE);
More information about the Libreoffice-commits
mailing list