levigo / jbig2-imageio

A Java ImageIO plugin for the JBIG2 bi-level image format
Apache License 2.0
31 stars 19 forks source link

Problems in standard Huffman tables #27

Closed janpe2 closed 7 years ago

janpe2 commented 7 years ago

jbig2_2.zip

If you open the image PDFjs_8145_p55.jb2, you get:

ArrayIndexOutOfBoundsException: -2147483604
at Bitmap.getByte(Bitmap.java:120)

The image unitized_page_ii.jb2 should contain some text but the decoding result is an empty page.

I have identified an issue in StandardTables.java that causes these problems. I'll create a pull request.

hennejg commented 7 years ago

Fixed in #29 / #36