-
Notifications
You must be signed in to change notification settings - Fork 461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assertions thrown #939
Comments
See: #882 opj_decompress -i id_000004,sig_06,src_000679,op_arith8,pos_49,val_-17 -o test.png [INFO] Start to read j2k main header (0). opj_decompress -i id_000019,sig_08,src_001098,op_flip1,pos_49 -o test.png [INFO] Start to read j2k main header (0). opj_decompress -i id_000020,sig_06,src_001958,op_flip4,pos_149 -o test.png [INFO] Start to read j2k main header (0). opj_decompress -i id_000026,sig_08,src_002419,op_int32,pos_60,val_+32 -o test.png [INFO] Start to read j2k main header (0). /sources/LIB/IMAGE_FORMATS/OPENJPEG/VERSION-2.2/openjpeg2-2017-05-11-1/src/bin/common/color.c:350:color_sycc_to_rgb opj_decompress -i id_000034,sig_11,src_003240,op_flip1,pos_22 -o test.png [INFO] Start to read j2k main header (0). opj_decompress -i id_000098,sig_11,src_005411,op_havoc,rep_2 -o test.png [INFO] Start to read j2k main header (0). [INFO] Start to read j2k main header (0). |
#939) Fixes issue on id:000020,sig:06,src:001958,op:flip4,pos:149 that has two SOT markers for the same tile with the same tile part number, causing opj_j2k_merge_ppt() to be called several times.
…0167,sig_11,src_006079,op_havoc,rep_4 (#939)
All test cases of https://github.com/rwhitworth/openjpeg-fuzz/tree/master/2017-05-23 are now fixed. Closing |
…opj_get_decoded_tile() where tile parts of a same tile are not consecutive This check was introduced per #939, but relied on the incorrect assumption we decode all the tile parts of all tiles.
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.
The text was updated successfully, but these errors were encountered: