-
Notifications
You must be signed in to change notification settings - Fork 469
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
fuzzing-created crashers #811
Comments
Could you please also document the AFL cmd line you used ? In particular how long have you been runnning it ? |
On Aug 17, 2016 22:57, "Mathieu Malaterre" [email protected] wrote:
It was along the lines of: screen I ran this for about two days; afl-whatsup reported somewhere around two Change the 29 to something that's a good fit for your hardware. Roughly the This returned roughly 4500 unique crashes. afl-cmin was able to reduce this mkdir collected min I started with the same relax.j2k image as last time. I think AFL could Note that this corpus of inputs is entirely devoted to openjpeg to BMP Thanks |
All crashes seem to stem from the same root cause : trying to apply an ICC profile |
All the crashes seem division-by-zero problems which I've reported on the issue list before. |
@setharnold @trylab I've fixed these crashes in my Grok J2K codec: https://github.com/GrokImageCompression/grok |
@boxerab OK. I'll have a try when I'm available. |
boxerab, sorry, I couldn't get AFL to run with grok:
|
Thanks, guys. I've moved the AFL issue with Grok over to the Grok repo: |
@setharnold |
@asarubbo, AFL generated over 4000 crashing images; the tarball of 646 images has already been reduced by afl-cmin to the smallest set of images that covered all paths discovered by the total corpus. By that measure, they are all unique crashing inputs, however it's true that a single fix may address multiple input files. That's exceedingly difficult to determine short of actually preparing fixes. What exactly are you looking for? I'd like to provide something that's actually useful to your team, but opening 600-odd issues seems like the wrong approach. Thanks |
@mayeut Would you have time to have a look at this one ? would be great to fix it before 2.1.2 |
I have asked for two pull requests: issue #869 issue #873 Then I found the following issue #811 I have now tested all files of the archive 'crashes-openjpeg-2.1.1.tar.gz' The changes proposed in the above mentioned pull requests are now part of I you agreed, I could make another pull request for #811, #862, #863, #871 winfried |
@detonin , @mayeut , @setharnold , after having solved the crashes of 'crashes-openjpeg-2.1.1.tar.gz' Then I ran afl-gcc a second time: no crash, but some hangs. One of the 'out/hangs' example: jp2.c:600: IHDR w(32) h(2147483680) bpc(7) [ERROR] IHDR w(32) h(2147483680) != IMAGE w(32) h(1056) The original image is: in/not_kitty.jp2 jp2.c:600: IHDR w(32) h(32) bpc(7) winfried |
Impressive set of patches. It feels like nitpicking but some of the
indentation doesn't match the surroundings well. (It's more obvious in the
GitHub web view than it would be in your editor configured with your
favorite settings :)
Thanks
|
With latest master, "for i in ../crashes-openjpeg-2.1.1/*; do echo $i; bin/opj_decompress -quiet -i $i -o out.bmp; done >log.txt 2>&1" on a -fsanitize=address,undefined now works cleanly |
if possible would be great have a new stable release. |
Hello; there's a renewed interest in adding openjpeg2 to Ubuntu's 'main' archive so that it can be used in Ubuntu's PDF reader, graphics programs, etc. As part of this process I've run the OpenJPEG 2.1.1 release through the AFL (American Fuzzy Lop) guided fuzzing tool and generated the following set of files that crash the opj_decompress tool. (Presumably this does something similar to what would be used by document viewers.)
The Ubuntu bug for the main inclusion process is at https://bugs.launchpad.net/ubuntu/+source/openjpeg2/+bug/711061
The crashing inputs are saved in a compressed tarball on launchpad: https://bugs.launchpad.net/ubuntu/+source/openjpeg2/+bug/711061/+attachment/4723094/+files/crashes-openjpeg-2.1.1.tar.gz
Please consider adding these images to the testing frameworks.
Thanks
The text was updated successfully, but these errors were encountered: