Skip to content

Commit 75743ea

Browse files
committed
Merge branch 'PHP-8.0' into PHP-8.1
2 parents e3c5237 + a83363e commit 75743ea

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ PHP NEWS
6666
. Fixed ACL build check on MacOS. (David Carlier)
6767
. Fixed bug #72185: php-fpm writes empty fcgi record causing nginx 502.
6868
(Jakub Zelenka, loveharmful)
69+
. Fixes use after free. (Heiko Weber).
6970

7071
- mysqlnd:
7172
. Fixed bug #81719: mysqlnd/pdo password buffer overflow. (CVE-2022-31626)

sapi/fpm/fpm/fpm_conf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,8 +769,8 @@ static int fpm_evaluate_full_path(char **path, struct fpm_worker_pool_s *wp, cha
769769
}
770770

771771
if (strlen(*path) > strlen("$prefix")) {
772-
free(*path);
773772
tmp = strdup((*path) + strlen("$prefix"));
773+
free(*path);
774774
*path = tmp;
775775
} else {
776776
free(*path);

0 commit comments

Comments
 (0)