From 9cce51403ccd8617d6348a15ca8642bcd76cc6ce Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 21 Jun 2023 10:35:54 +0200 Subject: fix possible buffer overflow in date define %php71___phpize and %php71___phpconfig --- php-7.1.0-systzdata-v14.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'php-7.1.0-systzdata-v14.patch') 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); + -- cgit