mirror of
https://github.com/curl/curl.git
synced 2026-08-26 00:13:34 +03:00
curl: detect and bail out early on parameter integer overflows
Make the number parser aware of the maximum limit curl accepts for a value and return an error immediately if larger, instead of running an integer overflow later. Fixes #1730 Closes #1736
This commit is contained in:
parent
453e7a7a03
commit
5c7455fe76
5 changed files with 36 additions and 14 deletions
|
|
@ -41,6 +41,7 @@ typedef enum {
|
|||
PARAM_NO_MEM,
|
||||
PARAM_NEXT_OPERATION,
|
||||
PARAM_NO_PREFIX,
|
||||
PARAM_NUMBER_TOO_LARGE,
|
||||
PARAM_LAST
|
||||
} ParameterError;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue