Improve date validation in HTTP headers
commit238b8eaa60953a4d716ece484aaaca841b46c614
authorteor <teor2345@gmail.com>
Sun, 19 Oct 2014 15:40:27 +0000 (20 02:40 +1100)
committerteor <teor2345@gmail.com>
Sun, 19 Oct 2014 15:40:27 +0000 (20 02:40 +1100)
treed8cd98dbb5be5ad1a66542fcfc03359435e034ff
parentdd556fb1e6002a0ca3c4560ecb8545696a82e0b9
Improve date validation in HTTP headers

Check all date/time values passed to tor_timegm
and parse_rfc1123_time for validity, taking leap
years into account.
Improves HTTP header validation.

Avoid unlikely signed integer overflow in tor_timegm
on systems with 32-bit time_t.
Fixes bug 13476.
changes/bug13476-improve-time-handling
src/common/util.c