1 suggestion
Earlier concerns neither republished nor resolved: 1 suggestion. See the Run archive for their assessments.
Optional improvements
[suggestion] · SOCKS5 address expansion depends on normalization and the DNS mock
The expansion inherits address normalization and consumes the connman fuzz harness's mocked DNS results instead of deterministically formatting the supplied IPv6 literal.
Location: src/netbase.cpp:406 (head).
Details and suggested fix
LookupHost(dest, false) still uses g_dns_lookup. Its normal implementation constructs a CNetAddr, whose SetLegacyIPv6 converts TORv2-prefixed literals to unspecified IPv6. Consequently, a direct Socks5("fd87:d87e:eb43::1", ...) call would send 0:0:0:0:0:0:0:0 if the handshake reaches CONNECT, whereas base preserved the input. Current ConnectNode validation filters this case; I found no current production caller supplying such a literal. In the connman fuzz target, the hook instead ignores the name and returns ConsumeNetAddr(...). Reaching this helper with an unscoped compressed IPv6 target therefore consumes additional fuzz input. If the mock returns IPv6 and negotiation reaches CONNECT, the helper formats the mock result rather than the target; other network results leave the destination unchanged. Prefer passing WrappedGetAddrInfo explicitly and preserving dest when a non-:: input normalizes to the unspecified address. Keep the scoped-address bypass and add a regression case for fd87:d87e:eb43::1. Do not substitute an IsValid() guard, since that would also exclude the documentation addresses used by the new tests.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [suggestion]: Log the SOCKS5 destination name (earlier report)