mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +00:00
LibGfx/ILBM: Ensure CMAP chunk size matches expected value
The color map should be 3 bytes per pixel and should contain `2^nPlanes` pixels. We now return an error if the color map isn't the size we expect.
This commit is contained in:
parent
61eb754f63
commit
f56ae8c0e9
3 changed files with 4 additions and 0 deletions
|
@ -154,6 +154,7 @@ TEST_CASE(test_ilbm_malformed_header)
|
|||
TEST_CASE(test_ilbm_malformed_frame)
|
||||
{
|
||||
Array test_inputs = {
|
||||
TEST_INPUT("ilbm/incorrect-cmap-size.iff"sv),
|
||||
TEST_INPUT("ilbm/incorrect-uncompressed-size.iff"sv),
|
||||
TEST_INPUT("ilbm/missing-body-chunk.iff"sv)
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue