diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2022-11-05 10:26:40 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2022-11-05 10:26:40 +0000 |
commit | 77cd05347ced58d7116be72148bff8e28d3ee1b9 (patch) | |
tree | 1b4c59cbe67bba7ac1d09fa1d7f3e4145d5846fe | |
parent | 9a2562eab7be22a6c1d58308c473f8ed4468e1df (diff) | |
download | libnsgif-77cd05347ced58d7116be72148bff8e28d3ee1b9.tar.gz libnsgif-77cd05347ced58d7116be72148bff8e28d3ee1b9.tar.bz2 |
GIF: Return EOD if we hit the end during scan
-rw-r--r-- | src/gif.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |