poppler/GfxState.cc | 3 +++ 1 file changed, 3 insertions(+) New commits: commit d706a9ae17bbc03cc2f0b19f89f84b39571df0a6 Author: Albert Astals Cid <aa...@kde.org> Date: Thu Aug 1 23:27:27 2019 +0200
GfxRadialShading::parse: Fix memory leak on broken files diff --git a/poppler/GfxState.cc b/poppler/GfxState.cc index 33d2aaf4..b239e273 100644 --- a/poppler/GfxState.cc +++ b/poppler/GfxState.cc @@ -4277,6 +4277,9 @@ GfxRadialShading *GfxRadialShading::parse(GfxResources *res, Dict *dict, OutputD for (i = 0; i < nFuncsA; ++i) { Object obj2 = obj1.arrayGet(i); if (!(funcsA[i] = Function::parse(&obj2))) { + for (int j = 0; j < i; ++j) { + delete funcsA[j]; + } return nullptr; } } _______________________________________________ poppler mailing list poppler@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/poppler