thorfdbg / libjpeg

A complete implementation of 10918-1 (JPEG) coming from jpeg.org (the ISO group) with extensions for HDR, lossless and alpha channel coding standardized as ISO/IEC 18477 (JPEG XT).
327 stars 81 forks source link

Assertion fail in bitstream.hpp:172 #27

Closed seviezhou closed 4 years ago

seviezhou commented 4 years ago

System info

Ubuntu X64, gcc (Ubuntu 5.5.0-12ubuntu1), jpeg (latest master e52406)

Command line

./jpeg -oz -h -s 1x1,2x2,2x2 @@ /dev/null

Output

jpeg: ../io/bitstream.hpp:172: ULONG BitStream<false>::Get(UBYTE) [bitstuffing = false]: Assertion `bits > 0 && bits <= 24' failed.
Aborted

POC

assert-bitstream-172.zip

thorfdbg commented 4 years ago

Found & fixed, thank you. Part of a corrupt stream.