diff options
author | Remi Collet <remi@remirepo.net> | 2023-06-21 11:09:59 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2023-06-21 11:09:59 +0200 |
commit | c8645533f9515a9368bd6b0e94a75fa979142cee (patch) | |
tree | bd2cd6b916dfd532129d8c58d07f49069b35ccbe /php-5.6.13-systzdata-v12.patch | |
parent | d424f87c842ea2db86df7feebe21017dd3d5a394 (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.patch | 2 |
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); + |