php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | |
Patch issue-77396-npe.patch for PHAR related Bug #77396Patch version 2019-02-11 16:07 UTC Return to Bug #77396 | Download this patchThis 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); |
Copyright © 2001-2024 The PHP Group All rights reserved. |
Last updated: Thu Nov 21 17:01:32 2024 UTC |