Hi, on that file I see that gif->SWidth and gif->SHeight are reported as 65535, and the only frame is reported as 10x10 at position 0,0.
I don't know what are we supposed to do differently. The way I understand this is that the virtual canvas is 65535 x 65535 white in color and there a single frame of 10x10 in the top left corner. identify -verbose poc.gif says Page geometry: 65535x65535+0+0 but if I try to convert this to png it returns a 10x10 image.
Regarding the crash due to OOM, at the moment we have many places where we would crash if OOM instead of returning a failure.
Describe the bug
Assertion failed when compressing a gif with cjxl.
To Reproduce
Steps to reproduce the behavior:
poc.gif
Expected behavior
No assertion failed.
Environment
5.8.0-59-generic 20.04.1-Ubuntuclang version 7.0.1-12Additional context
It seems that the memory allocation size is too large causing the assertion failed.
libjxl/lib/jxl/image.cc
Lines 90 to 96 in 4122f3e
Some gdb information
The text was updated successfully, but these errors were encountered: