[asterisk-bugs] [JIRA] (ASTERISK-24921) RAII reentrancy issue when compiled with clang

Diederik de Groot (JIRA) noreply at issues.asterisk.org
Fri Mar 27 10:05:34 CDT 2015


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

Diederik de Groot edited comment on ASTERISK-24921 at 3/27/15 10:05 AM:
------------------------------------------------------------------------

Related to:
ASTERISK-2085 / https://reviewboard.asterisk.org/r/4370/

BTW: refcounting would possible help to solve the issue, but don't want to go there just yet.


was (Author: dkdegroot):
Related to:
ASTERISK-2085 / https://reviewboard.asterisk.org/r/4370/

> RAII reentrancy issue when compiled with clang
> ----------------------------------------------
>
>                 Key: ASTERISK-24921
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24921
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/General
>    Affects Versions: 13.2.0
>         Environment: clang-3.6
>            Reporter: Diederik de Groot
>         Attachments: RAII_clang_backtrace.txt
>
>
> clang version of the RAII macro is not re-entrant proof. It will destruct the pointer on the first exit of the recursion and multiple time (double-free).



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



More information about the asterisk-bugs mailing list