[Poppler-bugs] [Bug 54579] Too many input symbols in JBIG2 symbol dictionary

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Sep 7 04:57:02 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=54579

--- Comment #1 from Thomas Freitag <Thomas.Freitag at alfa.de> 2012-09-07 11:57:02 UTC ---
As far as I can see the problem was introduced by commit
ed0c9640abcbea459e3a276ee0b27631b01c32c4 (from 8th of April). Instead of

  bitmaps = (JBIG2Bitmap **)gmallocn_checkoverflow(numInputSyms + numNewSyms,
                     sizeof(JBIG2Bitmap *));
  if (!bitmaps) {

it should be 

  bitmaps = (JBIG2Bitmap **)gmallocn_checkoverflow(numInputSyms + numNewSyms,
                     sizeof(JBIG2Bitmap *));
  if (!bitmaps && numInputSyms + numNewSyms > 0) {

(In tricky pdf numInputSyms and numNewSyms are both 0).

Can You repair that, Albert? I'm quite close finishing the Coldwind stuff
(probably closing it this weekend), but I can handle this afterwards...

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list