mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-30 13:19:02 +00:00
LibGfx: Fail gracefuly on invalid interlace method in PNGLoader
This fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=29791
This commit is contained in:
parent
80d21f120f
commit
211031e4f4
Notes:
sideshowbarker
2024-07-18 21:17:47 +09:00
Author: https://github.com/IdanHo
Commit: 211031e4f4
Pull-request: https://github.com/SerenityOS/serenity/pull/5832
1 changed files with 2 additions and 1 deletions
|
@ -796,7 +796,8 @@ static bool decode_png_bitmap(PNGLoadingContext& context)
|
||||||
return false;
|
return false;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
VERIFY_NOT_REACHED();
|
context.state = PNGLoadingContext::State::Error;
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
context.decompression_buffer.clear();
|
context.decompression_buffer.clear();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue