[tor-bugs] #4515 [Tor Client]: tor_inet_pton(...) ipv6 addr. parsing inconsistencies
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Fri Nov 18 22:33:59 UTC 2011
#4515: tor_inet_pton(...) ipv6 addr. parsing inconsistencies
------------------------+---------------------------------------------------
Reporter: 4ZM | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: Tor Client | Version:
Keywords: | Parent:
Points: | Actualpoints:
------------------------+---------------------------------------------------
Currently:
* "0x10::" is a valid addr according to tor_inet_pton but not according to
inet_pton.
* ":" is a seg fault waiting to happen. (src[1] <- out of bound)
* "000010::" is an invalid addr according to tor_inet_pton but not
according to inet_pton.
I suggest changing tor_inet_pton to make it consistent with inet_pton (as
the doc states it should be).
I'll update the ticket with a patch in a moment.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/4515>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list