zapret/ip2net
Jonathan Wakely 6adaf5ca27
Fix aliasing violations in ip6_and
Accessing uint8_t[16] through a different type is an aliasing violation, i.e. undefined behaviour.

Use memcpy to copy the bytes out, then AND them, then memcpy back in.
The actual memcpy calls will be optimized away, but doing it this way avoids undefined behaviour.
2022-06-08 16:29:44 +01:00
..
ip2net.c Fix aliasing violations in ip6_and 2022-06-08 16:29:44 +01:00
Makefile -Wno-logical-op-parentheses 2022-01-23 14:52:04 +03:00
qsort.c history purge 2021-03-04 14:30:38 +03:00
qsort.h history purge 2021-03-04 14:30:38 +03:00