iliaa Tue Jun 22 16:27:50 2004 EDT Modified files: (Branch: PHP_4_3) /php-src/ext/standard iptc.c Log: MFH: Fixed possible buffer overflow. http://cvs.php.net/diff.php/php-src/ext/standard/iptc.c?r1=1.41.4.4&r2=1.41.4.5&ty=u Index: php-src/ext/standard/iptc.c diff -u php-src/ext/standard/iptc.c:1.41.4.4 php-src/ext/standard/iptc.c:1.41.4.5 --- php-src/ext/standard/iptc.c:1.41.4.4 Mon Jun 21 18:53:59 2004 +++ php-src/ext/standard/iptc.c Tue Jun 22 16:27:50 2004 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: iptc.c,v 1.41.4.4 2004/06/21 22:53:59 iliaa Exp $ */ +/* $Id: iptc.c,v 1.41.4.5 2004/06/22 20:27:50 iliaa Exp $ */ /* * Functions to parse & compse IPTC data. @@ -351,7 +351,7 @@ inx += 2; } - sprintf(key, "%d#%03d", (unsigned int) dataset, (unsigned int) recnum); + snprintf(key, sizeof(key), "%d#%03d", (unsigned int) dataset, (unsigned int) recnum); if ((len > length) || (inx + len) > length) break;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php