Removed super seeded timezone patch
Russell Sim
7 years ago
0 | From 23c9ff8632d8ae90d211601d3254ab7f4d35e853 Mon Sep 17 00:00:00 2001 | |
1 | From: Andreas Henriksson <andreas@fatal.se> | |
2 | Date: Sat, 17 Dec 2016 17:33:13 +0100 | |
3 | Subject: [PATCH] Fix off-by-one problems in git_signature__parse | |
4 | ||
5 | Etc/GMT-14 aka UTC+14:00 is a thing.... | |
6 | https://en.wikipedia.org/wiki/UTC%2B14:00 | |
7 | ||
8 | Also allow offsets on the last minute (59). | |
9 | ||
10 | Addresses: https://bugs.debian.org/841532 | |
11 | Fixes: #3970 | |
12 | --- | |
13 | src/signature.c | 2 +- | |
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
15 | ||
16 | diff --git a/src/signature.c b/src/signature.c | |
17 | index dcc3797..22cba7e 100644 | |
18 | --- a/src/signature.c | |
19 | +++ b/src/signature.c | |
20 | @@ -251,7 +251,7 @@ int git_signature__parse(git_signature *sig, const char **buffer_out, | |
21 | * only store timezone if it's not overflowing; | |
22 | * see http://www.worldtimezone.com/faq.html | |
23 | */ | |
24 | - if (hours < 14 && mins < 59) { | |
25 | + if (hours <= 14 && mins <= 59) { | |
26 | sig->when.offset = (hours * 60) + mins; | |
27 | if (tz_start[0] == '-') | |
28 | sig->when.offset = -sig->when.offset; |