1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 17:44:56 +09:00

LibGfx/ILBM: Explicitly fail decoding if body chunk isn't present

Previously, the decoder would crash in this case.
This commit is contained in:
Tim Ledbetter 2023-10-16 18:18:22 +01:00 committed by Andreas Kling
parent cb961101c7
commit f4a89c31c6
Notes: sideshowbarker 2024-07-17 17:06:59 +09:00

View file

@ -289,6 +289,9 @@ static ErrorOr<void> decode_iff_chunks(ILBMLoadingContext& context)
}
}
if (context.state != ILBMLoadingContext::State::BitmapDecoded)
return Error::from_string_literal("Missing body chunk");
return {};
}