]> granicus.if.org Git - curl/commit
urlapi: stricter CURLUPART_PORT parsing
authorDaniel Stenberg <daniel@haxx.se>
Thu, 11 Apr 2019 11:20:15 +0000 (13:20 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 13 Apr 2019 09:17:30 +0000 (11:17 +0200)
commitd715d2ac89abc0fc98ccb220c7f7cc148e747144
tree18e0e2e6a8422ca30ac77e47a16118de953503eb
parent79c4864a563824b19044ef98599f0ccdad262e84
urlapi: stricter CURLUPART_PORT parsing

Only allow well formed decimal numbers in the input.

Document that the number MUST be between 1 and 65535.

Add tests to test 1560 to verify the above.

Ref: https://github.com/curl/curl/issues/3753
Closes #3762
docs/libcurl/curl_url_set.3
lib/urlapi.c
tests/libtest/lib1560.c