Clamp (some) years supplied by the system to 1 CE

Clamp year values returned by system localtime(_r) and
gmtime(_r) to year 1. This ensures tor can read any
values it might write out.

Fixes bug 13476.
This commit is contained in:
teor
2014-10-20 02:47:31 +11:00
parent 238b8eaa60
commit d7b13543e2
2 changed files with 14 additions and 1 deletions
+3
View File
@@ -10,3 +10,6 @@
for validity, taking leap years into account.
Improves HTTP header validation.
Implemented with bug 13476.
- Clamp year values returned by system localtime(_r) and gmtime(_r)
to year 1. This ensures tor can read any values it might write out.
Fixes bug 13476.