mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 20:33:10 +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
|
@ -796,7 +796,8 @@ static bool decode_png_bitmap(PNGLoadingContext& context)
|
|||
return false;
|
||||
break;
|
||||
default:
|
||||
VERIFY_NOT_REACHED();
|
||||
context.state = PNGLoadingContext::State::Error;
|
||||
return false;
|
||||
}
|
||||
|
||||
context.decompression_buffer.clear();
|
||||
|
|
Loading…
Reference in a new issue