mirror of https://github.com/bol-van/zapret/
Browse Source
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.pull/113/head
committed by
GitHub
1 changed files with 6 additions and 10 deletions
Loading…
Reference in new issue