[Home]

Summary:ASTERISK-28321: res_rtp_asterisk: Fixing possible divide by zero for rtcp stat calculation
Reporter:sungtae kim (pchero)Labels:
Date Opened:2019-03-03 09:21:19.000-0600Date Closed:2019-03-11 09:47:08
Priority:MinorRegression?
Status:Closed/CompleteComponents:Resources/res_rtp_asterisk
Versions:16.2.1 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Currently, stddev_compute() gets unsigned integer as a parameter for sample_count, and increasing 1 before calculation.

This would be fine for most of cases, but in case of large enough number of sample_count, this might be causing the divide by zero error.

Comments:By: Asterisk Team (asteriskteam) 2019-03-03 09:21:20.099-0600

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

Please note that once your issue enters an open state it has been accepted. As Asterisk is an open source project there is no guarantee or timeframe on when your issue will be looked into. If you need expedient resolution you will need to find and pay a suitable developer. Asking for an update on your issue will not yield any progress on it and will not result in a response. All updates are posted to the issue when they occur.

By: Friendly Automation (friendly-automation) 2019-03-11 09:47:09.337-0500

Change 11085 merged by Friendly Automation:
res/res_rtp_asterisk.c: Fixing possible divide by zero

[https://gerrit.asterisk.org/c/asterisk/+/11085|https://gerrit.asterisk.org/c/asterisk/+/11085]

By: Friendly Automation (friendly-automation) 2019-03-11 10:08:36.317-0500

Change 11122 merged by Friendly Automation:
res/res_rtp_asterisk.c: Fixing possible divide by zero

[https://gerrit.asterisk.org/c/asterisk/+/11122|https://gerrit.asterisk.org/c/asterisk/+/11122]

By: Friendly Automation (friendly-automation) 2019-03-13 05:38:46.834-0500

Change 11123 merged by Joshua C. Colp:
res/res_rtp_asterisk.c: Fixing possible divide by zero

[https://gerrit.asterisk.org/c/asterisk/+/11123|https://gerrit.asterisk.org/c/asterisk/+/11123]