Skip to content

Commit

Permalink
alignas(16) unsupported w/ GCC 7.2 for ARM32
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth committed Jan 2, 2025
1 parent 4243a79 commit 0ca89eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crypto/cipher_extra/aead_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,7 @@ TEST_P(PerAEADTest, AliasedBuffers) {
EXPECT_EQ(Bytes(kPlaintext), Bytes(in, out_len));
}

#if !defined(__BIGGEST_ALIGNMENT__) || __BIGGEST_ALIGNMENT__ >= 16
TEST_P(PerAEADTest, UnalignedInput) {
alignas(16) uint8_t key[EVP_AEAD_MAX_KEY_LENGTH + 1];
alignas(16) uint8_t nonce[EVP_AEAD_MAX_NONCE_LENGTH + 1];
Expand Down Expand Up @@ -874,6 +875,7 @@ TEST_P(PerAEADTest, UnalignedInput) {
EXPECT_EQ(Bytes(plaintext + 1, sizeof(plaintext) - 1),
Bytes(out + 1, out_len));
}
#endif // !defined(__BIGGEST_ALIGNMENT__) || __BIGGEST_ALIGNMENT__ >= 16

TEST_P(PerAEADTest, Overflow) {
uint8_t key[EVP_AEAD_MAX_KEY_LENGTH];
Expand Down

0 comments on commit 0ca89eb

Please sign in to comment.