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

Joshua C. Colp (JIRA) noreply at issues.asterisk.org
Mon Jan 7 05:11:47 CST 2019


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

Joshua C. Colp updated ASTERISK-28232:
--------------------------------------

    Status: Open  (was: Triage)

> 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
>            Severity: Minor
>              Labels: Clang, Raii, SanitizeAddress
>
> 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