]> granicus.if.org Git - curl/commit
curl: fix --local-port integer overflow
authorDaniel Stenberg <daniel@haxx.se>
Mon, 5 Nov 2018 10:57:29 +0000 (11:57 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 7 Nov 2018 10:48:17 +0000 (11:48 +0100)
commit52db54869e628c5b13039ecc2b4757f8eb969834
tree1d2958a5aa7fa1cace4e54c54e0ea92bd2b84883
parentbda4ef417a00c91e3a7829fdba4b0968dd62e497
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
src/tool_cfgable.h
src/tool_getparam.c
src/tool_operate.c