From 77cd05347ced58d7116be72148bff8e28d3ee1b9 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 5 Nov 2022 10:26:40 +0000 Subject: GIF: Return EOD if we hit the end during scan --- src/gif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gif.c b/src/gif.c index 2dc631e..8655bdb 100644 --- a/src/gif.c +++ b/src/gif.c @@ -1234,7 +1234,7 @@ static nsgif_error nsgif__parse_image_data( /* Check if the frame data runs off the end of the file */ if (block_size > len) { frame->lzw_data_length += len; - return NSGIF_OK; + return NSGIF_ERR_END_OF_DATA; } len -= block_size; -- cgit v1.2.1