mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 19:45:12 +00:00
LibGfx: Don't assert on files ending right before lzw_min_code_size
Not yet found by oss-fuzz, but I hit it a while ago when running FuzzGIFLoader locally.
This commit is contained in:
parent
86cec77eb5
commit
1f22a59f9d
Notes:
sideshowbarker
2024-07-19 01:11:41 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/1f22a59f9d0 Pull-request: https://github.com/SerenityOS/serenity/pull/4244
1 changed files with 2 additions and 0 deletions
|
@ -569,6 +569,8 @@ static bool load_gif_frame_descriptors(GIFLoadingContext& context)
|
|||
}
|
||||
|
||||
stream >> image.lzw_min_code_size;
|
||||
if (stream.handle_any_error())
|
||||
return false;
|
||||
|
||||
u8 lzw_encoded_bytes_expected = 0;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue