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

Diederik de Groot (JIRA) noreply at issues.asterisk.org
Sat Jan 5 11:43:47 CST 2019


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

Diederik de Groot updated ASTERISK-28232:
-----------------------------------------

    Review Link: https://gerrit.asterisk.org/10851  (was: 10851)

> 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: Contrib/General
>    Affects Versions: 11.0.0, 13.0.0, 16.0.0
>         Environment: clang
>            Reporter: Diederik de Groot
>            Severity: Minor
>
> 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