diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-08-06 20:10:40 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-08-07 09:38:45 +0200 |
commit | 5c7455fe7691a18e0f6a85ebe26aae861ccc5284 (patch) | |
tree | a9470b75e0d35b584557c9873885ea68a1c54cd5 /src/tool_getparam.h | |
parent | 453e7a7a03a2cec749abd3878a48e728c515cca7 (diff) | |
download | curl-5c7455fe7691a18e0f6a85ebe26aae861ccc5284.tar.gz |
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
Diffstat (limited to 'src/tool_getparam.h')
-rw-r--r-- | src/tool_getparam.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tool_getparam.h b/src/tool_getparam.h index 29e158816..2148e4091 100644 --- a/src/tool_getparam.h +++ b/src/tool_getparam.h @@ -41,6 +41,7 @@ typedef enum { PARAM_NO_MEM, PARAM_NEXT_OPERATION, PARAM_NO_PREFIX, + PARAM_NUMBER_TOO_LARGE, PARAM_LAST } ParameterError; |