Closed Cvjark closed 2 years ago
This is a divide-by-zero exception because this image is damaged and the quantization table contains zeros:
quant[0]:
0001 0001 0001 0001 0001 0001 0001 0001
0001 0001 0001 0001 0001 0001 0001 0001
0001 0001 0001 0001 0001 0001 0001 00ff
0001 0001 0001 0001 0001 0001 00d8 0000
0001 0001 0001 0001 0001 00ff 0046 0001
0001 0001 0001 0001 00e0 0049 0001 0060
0001 0001 0001 0000 0046 0001 0000 0000
0001 0001 0010 004a 0000 0060 0000 00ff
Fixed in the latest commit. Thanks for reporting.
sample file
id0_FPE_jpegqs+0x41c889.zip
command to reproduce
./jpegqs -o [sample file] /dev/null
crash detail