diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2019-06-01 18:41:16 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2019-12-31 22:19:12 +0200 |
commit | 29afef03486d461c23f57150ac5436684bff7811 (patch) | |
tree | f32d23fe20372ec1aaf9affd587181edb3139f08 /ChangeLog | |
parent | liblzma: Avoid memcpy(NULL, foo, 0) because it is undefined behavior. (diff) | |
download | xz-29afef03486d461c23f57150ac5436684bff7811.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 'ChangeLog')
0 files changed, 0 insertions, 0 deletions