cvs: php4 /ext/standard iptc.c

From: Date: Fri, 13 Jul 2001 14:35:05 +0000
Subject: cvs: php4 /ext/standard iptc.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-6208@lists.php.net to get a copy of this message
thies Fri Jul 13 10:35:05 2001 EDT Modified files: /php4/ext/standard iptc.c Log: @ - Fixed crash in iptcparse() if the supplied data was bogus. (Thies) Index: php4/ext/standard/iptc.c diff -u php4/ext/standard/iptc.c:1.29 php4/ext/standard/iptc.c:1.30 --- php4/ext/standard/iptc.c:1.29 Wed Jun 6 09:05:51 2001 +++ php4/ext/standard/iptc.c Fri Jul 13 10:35:05 2001 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: iptc.c,v 1.29 2001/06/06 13:05:51 rasmus Exp $ */ +/* $Id: iptc.c,v 1.30 2001/07/13 14:35:05 thies Exp $ */ /* * Functions to parse & compse IPTC data. @@ -351,7 +351,7 @@ sprintf(key,"%d#%03d",(unsigned int) dataset,(unsigned int) recnum); - if ((inx + len) > length) + if ((len > length) || (inx + len) > length) break; if (tagsfound == 0) { /* found the 1st tag - initialize the return array */

« previous php.cvs (#6208) next »