mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-07 00:56:14 +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:
committed by
Andreas Kling
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();
|
||||
|
||||
Reference in New Issue
Block a user