[asterisk-bugs] [JIRA] (ASTERISK-28457) [patch] Fix crash in chan_dahdi on 32-bit systems caused by ASTERISK-28317

abelbeck (JIRA) noreply at issues.asterisk.org
Thu Jun 20 10:43:47 CDT 2019


     [ https://issues.asterisk.org/jira/browse/ASTERISK-28457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

abelbeck updated ASTERISK-28457:
--------------------------------

    Attachment: asterisk-16-fix-chan_dahdi-add-logical-group.patch
                asterisk-13-fix-chan_dahdi-add-logical-group.patch

Since 'group' is an unsigned long long, it must be cast as 'ast_json_int_t' along with a JSON type 'I' to work on 32-bit systems.

> [patch] Fix crash in chan_dahdi on 32-bit systems caused by ASTERISK-28317
> --------------------------------------------------------------------------
>
>                 Key: ASTERISK-28457
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28457
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_dahdi
>    Affects Versions: 16.4.0, 13.27.0
>         Environment: AstLinux 1.3.x with 32-bit toolchain
>            Reporter: abelbeck
>              Labels: patch
>         Attachments: asterisk-13-fix-chan_dahdi-add-logical-group.patch, asterisk-16-fix-chan_dahdi-add-logical-group.patch
>
>
> With the addition of ASTERISK-28317, chan_dahdi crashes on 32-bit systems when calling ast_json_pack()
> {noformat}
> segfault at 1 ip 40421dcd sp 4334a990 error 4 in libjansson.so.4.11.1[4041d000+b000]
> {noformat}
> The crash occurs whenever the first DAHDI call occurs.
> A tested fix is provided as 13/16 patches.
> Since 'group' is an unsigned long long, it must be cast as 'ast_json_int_t' along with a JSON type 'I' to work on 32-bit systems.



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



More information about the asterisk-bugs mailing list