ladybird/Tests/LibGfx/test-inputs/bmp
sideshowbarker 602e7fe2bd LibGfx: Reject a BMP V5 ICC profile offset that points out of bounds
Problem: A BMP V5 image whose embedded ICC profile offset points past
the end of the file triggers an OOB read.

Cause: The bounds check summed the profile offset, the file-header size,
and the profile size in 32-bit arithmetic. So, a large offset (e.g.
0xfffffff0) wraps the sum back into range and passes the check. The
decoder then returns a span pointing far past the end of the file.

Fix: Compute the sum in 64 bits — so an out-of-bounds offset can no
longer wrap, and the profile’s rejected.

Fixes: https://github.com/LadybirdBrowser/ladybird/issues/9967
2026-06-15 20:19:33 +09:00
..
2x2x32_v4.bmp LibGfx: Properly skip color masks in BMP V2+ headers 2025-05-09 21:45:29 +02:00
bitmap.bmp LibGfx/BMP: Clear alpha in palette entries 2024-03-05 21:27:41 +00:00
negative-height-int-min.bmp LibGfx: Avoid undefined behavior on a BMP with an INT_MIN height 2026-06-15 09:44:27 +02:00
os2_3bpc.bmp LibGfx: Correctly handle OS/2 BMPs with 3-byte color entries 2025-05-09 21:45:29 +02:00
oss-fuzz-testcase-62541.bmp Tests: Add regression tests for fixed OSS-Fuzz test cases 2023-10-24 07:30:04 +02:00
rgba32-1.bmp
rle24.bmp LibGfx: Fix misaligned u32 store in BMP RLE24 decompression 2026-06-08 13:43:21 +02:00
too-many-palette-colors.bmp LibGfx: Clamp BMP color palette to 1024 2025-05-09 21:45:29 +02:00
top-down.bmp
v5-icc-profile-out-of-bounds.bmp LibGfx: Reject a BMP V5 ICC profile offset that points out of bounds 2026-06-15 20:19:33 +09:00