mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-02 04:53:24 +00:00
stats: make sanitizers happy
The test expects wrapping here, but the undefined sanitizer is not happy with that, so disable it. Change-Id: I59ec65519ea028d4628ba4b56c939aef70794abf
This commit is contained in:
@@ -30,6 +30,11 @@
|
|||||||
#include <osmocom/mgcp/mgcp_endp.h>
|
#include <osmocom/mgcp/mgcp_endp.h>
|
||||||
|
|
||||||
/* Helper function for mgcp_format_stats_rtp() to calculate packet loss */
|
/* Helper function for mgcp_format_stats_rtp() to calculate packet loss */
|
||||||
|
#if defined(__has_attribute)
|
||||||
|
#if __has_attribute(no_sanitize)
|
||||||
|
__attribute__((no_sanitize("integer")))
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
void calc_loss(struct mgcp_conn_rtp *conn, uint32_t *expected, int *loss)
|
void calc_loss(struct mgcp_conn_rtp *conn, uint32_t *expected, int *loss)
|
||||||
{
|
{
|
||||||
struct mgcp_rtp_state *state = &conn->state;
|
struct mgcp_rtp_state *state = &conn->state;
|
||||||
|
|||||||
Reference in New Issue
Block a user