aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/check/crc64_fast.c
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2020-07-22 15:25:47 -0700
committerHaibo Huang <hhb@google.com>2020-07-23 14:02:29 -0700
commit47426872d1366c32538a8e9c8f559b03cb45b648 (patch)
treed2ddaf65e32fa07e023e6544cbd48d1b487ada57 /src/liblzma/check/crc64_fast.c
parentac90d9b11e02bd6837917f7e981ed40dc2cb7d1b (diff)
parent2327a461e1afce862c22269b80d3517801103c1b (diff)
downloadxz-47426872d1366c32538a8e9c8f559b03cb45b648.tar.gz
Bug: 161925045 Change-Id: Ifaeca15b70f1a880ddb0550b20ca5da26e5c5aa5
Diffstat (limited to 'src/liblzma/check/crc64_fast.c')
-rw-r--r--src/liblzma/check/crc64_fast.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liblzma/check/crc64_fast.c b/src/liblzma/check/crc64_fast.c
index 52af29ed..8af54cda 100644
--- a/src/liblzma/check/crc64_fast.c
+++ b/src/liblzma/check/crc64_fast.c
@@ -47,9 +47,9 @@ lzma_crc64(const uint8_t *buf, size_t size, uint64_t crc)
while (buf < limit) {
#ifdef WORDS_BIGENDIAN
const uint32_t tmp = (crc >> 32)
- ^ *(const uint32_t *)(buf);
+ ^ aligned_read32ne(buf);
#else
- const uint32_t tmp = crc ^ *(const uint32_t *)(buf);
+ const uint32_t tmp = crc ^ aligned_read32ne(buf);
#endif
buf += 4;