From: Antony Dovgal Date: Tue, 9 Jan 2007 11:37:05 +0000 (+0000) Subject: zerofill info_data and fix possible segfault X-Git-Tag: RELEASE_1_0_0RC1~338 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2e08fa381c965d66191f1b5a5e9f6158f51ec2c7;p=php zerofill info_data and fix possible segfault partly fixes #40073 --- diff --git a/ext/exif/exif.c b/ext/exif/exif.c index 2048c22397..40a11dc8a8 100644 --- a/ext/exif/exif.c +++ b/ext/exif/exif.c @@ -1599,6 +1599,7 @@ static void exif_iif_add_value(image_info_type *image_info, int section_index, c 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;