[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #33768 [Core Tor/Tor]: Make tor_inet_pton() handle bad addresses consistently on Windows
#33768: Make tor_inet_pton() handle bad addresses consistently on Windows
-------------------------+-------------------------------------------------
Reporter: teor | Owner: (none)
Type: defect | Status: new
Priority: Medium | Milestone: Tor: 0.4.4.x-final
Component: Core | Version:
Tor/Tor | Keywords: 044-should, security-low,
Severity: Normal | 035-backport, 041-backport, 042-backport,
| 043-backport, outreachy-ipv6, ipv6, windows
Actual Points: | Parent ID:
Points: 1 | Reviewer:
Sponsor: |
Sponsor55-can |
-------------------------+-------------------------------------------------
tor_inet_pton() handles bad addresses differently on Windows and
Linux/macOS.
For example, the address: "2000::1a00::1000:fc098" (two "::") fails this
test on Windows, but succeeds on Linux and macOS:
https://github.com/torproject/tor/pull/1831/commits/05f4f93722d46c0e8f1d09b4dea4bf5d1743d93f
#diff-048243cd6d9ed36dda0944181d8ec8abR1729
Let's fix this bug and backport it.
In general, we should make all the functions in this file behave
identically:
* zero any out parameters at the start of the function
* zero any out parameters on failure
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/33768>
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