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

Friendly Automation (JIRA) noreply at issues.asterisk.org
Fri Jan 11 08:30:47 CST 2019


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

Friendly Automation commented on ASTERISK-28232:
------------------------------------------------

Change 10868 merged by Joshua C. Colp:
RAII: Change order or variables in clang version

[https://gerrit.asterisk.org/10868|https://gerrit.asterisk.org/10868]

> 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
>
> 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