mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 16:47:34 +00:00
LibGfx/ICC: Avoid buffer overrun when creating TextDescriptionTagData
We now validate that the offsets used cannot overflow, preventing possible buffer overruns.
This commit is contained in:
parent
4b995542c4
commit
c1d7a51391
3 changed files with 11 additions and 3 deletions
|
@ -262,6 +262,7 @@ TEST_CASE(to_lab)
|
|||
TEST_CASE(malformed_profile)
|
||||
{
|
||||
Array test_inputs = {
|
||||
TEST_INPUT("icc/oss-fuzz-testcase-57426.icc"sv),
|
||||
TEST_INPUT("icc/oss-fuzz-testcase-59551.icc"sv),
|
||||
TEST_INPUT("icc/oss-fuzz-testcase-60281.icc"sv)
|
||||
};
|
||||
|
|
BIN
Tests/LibGfx/test-inputs/icc/oss-fuzz-testcase-57426.icc
Normal file
BIN
Tests/LibGfx/test-inputs/icc/oss-fuzz-testcase-57426.icc
Normal file
Binary file not shown.
After Width: | Height: | Size: 512 B |
Loading…
Add table
Add a link
Reference in a new issue