aboutsummaryrefslogtreecommitdiff
path: root/src/tool_cfgable.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-11-05 11:57:29 +0100
committerDaniel Stenberg <daniel@haxx.se>2018-11-07 11:48:17 +0100
commit52db54869e628c5b13039ecc2b4757f8eb969834 (patch)
tree1d2958a5aa7fa1cace4e54c54e0ea92bd2b84883 /src/tool_cfgable.h
parentbda4ef417a00c91e3a7829fdba4b0968dd62e497 (diff)
curl: fix --local-port integer overflow
The tool's local port command line range parser didn't check for integer overflows and could pass "weird" data to libcurl for this option. libcurl however, has a strict range check for the values so it rejects anything outside of the accepted range. Reported-by: Brian Carpenter Closes #3242
Diffstat (limited to 'src/tool_cfgable.h')
-rw-r--r--src/tool_cfgable.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tool_cfgable.h b/src/tool_cfgable.h
index b719fa219..501c96189 100644
--- a/src/tool_cfgable.h
+++ b/src/tool_cfgable.h
@@ -69,8 +69,8 @@ struct OperationConfig {
char *headerfile;
char *ftpport;
char *iface;
- int localport;
- int localportrange;
+ long localport;
+ long localportrange;
unsigned short porttouse;
char *range;
long low_speed_limit;