From 56417707431628827837790442b35fe6cf180b59 Mon Sep 17 00:00:00 2001 From: correctmost <136447-correctmost@users.noreply.gitlab.gnome.org> Date: Wed, 6 Nov 2024 10:58:31 -0500 Subject: [PATCH] gutf8: Skip ASan instrumentation for load_word load_word has a known out-of-bounds read that is explained in commit ec7cf334db8d4ea722413e6050cc92ce553dc4f7. Helps: #3493 --- glib/gutf8.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/glib/gutf8.c b/glib/gutf8.c index bca3358c2..22cd43f87 100644 --- a/glib/gutf8.c +++ b/glib/gutf8.c @@ -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)