[poppler] poppler/Function.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jan 25 18:50:37 UTC 2019


 poppler/Function.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f2493d53a70e10ea69bd147c48be7c8544979436
Author: Albert Astals Cid <aacid at kde.org>
Date:   Fri Jan 25 19:49:54 2019 +0100

    SampledFunction: Fix uninitialized memory read
    
    oss-fuzz/12608

diff --git a/poppler/Function.cc b/poppler/Function.cc
index cb8fae5c..2b882885 100644
--- a/poppler/Function.cc
+++ b/poppler/Function.cc
@@ -276,7 +276,7 @@ SampledFunction::SampledFunction(Object *funcObj, Dict *dict) {
       }
       idx = (idx + bit) * sampleSize[j-1];
     }
-    if (sampleSize[0] == 1) {
+    if (m > 0 && sampleSize[0] == 1) {
       bit = 0;
     } else {
       bit = (t >> (m - 1)) & 1;


More information about the poppler mailing list