cvs: php4(PHP_4_3) /ext/exif exif.c

From: Date: Tue, 08 Apr 2003 00:19:30 +0000
Subject: cvs: php4(PHP_4_3) /ext/exif exif.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-20159@lists.php.net to get a copy of this message
iliaa Mon Apr 7 20:19:30 2003 EDT Modified files: (Branch: PHP_4_3) /php4/ext/exif exif.c Log: MFH Index: php4/ext/exif/exif.c diff -u php4/ext/exif/exif.c:1.118.2.16 php4/ext/exif/exif.c:1.118.2.17 --- php4/ext/exif/exif.c:1.118.2.16 Thu Apr 3 10:57:30 2003 +++ php4/ext/exif/exif.c Mon Apr 7 20:19:29 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: exif.c,v 1.118.2.16 2003/04/03 15:57:30 rasmus Exp $ */ +/* $Id: exif.c,v 1.118.2.17 2003/04/08 00:19:29 iliaa Exp $ */ /* ToDos * @@ -95,7 +95,7 @@ }; /* }}} */ -#define EXIF_VERSION "1.4 $Id: exif.c,v 1.118.2.16 2003/04/03 15:57:30 rasmus Exp $" +#define EXIF_VERSION "1.4 $Id: exif.c,v 1.118.2.17 2003/04/08 00:19:29 iliaa Exp $" /* {{{ PHP_MINFO_FUNCTION */ @@ -1539,6 +1539,10 @@ image_info_value *info_value; image_info_data *info_data; image_info_data *list; + + if (length >= LONG_MAX) { + return; + } list = erealloc(image_info->info_list[section_index].list, (image_info->info_list[section_index].count+1)*sizeof(image_info_data)); if (!list) {

« previous php.cvs (#20159) next »