Skip to content

Commit

Permalink
Tests: Use more representative test cases for ILBM regression tests
Browse files Browse the repository at this point in the history
Previously, the regression tests for OSS-Fuzz issues 62033 and 63296
used test case files directly from OSS-Fuzz. These files are invalid
in multiple ways because they have been generated by a fuzzer. This
commit replaces these files with ones that only expose the issue being
tested.
  • Loading branch information
tcl3 authored and awesomekling committed Nov 8, 2023
1 parent 21f2f09 commit 39f7f1e
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/LibGfx/TestImageDecoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ TEST_CASE(test_ilbm_uncompressed)
TEST_CASE(test_ilbm_malformed_header)
{
Array test_inputs = {
TEST_INPUT("ilbm/oss-fuzz-testcase-62033.iff"sv),
TEST_INPUT("ilbm/truncated-bmhd-chunk.iff"sv)
};

for (auto test_input : test_inputs) {
Expand All @@ -154,7 +154,7 @@ TEST_CASE(test_ilbm_malformed_header)
TEST_CASE(test_ilbm_malformed_frame)
{
Array test_inputs = {
TEST_INPUT("ilbm/oss-fuzz-testcase-63296.iff"sv)
TEST_INPUT("ilbm/missing-body-chunk.iff"sv)
};

for (auto test_input : test_inputs) {
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 39f7f1e

Please sign in to comment.