Skip to content

Commit 4cabbf9

Browse files
committed
Revert "Fix segfault in ext/date since 957aa2"
This reverts commit b5e5098. A proper fix from Derick is underway. I apologise for stepping on his toes ;)
1 parent 97fcbf0 commit 4cabbf9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/date/lib/parse_tz.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ static void read_header(const unsigned char **tzf, timelib_tzinfo *tz)
8989
static void skip_transistions_64bit(const unsigned char **tzf, timelib_tzinfo *tz)
9090
{
9191
if (tz->timecnt) {
92-
*tzf += (sizeof(int64_t) * (tz->timecnt));
93-
*tzf += (sizeof(unsigned char) * (tz->timecnt));
92+
*tzf += (sizeof(int64_t) * (tz->timecnt + 1));
93+
*tzf += (sizeof(unsigned char) * (tz->timecnt + 1));
9494
}
9595
}
9696

0 commit comments

Comments
 (0)