summaryrefslogtreecommitdiffstats
path: root/php-7.4.33-bash53.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-12-18 08:14:15 +0100
committerRemi Collet <remi@php.net>2025-12-18 08:14:15 +0100
commitd92668863f81fe9ecad724a6bfd4911b1a878df2 (patch)
tree65abf387b92f15b88d6d19695d7f597b1b24331b /php-7.4.33-bash53.patch
parent191c11ffa4fdca689d62774e75ba85b131f8cea5 (diff)
Fix Null byte termination in dns_get_record()HEADmaster
GHSA-www2-q4fc-65wf Fix Heap buffer overflow in array_merge() CVE-2025-14178 Fix Information Leak of Memory in getimagesize CVE-2025-14177
Diffstat (limited to 'php-7.4.33-bash53.patch')
-rw-r--r--php-7.4.33-bash53.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/php-7.4.33-bash53.patch b/php-7.4.33-bash53.patch
new file mode 100644
index 0000000..0b09e2a
--- /dev/null
+++ b/php-7.4.33-bash53.patch
@@ -0,0 +1,26 @@
+From 98d2b923243d406b3d26f0770ac02f917729b948 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Thu, 4 Sep 2025 09:01:49 +0200
+Subject: [PATCH] Fix GH-19681 PHP_EXPAND_PATH broken with bash 5.3.0
+
+---
+ build/php.m4 | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/build/php.m4 b/build/php.m4
+index 142ddf08fd98b..e5ead0f4c44af 100644
+--- a/build/php.m4
++++ b/build/php.m4
+@@ -64,7 +64,11 @@ AC_DEFUN([PHP_EXPAND_PATH],[
+ changequote({,})
+ ep_dir=`echo $1|$SED 's%/*[^/][^/]*/*$%%'`
+ changequote([,])
+- ep_realdir=`(cd "$ep_dir" && pwd)`
++ if test -z $ep_dir ; then
++ ep_realdir=`(pwd)`
++ else
++ ep_realdir=`(cd "$ep_dir" && pwd)`
++ fi
+ $2="$ep_realdir"/`basename "$1"`
+ fi
+ ])