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
A Division-By-Zero error in lib/extras/codec_apng.cc jxl::DecodeImageAPNG() #308
Comments
|
Thanks for the report. Will take a look soon. |
|
From stack-trace / report it looks like compiler / ASAN bug to me... Looking further. |
|
Can't reproduce. |
|
There seems to be a bug with ASAN... the report of ASAN is misleading ...Try to reproduce without ASAN? ...
280 if (hasInfo) {
281 if (!processing_finish(png_ptr, info_ptr)) {
282 ImageBundle bundle(&io->metadata.m);
*283 bundle.duration = delay_num * 1000 / delay_den;
284 bundle.origin.x0 = x0;
285 bundle.origin.y0 = y0;
...
so the some debugging infomation from gdb I will re-edit the description of this issue :o) |
Describe the bug
A dividing by zero error in lib/extras/codec_apng.cc:283 jxl::DecodeImageAPNG(), the
delay_dencan be 0 resulting in an Arithmetic Exception.To Reproduce
Steps to reproduce the behavior:
The crash file crash.png.
Expected behavior
cjxl should encode the PNG to JXL successfully.
Environment
Additional context
# build without ASAN $ ./cjxl ./crash.png /tmp/tmp.jxl JPEG XL encoder v0.3.7 [AVX2,SSE4,Scalar] [1] 1597419 floating point exception ./cjxl ./crash.png /tmp/tmp.jxlThe text was updated successfully, but these errors were encountered: