MFH: zerofill info_data and fix possible segfault

partly fixes #40073
This commit is contained in:
Antony Dovgal 2007-01-09 11:37:17 +00:00
parent 43369cef58
commit 1e352b3ae7

View File

@ -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;