From e645837ba15185cc3220d9d7fcc6d23e115ad188 Mon Sep 17 00:00:00 2001 From: Matteo Beccati Date: Tue, 28 Apr 2015 12:48:00 +0200 Subject: [PATCH] Revert "Fix segfault in ext/date since 957aa2" This reverts commit b5e5098c50397ed910a79ac1d64b7d0fff2c02e1. A proper fix from Derick is underway. I apologise for stepping on his toes ;) --- ext/date/lib/parse_tz.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/date/lib/parse_tz.c b/ext/date/lib/parse_tz.c index 1ae252b034..4350b3a984 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)); - *tzf += (sizeof(unsigned char) * (tz->timecnt)); + *tzf += (sizeof(int64_t) * (tz->timecnt + 1)); + *tzf += (sizeof(unsigned char) * (tz->timecnt + 1)); } } -- 2.40.0