mirror of
https://github.com/curl/curl.git
synced 2026-08-25 00:13:34 +03:00
parsedate: handle cut off numbers better
... and don't read outside of the given buffer! CVE-2016-8621 bug: https://curl.haxx.se/docs/adv_20161102G.html Reported-by: Luật Nguyễn
This commit is contained in:
parent
46133aa536
commit
96a80b5a26
3 changed files with 20 additions and 6 deletions
|
|
@ -116,6 +116,12 @@ nothing
|
|||
81: 20111323 12:34:56 => -1
|
||||
82: 20110623 12:34:79 => -1
|
||||
83: Wed, 31 Dec 2008 23:59:60 GMT => 1230768000
|
||||
84: 20110623 12:3 => 1308830580
|
||||
85: 20110623 1:3 => 1308790980
|
||||
86: 20110623 1:30 => 1308792600
|
||||
87: 20110623 12:12:3 => 1308831123
|
||||
88: 20110623 01:12:3 => 1308791523
|
||||
89: 20110623 01:99:30 => -1
|
||||
</stdout>
|
||||
|
||||
# This test case previously tested an overflow case ("2094 Nov 6 =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue