summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2022-11-05 10:26:40 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2022-11-05 10:26:40 +0000
commit77cd05347ced58d7116be72148bff8e28d3ee1b9 (patch)
tree1b4c59cbe67bba7ac1d09fa1d7f3e4145d5846fe
parent9a2562eab7be22a6c1d58308c473f8ed4468e1df (diff)
downloadlibnsgif-77cd05347ced58d7116be72148bff8e28d3ee1b9.tar.gz
GIF: Return EOD if we hit the end during scan
-rw-r--r--src/gif.c2
1 files changed, 1 insertions, 1 deletions
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;