ladybird/Libraries/LibCompress
Jelle Raaijmakers 1aeb080250 LibCompress: Treat LZW decoding errors as end of stream
The LZW data for both GIF and TIFF images is sometimes intentionally
missing an end-of-information (EOI) code, which technically is a
decoding error, but in practive is handled gracefully by Firefox, Safari
and Chrome for GIFs and Safari for TIFFs. Let's mirror their behavior.

The included WPT test exposes the fact that trailing garbage bytes can
also result in decoding errors. We handle this in the LZW logic rather
than in the image decoding since our LZW implementation is currently
only used by GIF and TIFF decoding. The error is logged behind the
LZW_DEBUG flag.
2026-04-29 20:28:15 +02:00
..
CMakeLists.txt Meta: Move most dependency checks to check_for_dependencies.cmake 2026-04-20 16:41:29 -06:00
Deflate.cpp LibCompress: Refactor deflate de/compressor using zlib 2025-03-19 13:46:50 +01:00
Deflate.h LibCompress: Remove unused header in Deflate 2026-02-23 12:15:23 +01:00
DeflateTables.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Forward.h LibCompress: Add a forwarding header 2024-11-17 22:37:45 +01:00
GenericZlib.cpp LibCompress: Handle the error state where a dictionary is needed 2025-06-14 18:26:56 -04:00
GenericZlib.h LibCompress: Introduce generic de/compressor using zlib 2025-03-19 13:46:50 +01:00
Gzip.cpp LibCompress: Refactor gzip de/compressor using zlib 2025-03-19 13:46:50 +01:00
Gzip.h LibCompress: Remove unused header in Gzip 2026-02-23 12:15:23 +01:00
Huffman.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Lzw.h LibCompress: Treat LZW decoding errors as end of stream 2026-04-29 20:28:15 +02:00
PackBitsDecoder.cpp AK: Remove unused include from MemoryStream 2026-02-17 12:38:51 +00:00
PackBitsDecoder.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Zlib.cpp LibCompress: Refactor zlib de/compressor using zlib 2025-03-19 13:46:50 +01:00
Zlib.h LibCompress: Refactor zlib de/compressor using zlib 2025-03-19 13:46:50 +01:00