1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Free opened_path when opened_path_len >= MAXPATHLEN

Closes GH-19240.
This commit is contained in:
dixyes
2025-07-26 00:41:59 +08:00
committed by Niels Dossche
parent a7cdf0b172
commit 5dd965117a
2 changed files with 4 additions and 0 deletions

3
NEWS
View File

@@ -39,6 +39,9 @@ PHP NEWS
(ilutov)
. Fix theoretical issues with hrtime() not being available. (nielsdos)
- Windows:
. Free opened_path when opened_path_len >= MAXPATHLEN. (dixyes)
31 Jul 2025, PHP 8.3.24
- Calendar:

View File

@@ -157,6 +157,7 @@ static int php_do_open_temporary_file(const char *path, const char *pfx, zend_st
free(cwdw);
free(pfxw);
efree(new_state.cwd);
free(opened_path);
return -1;
}
assert(strlen(opened_path) == opened_path_len);