poppler/Gfx.cc | 1 + 1 file changed, 1 insertion(+) New commits: commit 2c0a0b07fdb2c76487ca4af7b2f50da9904c6c23 Author: Albert Astals Cid <aa...@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"); _______________________________________________ poppler mailing list poppler@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/poppler