Gitweb links:

...log 
http://git.netsurf-browser.org/libnsgif.git/shortlog/e126efe78c6841e57af4f3d92dad272dba8ab153
...commit 
http://git.netsurf-browser.org/libnsgif.git/commit/e126efe78c6841e57af4f3d92dad272dba8ab153
...tree 
http://git.netsurf-browser.org/libnsgif.git/tree/e126efe78c6841e57af4f3d92dad272dba8ab153

The branch, master has been updated
       via  e126efe78c6841e57af4f3d92dad272dba8ab153 (commit)
       via  8062f9197c8b640cbf2e4902479da3eeaa05b688 (commit)
      from  6dee5d6e11540aa9a7c0e4db58cdeb45392a2ba0 (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=e126efe78c6841e57af4f3d92dad272dba8ab153
commit e126efe78c6841e57af4f3d92dad272dba8ab153
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>

    api: Remove NSGIF_ERR_FRAME_COUNT error code

diff --git a/include/nsgif.h b/include/nsgif.h
index 26897df..e6873b6 100644
--- a/include/nsgif.h
+++ b/include/nsgif.h
@@ -80,11 +80,6 @@ typedef enum {
        NSGIF_ERR_DATA_FRAME,
 
        /**
-        * Too many frames.
-        */
-       NSGIF_ERR_FRAME_COUNT,
-
-       /**
         * Unexpected end of GIF source data.
         */
        NSGIF_ERR_END_OF_DATA,


commitdiff 
http://git.netsurf-browser.org/libnsgif.git/commit/?id=8062f9197c8b640cbf2e4902479da3eeaa05b688
commit 8062f9197c8b640cbf2e4902479da3eeaa05b688
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>

    gif: Drop arbitrary frame limit
    
    If we're still successfully decoding frames, there's no reason
    to stop.

diff --git a/src/gif.c b/src/gif.c
index dafee1a..73814bf 100644
--- a/src/gif.c
+++ b/src/gif.c
@@ -1349,13 +1349,6 @@ static nsgif_error nsgif__process_frame(
                if (pos < end && pos[0] == NSGIF_TRAILER) {
                        return NSGIF_OK;
                }
-
-               /* We could theoretically get some junk data that gives us
-                * millions of frames, so we ensure that we don't have a
-                * silly number. */
-               if (frame_idx > 4096) {
-                       return NSGIF_ERR_FRAME_COUNT;
-               }
        }
 
        ret = nsgif__parse_frame_extensions(gif, frame, &pos, !decode);
@@ -2051,7 +2044,6 @@ const char *nsgif_strerror(nsgif_error err)
                [NSGIF_ERR_DATA]          = "Invalid source data",
                [NSGIF_ERR_BAD_FRAME]     = "Requested frame does not exist",
                [NSGIF_ERR_DATA_FRAME]    = "Invalid frame data",
-               [NSGIF_ERR_FRAME_COUNT]   = "Excessive number of frames",
                [NSGIF_ERR_END_OF_DATA]   = "Unexpected end of GIF source data",
                [NSGIF_ERR_DATA_COMPLETE] = "Can't add data to completed GIF",
                [NSGIF_ERR_FRAME_DISPLAY] = "Frame can't be displayed",


-----------------------------------------------------------------------

Summary of changes:
 include/nsgif.h |    5 -----
 src/gif.c       |    8 --------
 2 files changed, 13 deletions(-)

diff --git a/include/nsgif.h b/include/nsgif.h
index 26897df..e6873b6 100644
--- a/include/nsgif.h
+++ b/include/nsgif.h
@@ -80,11 +80,6 @@ typedef enum {
        NSGIF_ERR_DATA_FRAME,
 
        /**
-        * Too many frames.
-        */
-       NSGIF_ERR_FRAME_COUNT,
-
-       /**
         * Unexpected end of GIF source data.
         */
        NSGIF_ERR_END_OF_DATA,
diff --git a/src/gif.c b/src/gif.c
index dafee1a..73814bf 100644
--- a/src/gif.c
+++ b/src/gif.c
@@ -1349,13 +1349,6 @@ static nsgif_error nsgif__process_frame(
                if (pos < end && pos[0] == NSGIF_TRAILER) {
                        return NSGIF_OK;
                }
-
-               /* We could theoretically get some junk data that gives us
-                * millions of frames, so we ensure that we don't have a
-                * silly number. */
-               if (frame_idx > 4096) {
-                       return NSGIF_ERR_FRAME_COUNT;
-               }
        }
 
        ret = nsgif__parse_frame_extensions(gif, frame, &pos, !decode);
@@ -2051,7 +2044,6 @@ const char *nsgif_strerror(nsgif_error err)
                [NSGIF_ERR_DATA]          = "Invalid source data",
                [NSGIF_ERR_BAD_FRAME]     = "Requested frame does not exist",
                [NSGIF_ERR_DATA_FRAME]    = "Invalid frame data",
-               [NSGIF_ERR_FRAME_COUNT]   = "Excessive number of frames",
                [NSGIF_ERR_END_OF_DATA]   = "Unexpected end of GIF source data",
                [NSGIF_ERR_DATA_COMPLETE] = "Can't add data to completed GIF",
                [NSGIF_ERR_FRAME_DISPLAY] = "Frame can't be displayed",


-- 
NetSurf GIF Decoder
_______________________________________________
netsurf-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to