Patch avoid-double-free.patch for EXIF related Bug #76409
Patch version 2018-06-03 12:08 UTC
Return to Bug #76409 |
Download this patch
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 6562e04ba8..3bf8b150d4 100644
--- a/ext/exif/exif.c
+++ b/ext/exif/exif.c
@@ -4300,7 +4300,7 @@ static int exif_read_from_impl(image_info_type *ImageInfo, php_stream *stream, i
zend_string *base;
if ((st.st_mode & S_IFMT) != S_IFREG) {
exif_error_docref(NULL EXIFERR_CC, ImageInfo, E_WARNING, "Not a file");
- php_stream_close(ImageInfo->infile);
+ ImageInfo->infile = NULL;
return FALSE;
}
|