Merge "Extempt calculate_gnu_hash_neon from hwasan."

This commit is contained in:
Treehugger Robot 2022-04-01 00:56:45 +00:00 committed by Gerrit Code Review
commit 8581029d08

View file

@ -81,6 +81,8 @@ constexpr uint32_t kStepN7 = kStepN6 * 0x3e0f83e1;
// return h; // 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) { 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 // The input string may be misaligned by 0-7 bytes (K). This function loads the first aligned