Skip to content

Commit b5e5098

Browse files
committed
Fix segfault in ext/date since 957aa2
1 parent 13c32a1 commit b5e5098

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 + 1));
93-
*tzf += (sizeof(unsigned char) * (tz->timecnt + 1));
92+
*tzf += (sizeof(int64_t) * (tz->timecnt));
93+
*tzf += (sizeof(unsigned char) * (tz->timecnt));
9494
}
9595
}
9696

0 commit comments

Comments
 (0)