mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +00:00
LibGfx/JPEG: Refill reservoir if necessary when discarding bits
This condition was hit 157 times out of the 109,233 JPEG images in the Govdocs1 corpus. This change allows all of these images to load correctly.
This commit is contained in:
parent
4c5d48f861
commit
438e9e146c
3 changed files with 4 additions and 6 deletions
|
@ -270,7 +270,8 @@ TEST_CASE(test_jpeg_malformed_header)
|
|||
TEST_CASE(test_jpeg_malformed_frame)
|
||||
{
|
||||
Array test_inputs = {
|
||||
TEST_INPUT("jpg/oss-fuzz-testcase-62584.jpg"sv)
|
||||
TEST_INPUT("jpg/oss-fuzz-testcase-62584.jpg"sv),
|
||||
TEST_INPUT("jpg/oss-fuzz-testcase-63815.jpg"sv)
|
||||
};
|
||||
|
||||
for (auto test_input : test_inputs) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue