If ConsumeBytes() returns an empty vector, then its data() method may or may not return a null pointer [1]. Its size() method will return 0 and memcpy(dst, maybenull, 0) will be called from FuzzedSock::Accept().
Given that the len argument is 0, memcpy() should not try to dereference the maybenull argument, but nevertheless the sanitizer is upset:
0./src/test/fuzz/util/net.cpp:337:43: runtime error: null pointer passed
1as argument 2, which is declared to never be null
Fix this by avoiding the call to memcpy() if an empty vector is returned. The full target buffer is zeroed upfront.
[1] https://en.cppreference.com/w/cpp/container/vector/data
Resolves: #33643