[poppler] poppler/Function.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Tue Jun 19 15:43:12 UTC 2018
poppler/Function.cc | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 37d2aa88409429397a6c8801b34213f6eded8e1e
Author: Albert Astals Cid <aacid at kde.org>
Date: Tue Jun 19 17:42:16 2018 +0200
PostScriptFunction::parseCode: Fix memory leak on malformed files
Fixes oss-fuzz/8859
diff --git a/poppler/Function.cc b/poppler/Function.cc
index 71992d95..cc32414b 100644
--- a/poppler/Function.cc
+++ b/poppler/Function.cc
@@ -1303,6 +1303,7 @@ GBool PostScriptFunction::parseCode(Stream *str, int *codePtr) {
if (!tok->cmp("{")) {
elsePtr = *codePtr;
if (!parseCode(str, codePtr)) {
+ delete tok;
return gFalse;
}
delete tok;
More information about the poppler
mailing list