Panic when decoding images
sxyazi opened this issue ยท 7 comments
Hi, after upgrading to image v0.25.1 (image
v0.25 switched to zune-jpeg
), I occasionally encounter panic when decoding certain JPEGs.
I found the code location that causes it based on the stack trace:
zune-image/crates/zune-jpeg/src/mcu.rs
Lines 209 to 211 in db7a5ee
And it was fixed in 1f943d8, but the latest zune-jpeg
0.4.11 does not include this fix. Is it possible to release a new patch version for it?
working on it, sorry for the crash, it just happens that it was reported when i was overhauling the api and couldn't hot fix it
How about adding a regression test for this case? To ensure that this does not happen again in the future.
Hi, is it possible to release a 0.4.12 version that removes this assert? I ran into it on this seemingly valid image
This would be a low effort quick fix to resolve the issue temporarily. Clients will handle the subsequent decoding error gracefully.
Many downstream dependencies that have upgraded to image
v0.25.x are affected. Crashing applications for no valid reason is very inconvenient.
...especially now since image v0.25 is actively promoted: https://www.reddit.com/r/rust/comments/1cj94va/image_v025_performance_improvements/
Bump on releasing a 0.4.12 update to resolve this! Happy to help here and update the image crate as needed.