-
Notifications
You must be signed in to change notification settings - Fork 747
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
72 crashing files #49
Comments
Thanks for your efforts. In the future its probably easiest to fuzz using https://embed.cs.utah.edu/csmith/ which is designed specifically for fuzzing compilers by generating random valid programs. There is no shortage of crashes, Its possible to find many simply by running the gcc test suite. I think the limiting factor is programmer time (this is a hobby project), not bugs at the moment. |
@andrewchambers I don't mean to discount the usefulness of csmith here, as I will certainly look into using it in parallel to afl-fuzz, but one of the benefits of afl-fuzz is that it will find bugs by generating crashers that are not otherwise valid programs. :) |
Of course, but I don't really see why anyone cares about crashes in programs that a person would not manually write by hand.
Edit: |
One more note - miscompilation bugs are generally the most valuable for a compiler. If code is accepted by a compiler, but the code produces an incorrect result, this is a serious issue. Crashes can be detected by the end user far more easily. Csmith actively finds miscompilation if you compare output to other compilers. Crash bugs are important, though less important. Don't be discouraged though, keep fuzzing :), just keep these points in mind. |
From my perspective I assume that it may be possible for an error in a user-generated file to generate one of these crashes, and for those people I'm sure they'd rather have a useful error message than a segfault. My focus for this fuzzing wasn't related to security. After all, it's a compiler. I caught this on HN, and I sometimes when I catch these projects I try to do some fuzzing for them. Big projects get a lot of effort and manpower, but the small projects don't get a lot of feedback. So I try to pitch in. It's maybe 10 minutes work I've spent to generate these. |
That is true, I imagine many of these are caused by some underlying bug or code smell anyway. It may take a while before we can fix them all haha. |
Hi rui314,
I have been fuzzing your compiler and discovered a few crashers to submit.
Reproducer cmdline:
8cc -c $reproducer
In the tarball I have provided a gdblog for each reproducer. There are a total of 72 crashers. I'm not sure that there are not duplicates in this set, but I got this distilled from 1000
The version I am using is from commit 11dd5a5
System: AMD64 Ubuntu 14.04
Found using the fuzzer American Fuzzy Lop ( http://lcamtuf.coredump.cx/afl/ )
Regards,
-Jodie
The text was updated successfully, but these errors were encountered: