File poppler-CVE-2019-9545.patch of Package poppler.31743

Index: poppler-0.24.4/poppler/JBIG2Stream.cc
===================================================================
--- poppler-0.24.4.orig/poppler/JBIG2Stream.cc
+++ poppler-0.24.4/poppler/JBIG2Stream.cc
@@ -1859,6 +1859,10 @@ GBool JBIG2Stream::readSymbolDictSeg(Gui
 			     huffTableF, huffTableH, huffTableK, huffTableO,
 			     huffTableO, huffTableO, huffTableO, huffTableA,
 			     sdrTemplate, sdrATX, sdrATY);
+          if (unlikely(!bitmaps[numInputSyms + i])) {
+              error(errSyntaxError, curStr->getPos(), "NULL bitmap in readTextRegion");
+                        goto syntaxError;
+          }
 	}
 
       // non-ref/agg coding
openSUSE Build Service is sponsored by