Commit 1cd749c
committed
fast-import.c::validate_raw_date(): really validate the value
When reading the "raw format" timestamp from the input stream, make sure
that the timezone offset is a reasonable value by imitating 7122f82
(date.c: improve guess between timezone offset and year., 2006-06-08).
We _might_ want to also check if the timestamp itself is reasonable, but
that is left for a separate commit.
Signed-off-by: Junio C Hamano <[email protected]>1 parent 04ce83e commit 1cd749c
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1744 | 1744 | | |
1745 | 1745 | | |
1746 | 1746 | | |
| 1747 | + | |
1747 | 1748 | | |
1748 | 1749 | | |
1749 | 1750 | | |
1750 | | - | |
| 1751 | + | |
| 1752 | + | |
1751 | 1753 | | |
1752 | 1754 | | |
1753 | 1755 | | |
1754 | 1756 | | |
1755 | 1757 | | |
1756 | 1758 | | |
1757 | 1759 | | |
1758 | | - | |
1759 | | - | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
1760 | 1763 | | |
1761 | 1764 | | |
1762 | 1765 | | |
| |||
0 commit comments