com php-src: Revert "Fix segfault in ext/date since 957aa2": ext/date/lib/parse_tz.c

From: Date: Tue, 28 Apr 2015 10:56:11 +0000
Subject: com php-src: Revert "Fix segfault in ext/date since 957aa2": ext/date/lib/parse_tz.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-86529@lists.php.net to get a copy of this message
Commit: 4cabbf9781405d1075c770f5e28279aba537f1e3 Author: Matteo Beccati <mbeccati@php.net> Tue, 28 Apr 2015 12:48:00 +0200 Parents: 97fcbf041af509bcb5c129b15ba5b6ce98f81cb6 Branches: PHP-5.5 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4cabbf9781405d1075c770f5e28279aba537f1e3 Log: 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 ;) Changed paths: M ext/date/lib/parse_tz.c Diff: diff --git a/ext/date/lib/parse_tz.c b/ext/date/lib/parse_tz.c index 32ed639..89b8af7 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)); } }

« previous php.cvs (#86529) next »