[poppler] poppler/JBIG2Stream.cc
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sun May 8 22:49:54 UTC 2022
poppler/JBIG2Stream.cc | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 27672cc02a6dd07849bf83a298597e083831ec49
Author: Albert Astals Cid <aacid at kde.org>
Date: Wed May 4 23:25:49 2022 +0200
JBIGStream: Fix unint memory read on broken files
oss-fuzz/47224
diff --git a/poppler/JBIG2Stream.cc b/poppler/JBIG2Stream.cc
index 57e1e3a8..47889ed5 100644
--- a/poppler/JBIG2Stream.cc
+++ b/poppler/JBIG2Stream.cc
@@ -688,6 +688,9 @@ JBIG2Bitmap *JBIG2Bitmap::getSlice(unsigned int x, unsigned int y, unsigned int
void JBIG2Bitmap::expand(int newH, unsigned int pixel)
{
+ if (unlikely(!data)) {
+ return;
+ }
if (newH <= h || line <= 0 || newH >= (INT_MAX - 1) / line) {
error(errSyntaxError, -1, "invalid width/height");
gfree(data);
More information about the poppler
mailing list