diff options
-rw-r--r-- | Libraries/LibGfx/GIFLoader.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Libraries/LibGfx/GIFLoader.cpp b/Libraries/LibGfx/GIFLoader.cpp index 63feed39c8..0fc1c42ff8 100644 --- a/Libraries/LibGfx/GIFLoader.cpp +++ b/Libraries/LibGfx/GIFLoader.cpp @@ -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; |