1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:27:43 +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:
Idan Horowitz 2021-03-16 19:45:54 +02:00 committed by Andreas Kling
parent 80d21f120f
commit 211031e4f4

View file

@ -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();