diff options
author | George Kadianakis <desnacked@riseup.net> | 2020-12-17 13:49:17 +0200 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2020-12-17 13:49:17 +0200 |
commit | d89974c5c6bdb9083693638014106a41cb6d022d (patch) | |
tree | 66475350b1e4c0b57d6f9e7d7d6726fff9330977 /src/ext | |
parent | fcae26adf710cf1fe393fde723e9a2caf6012b09 (diff) | |
download | tor-d89974c5c6bdb9083693638014106a41cb6d022d.tar.gz tor-d89974c5c6bdb9083693638014106a41cb6d022d.zip |
Fix Keccak undefined behavior on exotic platforms.
Bug reported and diagnosed in:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=975977
Fixes bug #40210.
Diffstat (limited to 'src/ext')
-rw-r--r-- | src/ext/keccak-tiny/keccak-tiny.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ext/keccak-tiny/keccak-tiny.h b/src/ext/keccak-tiny/keccak-tiny.h index a9c8ed6420..dd26386a9a 100644 --- a/src/ext/keccak-tiny/keccak-tiny.h +++ b/src/ext/keccak-tiny/keccak-tiny.h @@ -21,7 +21,7 @@ typedef struct keccak_state { size_t offset; uint8_t finalized : 1; -} keccak_state; +} __attribute__((aligned(8))) keccak_state; /* Initialize a Keccak instance suitable for SHA-3 hash functions. */ int keccak_digest_init(keccak_state *s, size_t bits); |