- Security fix for reading GIF images

Security: CVE-2007-5137
This commit is contained in:
Dirk Meyer 2011-09-03 16:13:25 +00:00
parent 667a4d3d1a
commit c17a1445d3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=281101
2 changed files with 12 additions and 1 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= tk
PORTVERSION= 8.3.5
PORTREVISION= 9
PORTREVISION= 10
CATEGORIES= x11-toolkits tk
MASTER_SITES= SF/tcl/Tcl/${PORTVERSION}
DISTNAME= ${PORTNAME}${PORTVERSION}-src

View file

@ -0,0 +1,11 @@
--- ../generic/tkImgGIF.c 2002-03-26 03:29:01.000000000 +0100
+++ ../generic/tkImgGIF.new.c 2007-10-04 20:40:09.000000000 +0200
@@ -960,7 +960,7 @@
/* If interlacing, the next ypos is not just +1 */
if (interlace) {
ypos += interlaceStep[pass];
- while (ypos >= height) {
+ while (ypos >= rows) {
pass++;
if (pass > 3) {
return TCL_OK;