jonatb / openjpeg

Automatically exported from code.google.com/p/openjpeg
Other
0 stars 0 forks source link

Assertion `l_res->x0 >= 0' fails when parsing invalid images #475

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It looks like you've already fixed one cause of this crash, but even the latest 
svn version of openjpeg (r2997) crashes with an assertion error when parsing 
the invalid, fuzzed JPEG2000 files in the attachment:

$ bin/opj_decompress -i openjpeg-svn-assertion-l_res-x-gt-0-id000036svn.jp2 -o 
output.pnm

[INFO] Start to read j2k main header (85).
[INFO] Main header has been correctly decoded.
[INFO] No decoded area parameters, set the decoded area to the whole image
[INFO] Header of tile 1 / 1 has been read.
[INFO] Tile 1/1 has been decoded.
opj_decompress: 
/home/aidan/src/afl-1.24b/openjpeg-svn/src/lib/openjp2/j2k.c:8066: 
opj_j2k_update_image_data: Assertion `l_res->x0 >= 0' failed.
Aborted

Original issue reported on code.google.com by makos...@gmail.com on 16 Feb 2015 at 12:18

Attachments: