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

Index: poppler-0.79.0/poppler/JBIG2Stream.cc
===================================================================
--- poppler-0.79.0.orig/poppler/JBIG2Stream.cc
+++ poppler-0.79.0/poppler/JBIG2Stream.cc
@@ -1880,6 +1880,10 @@ bool JBIG2Stream::readSymbolDictSeg(unsi
 			     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