The document is probably incorrect. I'm attaching it for further refenrece.
Created attachment 11143 [details] The document that makes it crash Page 3 of this document crashes on J2BIGStream
Partially fixed, we don't crash anymore but acroread is able to render some part of the page more than us.
Created attachment 26524 [details] [review] Fix for crash I get a crash again on latest git (831288c13). This attached patch fixes it. I suspect codingLine[0] = codingLine[1] = w; is sufficient, but I don't know enough about the encoding implemented to the confident in this. And I just sent a (one line :D) patch to the mailing list to fix the rendering issue.
[Reopening... I guess I can't do that and attach at the same time]
Fix commited
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.