php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #76130
Patch fix-71630.patch revision 2018-03-27 17:02 UTC by cmb@php.net
Patch zero-data.patch revision 2018-03-22 14:36 UTC by cmb@php.net

Patch zero-data.patch for EXIF related Bug #76130

Patch version 2018-03-22 14:36 UTC

Return to Bug #76130 | Download this patch
This patch is obsolete

Obsoleted by patches:

Patch Revisions:

Developer: cmb@php.net

 ext/exif/exif.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ext/exif/exif.c b/ext/exif/exif.c
index d1155de93f..312399ed52 100644
--- a/ext/exif/exif.c
+++ b/ext/exif/exif.c
@@ -1989,7 +1989,7 @@ static int exif_file_sections_add(image_info_type *ImageInfo, int type, size_t s
 	if (!size) {
 		data = NULL;
 	} else if (data == NULL) {
-		data = safe_emalloc(size, 1, 0);
+		data = ecalloc(size, 1);
 	}
 	ImageInfo->file.list[count].type = type;
 	ImageInfo->file.list[count].data = data;
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC