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

New commits:
commit f2493d53a70e10ea69bd147c48be7c8544979436
Author: Albert Astals Cid <[email protected]>
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;
_______________________________________________
poppler mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to