-
Notifications
You must be signed in to change notification settings - Fork 624
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
PNG inflate is sometimes missing last byte #414
Comments
Interesting finding, it’s probably just something off by one… The new PNG decoder should be ready soon. I just need to implement some edge cases and support for 16 bit (which we don’t have right now anyway). |
Sounds great! There are some 16-bit images in Servo's test suite. |
It’s now passing the whole png testsuite. I need to integrate it into image and we should be ready to roll at least on the png side… |
Closed via #418. |
In some cases
inflate.rs
skips the last byte of the decompressed stream, e.g.:(I found these examples using afl.rs.)
I found some other discrepancies in the inflate implementation that I haven't categorized yet. I might hold off on that, if @nwin's new PNG decoder using libflate2 will be ready soon.
The text was updated successfully, but these errors were encountered: