diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2002-11-07 23:23:04 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2002-11-07 23:23:04 +0000 |
commit | 7af471ce62cf5fa8e75879dbf60d9d2dd57f66ae (patch) | |
tree | b4b12a868ce4565e002244353d1e1655150ac162 /x11-toolkits/gtk20/files/patch-gdk-pixbuf_io-gif.c | |
parent | Update WWW (diff) |
Fix a problem in the GIF pixbuf loader that caused GTK+ apps to crash when
trying to load GIF images.
Reported by: William N. Culler Jr. <william@neo.rr.com>
Notes
Notes:
svn path=/head/; revision=69698
Diffstat (limited to 'x11-toolkits/gtk20/files/patch-gdk-pixbuf_io-gif.c')
-rw-r--r-- | x11-toolkits/gtk20/files/patch-gdk-pixbuf_io-gif.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/x11-toolkits/gtk20/files/patch-gdk-pixbuf_io-gif.c b/x11-toolkits/gtk20/files/patch-gdk-pixbuf_io-gif.c new file mode 100644 index 000000000000..474e58bd04b9 --- /dev/null +++ b/x11-toolkits/gtk20/files/patch-gdk-pixbuf_io-gif.c @@ -0,0 +1,26 @@ +--- gdk-pixbuf/io-gif.c.orig Thu Nov 7 18:08:02 2002 ++++ gdk-pixbuf/io-gif.c Thu Nov 7 18:14:25 2002 +@@ -534,13 +534,16 @@ + return 0; + } + +-#define CHECK_LZW_SP() if(((guchar *)context->lzw_sp) >= (((guchar *)context->lzw_stack) + sizeof(context->lzw_stack))) { \ +- g_set_error (context->error, \ +- GDK_PIXBUF_ERROR, \ +- GDK_PIXBUF_ERROR_CORRUPT_IMAGE, \ +- _("Stack overflow")); \ +- return -2; \ +-} ++#define CHECK_LZWP_SP() G_STMT_START { \ ++ if ((guchar *)context->lzw_sp >= \ ++ (guchar *)context->lzw_stack + sizeof (context->lzw_stack)) { \ ++ g_set_error (context->error, \ ++ GDK_PIXBUF_ERROR, \ ++ GDK_PIXBUF_ERROR_CORRUPT_IMAGE, \ ++ _("Stack overflow")); \ ++ return -2; \ ++ } \ ++} G_STMT_END + + static int + lzw_read_byte (GifContext *context) |