Red Hat Bugzilla – Bug 1022063
socat: out-of-range shifts
Last modified: 2017-10-03 21:24:58 EDT
Shifting ints by 32 bits (bits == 0) may not give the expected result in xioparsenetwork_ip4() in xio-ip4.c:
netmask_in->s_addr = htonl((0xffffffff << (32-bits)));
xioparsenetwork_ip6() has a similar problem (with 128).
Such out-of-range shifts are undefined and the outcome differs on different architectures.
Has been fixed in upstream release 184.108.40.206