mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
The decoder was requiring GIF files to be at least 32 bytes, but the actual minimum for a valid GIF is only 26 bytes: - 6 bytes for the header - 7 bytes for the Logical Screen Descriptor - 10 bytes for the Image Descriptor - 2 bytes for the LZW minimum code size and block terminator - 1 byte for the GIF trailer This change allows us to load minimal 1x1 GIFs with empty LZW data. They are commonly used on the web as transparent placeholders with minimal file size. |
||
|---|---|---|
| .. | ||
| test-inputs | ||
| BenchmarkJPEGLoader.cpp | ||
| CMakeLists.txt | ||
| TestColor.cpp | ||
| TestImageDecoder.cpp | ||
| TestImageWriter.cpp | ||
| TestQuad.cpp | ||
| TestRect.cpp | ||
| TestWOFF.cpp | ||
| TestWOFF2.cpp | ||