Skip to content

Commit 1c74a1a

Browse files
committed
Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3: Free opened_path when opened_path_len >= MAXPATHLEN
2 parents 120a5eb + 5dd9651 commit 1c74a1a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ PHP NEWS
4646
(ilutov)
4747
. Fix theoretical issues with hrtime() not being available. (nielsdos)
4848

49+
- Windows:
50+
. Free opened_path when opened_path_len >= MAXPATHLEN. (dixyes)
51+
4952
31 Jul 2025, PHP 8.4.11
5053

5154
- Calendar:

main/php_open_temporary_file.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ static int php_do_open_temporary_file(const char *path, const char *pfx, zend_st
186186
free(random_prefix_w);
187187
efree(random_prefix);
188188
efree(new_state.cwd);
189+
free(opened_path);
189190
return -1;
190191
}
191192
assert(strlen(opened_path) == opened_path_len);

0 commit comments

Comments
 (0)