diff options
author | Daniel Stenberg <daniel@haxx.se> | 2022-10-13 11:30:16 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-10-13 17:27:08 +0200 |
commit | b46136f9b14dbc4ed00cc92b189eaacd991a2c9f (patch) | |
tree | 550d676db347cc2f23493c601a6d399513fb74a9 /.azure-pipelines.yml | |
parent | b0e4ebe9605d8fbddcd6fc0d9d2593c1b2f818d9 (diff) | |
download | curl-b46136f9b14dbc4ed00cc92b189eaacd991a2c9f.tar.gz |
http: try parsing Retry-After: as a number first
Since the date parser allows YYYYMMDD as a date format (due to it being
a bit too generic for parsing this particular header), a large integer
number could wrongly match that pattern and cause the parser to generate
a wrong value.
No date format accepted for this header starts with a decimal number, so
by reversing the check and trying a number first we can deduct that if
that works, it was not a date.
Reported-by Trail of Bits
Closes #9718
Diffstat (limited to '.azure-pipelines.yml')
0 files changed, 0 insertions, 0 deletions