1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 09:48:11 +00:00
serenity/Tests/LibGfx/test-inputs
Lucas CHOLLET b8cbc282f3 LibGfx/TIFF: Don't stop decoding when failing to decode a tag
TIFF files are made in a way that make them easily extendable and over
the years people have made sure to exploit that. In other words, it's
easy to find images with non-standard tags. Instead of returning an
error for that, let's skip them.

Note that we need to make sure to realign the reading head in the file.

The test case was originally a 10x10 checkerboard image with required
tags, and also the `DocumentName` tag. Then, I modified this tag in a
hexadecimal editor and replaced its id with 30 000 (0x3075 as a LE u16)
and the type with the same value as well. This is AFAIK, never used as
a custom TIFF tag, so this should remain an invalid tag id and type.
2024-01-04 14:27:16 +01:00
..
bmp Tests: Add regression tests for fixed OSS-Fuzz test cases 2023-10-24 07:30:04 +02:00
dds LibGfx/DDSLoader: Allow image dimensions that are not divisible by 4 2023-10-06 22:18:27 +02:00
icc LibGfx/TIFF: Add support for the ICCProfile tag 2023-12-02 10:36:02 +01:00
ico LibGfx/BMPLoader: Mitigate potential overflows when decoding bitmap DIB 2023-10-25 05:52:29 +02:00
ilbm LibGfx/ILBMLoader: Add support for 24bit files 2023-12-21 09:19:30 +00:00
jpg Tests/LibGfx: Add YCCK jpeg test files 2023-12-29 08:17:10 +00:00
jxl LibGfx/JPEGXL: Fix property 8 2023-08-01 05:35:01 +02:00
png Tests: Add regression tests for fixed OSS-Fuzz test cases 2023-10-24 07:30:04 +02:00
pnm Tests: Move pbm, pgm, ppm test images into pnm/ subfolder 2023-06-19 06:42:00 -04:00
tga Tests: Move tga test images into tga/ subfolder 2023-06-19 06:42:00 -04:00
tiff LibGfx/TIFF: Don't stop decoding when failing to decode a tag 2024-01-04 14:27:16 +01:00
tvg LibGfx/TinyVG: Avoid OOM if header contains a bogus color table size 2023-12-02 10:47:39 +01:00
webp Tests: Add test for webp with color index transform and alpha_used=false 2023-06-20 11:35:03 +02: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
download-animation.gif LibGfx: Move TestImageDecoder over to input file approach in 8cfabbcd93 2023-02-01 08:56:56 -05: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
serenity.ico LibGfx: Move TestImageDecoder over to input file approach in 8cfabbcd93 2023-02-01 08:56:56 -05:00
TestFont.font LibGfx: Move TestFontHandling over to input file approach in 8cfabbcd93 2023-02-01 08:56:56 -05:00