[3.8] bpo-38282: Rewrite getsockaddrarg() helper function (GH-16698) by miss-islington · Pull Request #16706 · python/cpython
Rewrite getsockaddrarg() helper function of socketmodule.c (_socket
module) to prevent a false alarm when compiling codde using GCC with
_FORTIFY_SOURCE=2. Pass a pointer of the sock_addr_t union, rather
than passing a pointer to a sockaddr structure.
Add "struct sockaddr_tipc tipc;" to the sock_addr_t union.
(cherry picked from commit d565fb9)
Co-authored-by: Victor Stinner vstinner@python.org