From c8645533f9515a9368bd6b0e94a75fa979142cee Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 21 Jun 2023 11:09:59 +0200 Subject: fix possible buffer overflow in date define %php56___phpize and %php56___phpconfig --- php-5.6.13-systzdata-v12.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'php-5.6.13-systzdata-v12.patch') diff --git a/php-5.6.13-systzdata-v12.patch b/php-5.6.13-systzdata-v12.patch index 3ff2b0b..d8c8503 100644 --- a/php-5.6.13-systzdata-v12.patch +++ b/php-5.6.13-systzdata-v12.patch @@ -387,7 +387,7 @@ diff -up php-5.6.13/ext/date/lib/parse_tz.c.systzdata php-5.6.13/ext/date/lib/pa + 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