mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:07:35 +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
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