From e5d2be814027989ec7f8d6eecf365ffd9149b21e Mon Sep 17 00:00:00 2001 From: Mamadou DIOP Date: Mon, 18 Jan 2016 19:23:09 +0100 Subject: Fix arithmetic overflow issue when computing RTCP-RR-fraction field --- tinyRTP/src/rtcp/trtp_rtcp_session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tinyRTP') diff --git a/tinyRTP/src/rtcp/trtp_rtcp_session.c b/tinyRTP/src/rtcp/trtp_rtcp_session.c index 3172278..b2f4733 100755 --- a/tinyRTP/src/rtcp/trtp_rtcp_session.c +++ b/tinyRTP/src/rtcp/trtp_rtcp_session.c @@ -1278,7 +1278,7 @@ static tsk_size_t SendRTCPReport(trtp_rtcp_session_t* session, event_ e) continue; } if((rblock = trtp_rtcp_rblock_create_null())){ - uint32_t expected, expected_interval, received_interval, lost_interval; + int32_t expected, expected_interval, received_interval, lost_interval; rblock->ssrc = source->ssrc; // RFC 3550 - A.3 Determining Number of Packets Expected and Lost -- cgit v1.1