php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #77396
Patch issue-77396-npe revision 2019-02-13 04:50 UTC by bishop@php.net
Patch issue-77396-npe.patch revision 2019-02-11 16:07 UTC by bishop@php.net

Patch issue-77396-npe.patch for PHAR related Bug #77396

Patch version 2019-02-11 16:07 UTC

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

Obsoleted by patches:

Patch Revisions:

Developer: bishop@php.net

--- a/ext/phar/phar.c
+++ b/ext/phar/phar.c
@@ -1385,6 +1385,9 @@ int phar_create_or_parse_filename(char *fname, int fname_len, char *alias, int a
 	/* set up our manifest */
 	mydata = ecalloc(1, sizeof(phar_archive_data));
 	mydata->fname = expand_filepath(fname, NULL);
+	if (NULL == mydata->fname) {
+		return FAILURE;
+	}
 	fname_len = strlen(mydata->fname);
 #ifdef PHP_WIN32
 	phar_unixify_path_separators(mydata->fname, fname_len);
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Apr 08 06:01:25 2020 UTC