-
Notifications
You must be signed in to change notification settings - Fork 144
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
Invalid PNG file generation #147
Comments
I ran into a similar issue and created a reproduction repo here before finding this issue. Debug hits the same assertion as image-rs/deflate-rs#18. Would be nice to (in order of declining preference) switch to a fuzzed encoder (parallel to the decoder discussion in #151), fix the bug, and/or make the assertion in release mode since I only lucked into noticing the corrupted data in a production tool. |
This issue is still not fixed since |
Dependency is updated in the git repo, but the versions on crates.io still depend on 0.7. |
The fix has been in master for a while. Can we get a new point release on crates.io with the fix? |
It's going on the schedule for this weekend. |
|
Compressing
1.pnm
in this archive usingpng
crate results in an invalid PNG file. EyeOfGnome reports "bad adaptive filter value". Compression code can be found in the same archive. Changing just one pixel (uncomment line 16 inmain.rs
) results in a correct file being generated.The text was updated successfully, but these errors were encountered: