fofi/FoFiType1C.cc |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 97caec070090d112d4fb5b63dc433a34e214c7e5
Author: Albert Astals Cid <[email protected]>
Date:   Fri May 25 19:38:19 2018 +0200

    FoFiType1C::readTopDict: Return early if parsing fails
    
    fixes oss-fuzz/8456

diff --git a/fofi/FoFiType1C.cc b/fofi/FoFiType1C.cc
index b14561ff..37694869 100644
--- a/fofi/FoFiType1C.cc
+++ b/fofi/FoFiType1C.cc
@@ -2126,6 +2126,9 @@ void FoFiType1C::readTopDict() {
   topDict.fdSelectOffset = 0;
 
   getIndexVal(&topDictIdx, 0, &topDictPtr, &parsedOk);
+  if (!parsedOk) {
+      return;
+  }
   pos = topDictPtr.pos;
   nOps = 0;
   while (pos < topDictPtr.pos + topDictPtr.len) {
_______________________________________________
poppler mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to