Extempt calculate_gnu_hash_neon from hwasan.

Bug: 227630703
Change-Id: I525c99796c87252050b46faffb3058f7e8b5866c
This commit is contained in:
Florian Mayer 2022-03-31 22:46:52 +00:00
parent 6bdefa6ca2
commit 6e8f3a76ee

View file

@ -81,6 +81,8 @@ constexpr uint32_t kStepN7 = kStepN6 * 0x3e0f83e1;
// return h;
// }
//
// This does an within-alignment out-of-bounds read for performance reasons.
__attribute__((no_sanitize("hwaddress")))
std::pair<uint32_t, uint32_t> calculate_gnu_hash_neon(const char* name) {
// The input string may be misaligned by 0-7 bytes (K). This function loads the first aligned