[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #4515 [Tor Client]: tor_inet_pton(...) ipv6 addr. parsing inconsistencies



#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs