Commit Graph

10 Commits

Author SHA1 Message Date
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
bol-van
b5d55b632c -Wno-logical-op-parentheses 2022-01-23 14:52:04 +03:00
bol-van
2a3b9cf982 test for -1 (EOF) sscanf result 2021-12-27 12:54:07 +03:00
bol-van
6363732009 remove binary links 2021-09-21 01:19:19 +03:00
bol-van
0b8072840b ip2net : precompute ipv6 masks 2021-09-18 21:22:29 +03:00
bol-van
9402cd2cf0 ip2net : zero less significant bits in ip4/ip6 addresses, workaround GCC bug 2021-09-12 13:58:13 +03:00
bol-van
c021033bdf makefiles: avoid redefining STRIP 2021-03-05 21:23:32 +03:00
bol-van
bd571f3abe makefiles: strip mac executables 2021-03-05 21:17:21 +03:00
bol-van
4a54b217e2 ip2net Makefie regression 2021-03-05 21:01:17 +03:00
bol-van
3703918a4b history purge 2021-03-04 14:30:38 +03:00