From: Arran Cudbard-Bell Date: Wed, 26 Mar 2025 01:21:45 +0000 (-0600) Subject: Quiet ubsan when calling PID event callbacks X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f44d4c7ee9611ae46d7f20bc18b048dcdf4846e;p=thirdparty%2Ffreeradius-server.git Quiet ubsan when calling PID event callbacks --- diff --git a/src/lib/util/event.c b/src/lib/util/event.c index a7ce23ff39f..6d893e0eb09 100644 --- a/src/lib/util/event.c +++ b/src/lib/util/event.c @@ -1356,6 +1356,7 @@ static int _event_pid_free(fr_event_pid_t *ev) /** Evaluate a EVFILT_PROC event * */ +CC_NO_UBSAN(function) /* UBSAN: false positive - Public/private version of connection_t trips -fsanitize=function */ static inline CC_HINT(always_inline) void event_pid_eval(fr_event_list_t *el, struct kevent *kev) { @@ -2177,7 +2178,7 @@ int fr_event_corral(fr_event_list_t *el, fr_time_t now, bool wait) return num_fd_events + timer_event_ready; } -CC_NO_UBSAN(function) /* UBSAN: false positive - public vs private connection_t trips --fsanitize=function*/ +CC_NO_UBSAN(function) /* UBSAN: false positive - public vs private fr_event_list_t trips --fsanitize=function*/ static inline CC_HINT(always_inline) void event_callback(fr_event_list_t *el, fr_event_fd_t *ef, int *filter, int flags, int *fflags) {