[Asterisk-code-review] res_rtp_asterisk: Avoid absolute value on unsigned subtraction. (asterisk[master])

Alexander Traud asteriskteam at digium.com
Mon Apr 6 08:01:29 CDT 2020


Alexander Traud has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/14088 )


Change subject: res_rtp_asterisk: Avoid absolute value on unsigned subtraction.
......................................................................

res_rtp_asterisk: Avoid absolute value on unsigned subtraction.

ASTERISK-28809

Change-Id: I269731715347c8e5ef7db1b6ffd3f8d15fc04be4
---
M res/res_rtp_asterisk.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/88/14088/1

diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c
index 47562f5..72f4668 100644
--- a/res/res_rtp_asterisk.c
+++ b/res/res_rtp_asterisk.c
@@ -7750,7 +7750,7 @@
 		}
 
 		return AST_LIST_FIRST(&frames);
-	} else if (((abs(seqno - rtp->expectedrxseqno) > 100) && timestamp > rtp->lastividtimestamp) ||
+	} else if ((((seqno - rtp->expectedrxseqno) > 100) && timestamp > rtp->lastividtimestamp) ||
 		ast_data_buffer_count(rtp->recv_buffer) == ast_data_buffer_max(rtp->recv_buffer)) {
 		int inserted = 0;
 

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/14088
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I269731715347c8e5ef7db1b6ffd3f8d15fc04be4
Gerrit-Change-Number: 14088
Gerrit-PatchSet: 1
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200406/158baddd/attachment.html>


More information about the asterisk-code-review mailing list