summaryrefslogtreecommitdiffstats
path: root/php-8.0.10-systzdata-v21.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-04-21 15:22:35 +0200
committerRemi Collet <remi@php.net>2023-04-21 15:22:35 +0200
commitc41b8d935894dcff746ffbcdac3527bdf3e19f05 (patch)
tree644fd7091df45eccc2800bbf45bce303aee97e4e /php-8.0.10-systzdata-v21.patch
parent4d58e98192ed9e1498dcac6dcc44965fb2894389 (diff)
use ICU 72.1
use oracle client library version 21.10 fix missing TZData version in intl phpinfo fix possible buffer overflow in date
Diffstat (limited to 'php-8.0.10-systzdata-v21.patch')
-rw-r--r--php-8.0.10-systzdata-v21.patch3
1 files changed, 2 insertions, 1 deletions
diff --git a/php-8.0.10-systzdata-v21.patch b/php-8.0.10-systzdata-v21.patch
index 779f538..699dc11 100644
--- a/php-8.0.10-systzdata-v21.patch
+++ b/php-8.0.10-systzdata-v21.patch
@@ -5,6 +5,7 @@ Add support for use of the system timezone database, rather
than embedding a copy. Discussed upstream but was not desired.
History:
+r22: fix possible buffer overflow
r21: retrieve tzdata version from /usr/share/zoneinfo/tzdata.zi
r20: adapt for timelib 2020.03 (in 8.0.10RC1)
r19: adapt for timelib 2020.02 (in 8.0.0beta2)
@@ -454,7 +455,7 @@ index e9bd0f136d..c04ff01adc 100644
+ size_t n;
+ char *data, *p;
+
-+ data = malloc(3 * sysdb->index_size + 7);
++ data = malloc(3 * sysdb->index_size + sizeof(FAKE_HEADER) - 1);
+
+ p = mempcpy(data, FAKE_HEADER, sizeof(FAKE_HEADER) - 1);
+