[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
Mon Mar 11 09:47:47 CDT 2019


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

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

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]

> 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