Hide Forgot
xiosetsockaddrenv_ip4() in xio-ip4.c calls strcopy on overlapping buffers: strcpy(valuebuff, inet4addr_info(ntohl(sa->sin_addr.s_addr), valuebuff, valuelen)); I think it's sufficient to drop the strcpy call because inet4addr_info already does the writing.
Has been fixed in upstream release 1.7.2.4
This bug is addressed by ERRATA RHBA-2017:2049-03 socat bug fix update https://errata.devel.redhat.com/advisory/26967