[asterisk-bugs] [JIRA] (ASTERISK-28232) core: RAII using clang use-after-scope issue

Asterisk Team (JIRA) noreply at issues.asterisk.org
Wed Feb 6 05:01:48 CST 2019


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

Asterisk Team updated ASTERISK-28232:
-------------------------------------

    Target Release Version/s: 13.25.0

> core: RAII using clang use-after-scope issue
> --------------------------------------------
>
>                 Key: ASTERISK-28232
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28232
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/General
>    Affects Versions: 11.0.0, 13.0.0, 16.0.0
>         Environment: clang
>            Reporter: Diederik de Groot
>            Assignee: Diederik de Groot
>            Severity: Minor
>              Labels: Clang, Raii, SanitizeAddress
>      Target Release: 13.25.0
>
>
> When using clang as the compiler and activating address sanitizer, every time RAII_VAR tries to unwind, address-sanitizer reports an issue with use-after-scope. This makes sense, because the two variables used in the RAII_VAR macro are declared in the wrong order. Reversing the order, solves the issue.



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



More information about the asterisk-bugs mailing list