[poppler] poppler/Gfx.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Tue May 22 18:16:06 UTC 2018
poppler/Gfx.cc | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 2c0a0b07fdb2c76487ca4af7b2f50da9904c6c23
Author: Albert Astals Cid <aacid at kde.org>
Date: Tue May 22 20:15:39 2018 +0200
Gfx::doImage: Fix memory leak on malformed documents
fixes oss-fuzz/8452
diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc
index bed1dc4b..e0ccb4c2 100644
--- a/poppler/Gfx.cc
+++ b/poppler/Gfx.cc
@@ -4455,6 +4455,7 @@ void Gfx::doImage(Object *ref, Stream *str, GBool inlineImg) {
}
maskColorSpace = GfxColorSpace::parse(nullptr, &obj1, out, state);
if (!maskColorSpace || maskColorSpace->getMode() != csDeviceGray) {
+ delete maskColorSpace;
goto err1;
}
obj1 = maskDict->lookup("Decode");
More information about the poppler
mailing list