summaryrefslogtreecommitdiffstats
path: root/php-5.6.13-systzdata-v12.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-06-21 11:09:59 +0200
committerRemi Collet <remi@php.net>2023-06-21 11:09:59 +0200
commitc8645533f9515a9368bd6b0e94a75fa979142cee (patch)
treebd2cd6b916dfd532129d8c58d07f49069b35ccbe /php-5.6.13-systzdata-v12.patch
parentd424f87c842ea2db86df7feebe21017dd3d5a394 (diff)
fix possible buffer overflow in date
define %php56___phpize and %php56___phpconfig
Diffstat (limited to 'php-5.6.13-systzdata-v12.patch')
-rw-r--r--php-5.6.13-systzdata-v12.patch2
1 files changed, 1 insertions, 1 deletions
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);
+