mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:38: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
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
Add a link
Reference in a new issue