tony2001 Tue Jan 9 11:37:05 2007 UTC Modified files: /php-src/ext/exif exif.c Log: zerofill info_data and fix possible segfault partly fixes #40073 http://cvs.php.net/viewvc.cgi/php-src/ext/exif/exif.c?r1=1.189&r2=1.190&diff_format=u Index: php-src/ext/exif/exif.c diff -u php-src/ext/exif/exif.c:1.189 php-src/ext/exif/exif.c:1.190 --- php-src/ext/exif/exif.c:1.189 Wed Jan 3 20:49:27 2007 +++ php-src/ext/exif/exif.c Tue Jan 9 11:37:05 2007 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: exif.c,v 1.189 2007/01/03 20:49:27 tony2001 Exp $ */ +/* $Id: exif.c,v 1.190 2007/01/09 11:37:05 tony2001 Exp $ */ /* ToDos * @@ -139,7 +139,7 @@ }; /* }}} */ -#define EXIF_VERSION "1.4 $Id: exif.c,v 1.189 2007/01/03 20:49:27 tony2001 Exp $" +#define EXIF_VERSION "1.4 $Id: exif.c,v 1.190 2007/01/09 11:37:05 tony2001 Exp $" /* {{{ PHP_MINFO_FUNCTION */ @@ -1599,6 +1599,7 @@ image_info->info_list[section_index].list = list; info_data = &image_info->info_list[section_index].list[image_info->info_list[section_index].count]; + memset(info_data, 0, sizeof(image_info_data)); info_data->tag = tag; info_data->format = format; info_data->length = length;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php