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

Merge branch 'PHP-8.4'

* PHP-8.4:
  Free opened_path when opened_path_len >= MAXPATHLEN
This commit is contained in:
Niels Dossche
2025-07-27 10:54:53 +02:00

View File

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