diff options
author | Remi Collet <remi@remirepo.net> | 2023-06-21 10:36:07 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2023-06-21 10:36:07 +0200 |
commit | d7703b357f346c2a65dc3e3f5adcd7a20ca73d46 (patch) | |
tree | b7907b02b0a012b33f770b9a17c914a61c1d3b42 /php-7.1.0-systzdata-v14.patch | |
parent | 5c6189c60bf3cb2105b08a73c45a02d578f3eac7 (diff) |
fix possible buffer overflow in date
Diffstat (limited to 'php-7.1.0-systzdata-v14.patch')
-rw-r--r-- | php-7.1.0-systzdata-v14.patch | 2 |
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); + |