-
Notifications
You must be signed in to change notification settings - Fork 145
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
Crash on malformed input #103
Comments
Curiously, when fed to |
None of the samples in crashes.zip crash anymore, instead all are rejected with It was probably fixed by commit eddef82. If you find more crashers/oom causing input files by fuzzing don't hesitate to submit them! I tested each sample from the zip, that is
|
Another 2 cents. Seems like the png-afl fuzz target exits with SIGABRT when running out of memory quite easily and afl records this as crashes. Increasing memory usage from default 50 using a command like |
I actually used |
I've run the in-tree AFL fuzzing harness for a minute and it has discovered a crash with the following message:
memory allocation of 12884705376 bytes failedAborted
This is a full-process crash and, unlike a panic, is not recoverable.
Steps to reproduce:
env RUST_BACKTRACE=1 RUSTFLAGS='--cfg fuzzing' cargo run --example show path/to/malformed/file
Testcases triggering the crash are attached: crashes.zip
Your fuzz target is very fast - it finds this crash in a few seconds in release mode and hits 1 million executions in under 5 minutes on a single core of my laptop. You really should consider fuzzing on CI to prevent these regressions.
The text was updated successfully, but these errors were encountered: