diff options
author | Matteo Beccati <mbeccati@php.net> | 2015-04-28 10:57:18 +0200 |
---|---|---|
committer | Matteo Beccati <mbeccati@php.net> | 2015-04-28 10:57:18 +0200 |
commit | b5e5098c50397ed910a79ac1d64b7d0fff2c02e1 (patch) | |
tree | 9d09f4f3d9efe6fd1c4a5550205b066e4b4e1c22 | |
parent | 13c32a102c7626673f41dfecba4188a6c6c6934c (diff) | |
download | php-git-b5e5098c50397ed910a79ac1d64b7d0fff2c02e1.tar.gz |
Fix segfault in ext/date since 957aa2
-rw-r--r-- | ext/date/lib/parse_tz.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/date/lib/parse_tz.c b/ext/date/lib/parse_tz.c index 89b8af73d6..32ed639f8c 100644 --- a/ext/date/lib/parse_tz.c +++ b/ext/date/lib/parse_tz.c @@ -89,8 +89,8 @@ static void read_header(const unsigned char **tzf, timelib_tzinfo *tz) static void skip_transistions_64bit(const unsigned char **tzf, timelib_tzinfo *tz) { if (tz->timecnt) { - *tzf += (sizeof(int64_t) * (tz->timecnt + 1)); - *tzf += (sizeof(unsigned char) * (tz->timecnt + 1)); + *tzf += (sizeof(int64_t) * (tz->timecnt)); + *tzf += (sizeof(unsigned char) * (tz->timecnt)); } } |