ladybird/Tests/LibGfx/test-inputs
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
..
avif LibGfx: Support AVIF images with missing pixi property 2024-11-23 03:57:54 +00:00
bmp LibGfx: Reject a BMP V5 ICC profile offset that points out of bounds 2026-06-15 20:19:33 +09:00
cur LibGfx: Add .cur file support to ICO loader 2025-05-09 21:45:29 +02:00
gif LibImageDecoders: Decode GIFs using wuffs 2026-06-10 20:29:11 +02:00
icc LibGfx/TIFF: Add support for the ICCProfile tag 2023-12-02 10:36:02 +01:00
ico LibGfx: Select largest ICO image before bpp tie-break 2026-05-28 06:32:00 +02:00
jpg LibGfx: Correctly determine when to invert CMYK 2025-10-15 21:50:16 +02:00
jxl LibGfx: Use libjxl to decode JPEG XL images 2024-07-22 09:15:16 +02:00
png LibGfx: Fix heap overflow applying Exif transpose to non-square images 2026-06-15 09:31:12 +02:00
pnm LibGfx: Remove support for the various "portable" image formats 2024-06-17 21:57:35 +02:00
webp LibGfx: Set correct alpha type for webp decoding 2024-10-02 16:37:22 +01:00
woff LibGfx/WOFF: Ensure header totalSfntSize matches expected value 2023-10-24 07:29:09 +02:00
woff2 LibGfx/WOFF2: Ensure numTables is within expected range 2023-10-26 08:39:26 +02:00
loop_forever.avif LibGfx: Add initial ISO BMFF parsing and a utility to print file info 2023-07-27 12:02:37 +01:00
TestFont.font LibGfx: Move TestFontHandling over to input file approach in 8cfabbcd93 2023-02-01 08:56:56 -05:00