[asterisk-bugs] [JIRA] (ASTERISK-28321) res_rtp_asterisk: Fixing possible divide by zero for rtcp stat calculation

Friendly Automation (JIRA) noreply at issues.asterisk.org
Wed Mar 13 05:39:47 CDT 2019


    [ https://issues.asterisk.org/jira/browse/ASTERISK-28321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=246552#comment-246552 ] 

Friendly Automation commented on ASTERISK-28321:
------------------------------------------------

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]

> res_rtp_asterisk: Fixing possible divide by zero for rtcp stat calculation
> --------------------------------------------------------------------------
>
>                 Key: ASTERISK-28321
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28321
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_rtp_asterisk
>    Affects Versions: 16.2.1
>            Reporter: sungtae kim
>            Assignee: sungtae kim
>            Severity: Minor
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list