Gitweb links:
...log
http://git.netsurf-browser.org/libnsgif.git/shortlog/77cd05347ced58d7116be72148bff8e28d3ee1b9
...commit
http://git.netsurf-browser.org/libnsgif.git/commit/77cd05347ced58d7116be72148bff8e28d3ee1b9
...tree
http://git.netsurf-browser.org/libnsgif.git/tree/77cd05347ced58d7116be72148bff8e28d3ee1b9
The branch, master has been updated
via 77cd05347ced58d7116be72148bff8e28d3ee1b9 (commit)
from 9a2562eab7be22a6c1d58308c473f8ed4468e1df (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/libnsgif.git/commit/?id=77cd05347ced58d7116be72148bff8e28d3ee1b9
commit 77cd05347ced58d7116be72148bff8e28d3ee1b9
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>
GIF: Return EOD if we hit the end during scan
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;
-----------------------------------------------------------------------
Summary of changes:
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;
--
NetSurf GIF Decoder
_______________________________________________
netsurf-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]