[asterisk-bugs] [JIRA] (ASTERISK-30232) Initialize stack-based ast_test_capture structures correctly

Philip Prindeville (JIRA) noreply at issues.asterisk.org
Fri Sep 16 14:47:08 CDT 2022


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

Philip Prindeville edited comment on ASTERISK-30232 at 9/16/22 2:45 PM:
------------------------------------------------------------------------

Yes, fixed in https://gerrit.asterisk.org/c/asterisk/+/19276.

Discovered during running /res/res_crypto/ tests and was seeing aborts from a double-free.


was (Author: pprindeville):
Yes, fixed in https://gerrit.asterisk.org/c/asterisk/+/19276.

> Initialize stack-based ast_test_capture structures correctly
> ------------------------------------------------------------
>
>                 Key: ASTERISK-30232
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-30232
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Tests/General
>    Affects Versions: 20.0.0, 19.6.0, 16.28.0, 18.14.0
>            Reporter: Philip Prindeville
>            Assignee: Unassigned
>
> If we allocate an ast_test_capture structure and call ast_test_capture_free() without having initialized it, we may get double frees or other undefined behavior.
> This structure should always be initialized before being used.



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



More information about the asterisk-bugs mailing list