--- poppler-git-3sep12/poppler/JBIG2Stream.cc- 2012-09-03 01:10:00.441035919 +0200 +++ poppler-git-3sep12/poppler/JBIG2Stream.cc 2012-09-04 02:00:59.386494022 +0200 @@ -722,6 +722,13 @@ JBIG2Bitmap::JBIG2Bitmap(Guint segNumA, JBIG2Bitmap *bitmap): JBIG2Segment(segNumA) { + if (!bitmap) { + error(errSyntaxError, -1, "NULL bitmap in JBIG2Bitmap"); + w = h = line = 0; + data = NULL; + return; + } + w = bitmap->w; h = bitmap->h; line = bitmap->line;