[asterisk-bugs] [JIRA] (ASTERISK-29994) chan_dahdi: Round robin array size is too small for max number of groups

Friendly Automation (JIRA) noreply at issues.asterisk.org
Wed Apr 27 11:40:41 CDT 2022


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

Friendly Automation commented on ASTERISK-29994:
------------------------------------------------

Change 18469 merged by Joshua Colp:
chan_dahdi: Fix insufficient array size for round robin.

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

> chan_dahdi: Round robin array size is too small for max number of groups
> ------------------------------------------------------------------------
>
>                 Key: ASTERISK-29994
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29994
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_dahdi
>    Affects Versions: 18.11.0
>            Reporter: N A
>            Assignee: N A
>
> In chan_dahdi.conf, we have:
> {noformat}
> ; Logical groups can be assigned to allow outgoing roll-over.  Groups range
> ; from 0 to 63, and multiple groups can be specified. By default the
> ; channel is not a member of any group.
> {noformat}
> However, there is a typo in chan_dahdi.c:
> {noformat}
> /*! Round robin search locations. */
> static struct dahdi_pvt *round_robin[32];
> {noformat}
> This actually needs to be 64, or otherwise only  groups 0-31 work correctly with round robin, and 32+ don't work with round robin but work with "G" for instance.
> This fixes this issue so that they are both consistent with allowing 64 groups (0-63).



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



More information about the asterisk-bugs mailing list