Description
Hello, I was using American Fuzzy Lop (afl-fuzz) to fuzz input to the opj_decompress
program on Linux. Is fixing the crashes from these input files something you're interested in? The input files can be found here: https://github.com/rwhitworth/openjpeg-fuzz/tree/master/2017-05-23.
The files can be executed as opj_decompress -i id_filename -o /tmp/output.tif
to cause assertions to trigger. The version of opj_decompress was from commit 83d7a6d.
The files and output are as follows:
id:000004,sig:06,src:000679,op:arith8,pos:49,val:-17
opj_decompress: /root/openjpeg/src/lib/openjp2/opj_intmath.h:131: OPJ_INT32 opj_int_ceildiv(OPJ_INT32, OPJ_INT32): Assertion 'b' failed.
id:000020,sig:06,src:001958,op:flip4,pos:149
opj_decompress: /root/openjpeg/src/lib/openjp2/j2k.c:4044: OPJ_BOOL opj_j2k_merge_ppt(opj_tcp_t *, opj_event_mgr_t *): Assertion 'p_tcp->ppt_buffer == ((void*)0)' failed.
Let me know if I can provide any more information to help narrow down this issue.