From: Alan T. DeKok Date: Fri, 16 Jan 2026 21:29:44 +0000 (-0500) Subject: try to quiet UBSAN on OSX X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fdc703f8ff909030bea7452fd56df3935ecb9cc;p=thirdparty%2Ffreeradius-server.git try to quiet UBSAN on OSX --- diff --git a/src/lib/util/hash.c b/src/lib/util/hash.c index c290ec76373..f205456d84d 100644 --- a/src/lib/util/hash.c +++ b/src/lib/util/hash.c @@ -181,8 +181,9 @@ static uint32_t parent_of(uint32_t key) } -static fr_hash_entry_t *list_find(fr_hash_table_t *ht, - fr_hash_entry_t *head, uint32_t reversed, void const *data) +static CC_NO_UBSAN(undefined) +fr_hash_entry_t *list_find(fr_hash_table_t *ht, + fr_hash_entry_t *head, uint32_t reversed, void const *data) { fr_hash_entry_t *cur; @@ -205,7 +206,8 @@ static fr_hash_entry_t *list_find(fr_hash_table_t *ht, /* * Inserts a new entry into the list, in order. */ -static bool list_insert(fr_hash_table_t *ht, +static CC_NO_UBSAN(undefined) +bool list_insert(fr_hash_table_t *ht, fr_hash_entry_t **head, fr_hash_entry_t *node) { fr_hash_entry_t **last, *cur;