|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patch zero-data.patch for EXIF related Bug #76130Patch version 2018-03-22 14:36 UTC Return to Bug #76130 | Download this patchThis 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;
|
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 09:00:01 2025 UTC |