aboutsummaryrefslogtreecommitdiff
path: root/src/scripts
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2019-06-01 18:41:16 +0300
committerLasse Collin <lasse.collin@tukaani.org>2019-06-01 18:41:16 +0300
commit3bc112c2d38d5f348bce7bc2422286b1692c7490 (patch)
tree7d8be72d3ea8fff7db13ef750d4119776c4b5540 /src/scripts
parentliblzma: Avoid memcpy(NULL, foo, 0) because it is undefined behavior. (diff)
downloadxz-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 'src/scripts')
0 files changed, 0 insertions, 0 deletions