cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [bagder/curl] 219a0f: remote_port: allow connect to port 0

From: Frank Gevaerts <frank_at_gevaerts.be>
Date: Wed, 5 Mar 2014 22:00:31 +0100

On Wed, Mar 05, 2014 at 08:52:49PM +0000, Steve Holme wrote:
> Also, I'm not sure if I missed something but is it possible to set this
> variable to a large number like 2 million (on 32-bit systems), so do we need
> to validate against values above 65535?

I don't know if there are ways to abuse this, but on my (64 bit) system,
"curl http://www.google.com:-18446744073709551536/" behaves as if it
were port 80.

Frank

-- 
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2014-03-05