stats: make sanitizers happy

The test expects wrapping here, but the undefined sanitizer is not happy
with that, so disable it.

Change-Id: I59ec65519ea028d4628ba4b56c939aef70794abf
Eric Wild 2021-09-11 02:02:00 +02:00
parent e303fa9ff3
commit f936e10f07
1 changed files with 5 additions and 0 deletions

View File

@ -30,6 +30,11 @@
#include <osmocom/mgcp/mgcp_endp.h>
/* Helper function for mgcp_format_stats_rtp() to calculate packet loss */
#if defined(__has_attribute)
#if __has_attribute(no_sanitize)
void calc_loss(struct mgcp_conn_rtp *conn, uint32_t *expected, int *loss)
struct mgcp_rtp_state *state = &conn->state;