-
Notifications
You must be signed in to change notification settings - Fork 92
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 bogus input #40
Comments
So here's some output from a crash:
And here's what gdb reports as the backtrace (Edit: updated stack trace below):
|
Thank you for the report! Never happened to us so far. We'll try to reproduce. |
So apparently there's a movement afoot to add the ability to handle out of memory conditions. However, as far as I can tell, it's not even a nightly feature yet. As an interim step, would you consider putting an optional upper bound on the size of any allocations that happen with a "user specified" size? |
Ok, so here's a simple program that can reproduce two different types of crashes:
Change 'causes_out_of_memory' to 'causes_left_shift_overflow' to see the other one. |
Thanks for the report! |
Avro-rs has a tendency to crash the process when given invalid input. The typical error message that I've seen (I don't have it right now) mentions an out of memory condition. My guess is it's trying to allocate an array of size -7 or something. I'd like to start using this crate in a project of mine, but the crashes are an issue.
I've actually created a fuzzer project with afl.rs, that I can share if that would be helpful, but at its core it's just:
And here are the stats (4 crashes) after running for a minute or two:
The text was updated successfully, but these errors were encountered: