CWPack
CWPack copied to clipboard
aliasing violations
Code like the following violates aliasing rules, an object shall only be accessed through its declared type or through a char pointer.
I think only the only legal way is to use memcpy
(or assembly). Type punning through unions does not help here.
https://github.com/clwi/CWPack/blob/d0beec87d3dd7fba8782d6d74a0f73096418e8ae/src/cwpack_internals.h#L54