diff --git a/poppler/JBIG2Stream.cc b/poppler/JBIG2Stream.cc index a20c220..63f6069 100644 --- a/poppler/JBIG2Stream.cc +++ b/poppler/JBIG2Stream.cc @@ -1916,7 +1916,7 @@ GBool JBIG2Stream::readSymbolDictSeg(Guint segNum, Guint length, // create the symbol dict object symbolDict = new JBIG2SymbolDict(segNum, numExSyms); - if (!symbolDict->isOk()) { + if (numExSyms > 0 && !symbolDict->isOk()) { delete symbolDict; goto syntaxError; }