From 61a33922a3f883b17a2474b46b22b3eb491ae990 Mon Sep 17 00:00:00 2001 From: Dirk Meyer Date: Sat, 3 Sep 2011 16:23:17 +0000 Subject: [PATCH] - Security fix for reading GIF images Security: CVE-2007-5137 --- x11-toolkits/tk82/Makefile | 2 +- x11-toolkits/tk82/files/patch-tkImgGIF.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 x11-toolkits/tk82/files/patch-tkImgGIF.c diff --git a/x11-toolkits/tk82/Makefile b/x11-toolkits/tk82/Makefile index 705ca7c12e02..22f33d30cc8f 100644 --- a/x11-toolkits/tk82/Makefile +++ b/x11-toolkits/tk82/Makefile @@ -7,7 +7,7 @@ PORTNAME= tk PORTVERSION= 8.2.3 -PORTREVISION= 10 +PORTREVISION= 11 CATEGORIES= x11-toolkits tk MASTER_SITES= ${MASTER_SITE_TCLTK} MASTER_SITE_SUBDIR= tcl8_2 diff --git a/x11-toolkits/tk82/files/patch-tkImgGIF.c b/x11-toolkits/tk82/files/patch-tkImgGIF.c new file mode 100644 index 000000000000..6538db708959 --- /dev/null +++ b/x11-toolkits/tk82/files/patch-tkImgGIF.c @@ -0,0 +1,11 @@ +--- ../generic/tkImgGIF.c.orig 1999-07-01 02:39:44.000000000 +0200 ++++ ../generic/tkImgGIF.c 2011-09-03 18:20:45.000000000 +0200 +@@ -666,7 +666,7 @@ + ypos += 2; break; + } + +- while (ypos >= height) { ++ while (ypos >= rows) { + ++pass; + switch (pass) { + case 1: