diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2019-06-01 18:41:16 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2019-06-01 18:41:16 +0300 |
commit | 3bc112c2d38d5f348bce7bc2422286b1692c7490 (patch) | |
tree | 7d8be72d3ea8fff7db13ef750d4119776c4b5540 /m4/tuklib_physmem.m4 | |
parent | liblzma: Avoid memcpy(NULL, foo, 0) because it is undefined behavior. (diff) | |
download | xz-3bc112c2d38d5f348bce7bc2422286b1692c7490.tar.xz |
tuklib_integer: Improve unaligned memory access.
Now memcpy() or GNU C packed structs for unaligned access instead
of type punning. See the comment in this commit for details.
Avoiding type punning with unaligned access is needed to
silence gcc -fsanitize=undefined.
New functions: unaliged_readXXne and unaligned_writeXXne where
XX is 16, 32, or 64.
Diffstat (limited to 'm4/tuklib_physmem.m4')
0 files changed, 0 insertions, 0 deletions