gutf8: Skip ASan instrumentation for load_word

load_word has a known out-of-bounds read that is explained in
commit ec7cf334db.

Helps: #3493
This commit is contained in:
correctmost 2024-11-06 10:58:31 -05:00
parent a429e56523
commit 5641770743

View File

@ -1607,6 +1607,12 @@ load_u8 (gconstpointer memory,
# define _attribute_aligned(n)
#endif
/* See the HAVE_WORKING_IFUNC_ATTRIBUTE definition for an explanation of the
* no_sanitize_address annotation.
*/
#if g_macro__has_attribute(no_sanitize_address)
__attribute__((no_sanitize_address))
#endif
static inline gsize
load_word (gconstpointer memory,
gsize offset)