-
Notifications
You must be signed in to change notification settings - Fork 618
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
Out-of-bounds in gif::Decoder #625
Comments
I cannot reproduce that error. It doesn’t panic but returns an error. Can you please provide the code you used to test this?
|
Ahh, I see. I didn’t use the base64 decoder correctly. How do you come to this images anyway? If you used some fuzzing I would really appreciated if you would share the code. |
The code I used is:
where sha1sum of oob.gif is 3f673b772a1e56da103e6b480ee3af7975c3c9d7 (eyeballing the base64 of the image seems to match the first example I pasted, so no mistakes copy-pasting) |
And yes, images are generated by the quite new cargo-fuzz utility we’re developing. It just happened that I had a bright idea to fuzz image crate on the way home :) |
I’m a bit disappointed that this went through, I actually let afl run for a while on the gif decoder (see https://github.com/PistonDevelopers/image-gif)… |
Closed via image-rs/image-gif@3755875 |
Following base64-encoded gif image causes the gif decoder to panic with OOB condition:
or a shorter
The text was updated successfully, but these errors were encountered: