summaryrefslogtreecommitdiffstats
path: root/php-7.1.0-systzdata-v14.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-06-21 10:35:54 +0200
committerRemi Collet <remi@php.net>2023-06-21 10:35:54 +0200
commit9cce51403ccd8617d6348a15ca8642bcd76cc6ce (patch)
tree17994dce92c03d805b2d01f7636478dbc9ca0482 /php-7.1.0-systzdata-v14.patch
parentf4871e69a193dd95dc9814dd01a82f433e8eead0 (diff)
fix possible buffer overflow in date
define %php71___phpize and %php71___phpconfig
Diffstat (limited to 'php-7.1.0-systzdata-v14.patch')
-rw-r--r--php-7.1.0-systzdata-v14.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/php-7.1.0-systzdata-v14.patch b/php-7.1.0-systzdata-v14.patch
index bd73a4b..1ab782b 100644
--- a/php-7.1.0-systzdata-v14.patch
+++ b/php-7.1.0-systzdata-v14.patch
@@ -392,7 +392,7 @@ diff -up php-7.1.0RC4/ext/date/lib/parse_tz.c.systzdata php-7.1.0RC4/ext/date/li
+ 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);
+