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

New commits:
commit 2ea24b168ab196237093b49cbc24427b023aa79b
Author: Albert Astals Cid <[email protected]>
Date:   Sun Sep 23 22:35:32 2018 +0200

    FoFiType1C::getIndexVal: Don't calculate val if it's not ok
    
    No need to do extra work if we're saying it won't be used
    
    Fixes oss-fuzz/10632

diff --git a/fofi/FoFiType1C.cc b/fofi/FoFiType1C.cc
index d6a241d1..d70c80b5 100644
--- a/fofi/FoFiType1C.cc
+++ b/fofi/FoFiType1C.cc
@@ -2742,6 +2742,7 @@ void FoFiType1C::getIndexVal(const Type1CIndex *idx, int 
i,
       pos1 <= idx->startPos || pos1 > idx->endPos ||
       pos1 < pos0) {
     *ok = gFalse;
+    return;
   }
   val->pos = pos0;
   val->len = pos1 - pos0;
_______________________________________________
poppler mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to