FuzzedSock::Accept()
properly returns a new socket, but it forgot to set the output argument addr
, like accept(2)
is expected to.
This could lead to reading uninitialized data during testing when we read it, e.g. from CService::SetSockAddr()
which reads the sa_family
member.
Set addr
to a fuzzed IPv4 or IPv6 address.