]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Quiet ubsan when calling PID event callbacks
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 26 Mar 2025 01:21:45 +0000 (19:21 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 27 Mar 2025 04:20:15 +0000 (22:20 -0600)
src/lib/util/event.c

index a7ce23ff39fe5bc022ea0567182d7c17dd98be7c..6d893e0eb092146518c10584478bac287c86c634 100644 (file)
@@ -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)
 {