From: Lasse Collin Date: Sat, 1 Jun 2019 21:50:59 +0000 (+0300) Subject: liblzma: Fix one more unaligned read to use unaligned_read16ne(). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c460f6defebc5a81bbca90adc2476154ca244f69;p=xz liblzma: Fix one more unaligned read to use unaligned_read16ne(). --- diff --git a/src/liblzma/lz/lz_encoder_hash.h b/src/liblzma/lz/lz_encoder_hash.h index 342a333d..f238f9d9 100644 --- a/src/liblzma/lz/lz_encoder_hash.h +++ b/src/liblzma/lz/lz_encoder_hash.h @@ -39,7 +39,7 @@ // Endianness doesn't matter in hash_2_calc() (no effect on the output). #ifdef TUKLIB_FAST_UNALIGNED_ACCESS # define hash_2_calc() \ - const uint32_t hash_value = *(const uint16_t *)(cur) + const uint32_t hash_value = unaligned_read16ne(cur) #else # define hash_2_calc() \ const uint32_t hash_value \