Merge branch 'cm/no-sanitize-load-word' into 'main'

gutf8: Skip ASan instrumentation for load_word

See merge request GNOME/glib!4385
This commit is contained in:
Philip Withnall 2024-11-07 11:38:25 +00:00
commit 04f6d555b0

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)