[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:41:47 CST 2019
Diederik de Groot created ASTERISK-28232:
--------------------------------------------
Summary: 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: 16.0.0, 13.0.0, 11.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