mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
b8cbc282f3
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. |
||
---|---|---|
.. | ||
test-inputs | ||
BenchmarkGfxPainter.cpp | ||
BenchmarkJPEGLoader.cpp | ||
CMakeLists.txt | ||
TestDeltaE.cpp | ||
TestFontHandling.cpp | ||
TestGfxBitmap.cpp | ||
TestICCProfile.cpp | ||
TestImageDecoder.cpp | ||
TestParseISOBMFF.cpp | ||
TestRect.cpp | ||
TestScalingFunctions.cpp | ||
TestWOFF.cpp | ||
TestWOFF2.cpp |