CJXL 0.2.0-945ad0ce crashes on specific JPEG image
Issue description
When using CJXL 0.2.0-945ad0ce on an specific JPEG image(link can be found below), the encoder crashes. Image does not belong to me. It was just a random image given to me since it triggers the crash: https://i.postimg.cc/ZTB4nKrW/crash.jpg
Command used: cjxl input.jpeg output.jxl The encoder does not crash with a PNG encode of the same image, and using lossy transcoding of JPEG(-j) does not fix the issue.
Environment
Operating System: Ubuntu 20.10 and Windows 10 20H2 exhibit the same issue
JPEG XL software version: JXL 0.2.0-945ad0ce
Compilation:
export CC=/usr/bin/clang && export CXX=/usr/bin/clang++ git clone https://gitlab.com/wg1/jpeg-xl.git --recursive cd jpeg-xl mkdir build && cd build cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF cmake --build . -- -j 16 sudo make install
CPU / architecture / device:
AMD Ryzen 3700X(Zen 2)
Looking at the information in Mediainfo, I believe this crash may be caused by the CMYK color space, which is why the PNG conversion does not trigger the issue.