[poppler] fofi/FoFiType1C.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun Sep 23 20:36:12 UTC 2018


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

New commits:
commit 2ea24b168ab196237093b49cbc24427b023aa79b
Author: Albert Astals Cid <aacid at kde.org>
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;


More information about the poppler mailing list