https://bugs.llvm.org/show_bug.cgi?id=47982
Bug ID: 47982
Summary: [asan] Shadowed stack variables' name are not the
exact source name.
Product: clang
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangb...@nondot.org
Reporter: pierregoussea...@gmail.com
CC: llvm-bugs@lists.llvm.org, neeil...@live.com,
richard-l...@metafoo.co.uk
In the sample below the reported variable's name is the LLVM ir's name 'x1'
instead of 'x'.
Any ideas how to use the source's variable name instead?
Many thanks,
Pierre
///////////////////
int main()
{
int x;
{
int x;
delete &x;
}
delete &x;
return 0;
}
$ clang++ -fsanitize=address test.cpp && ./a.out
==191==ERROR: AddressSanitizer: attempting free on address which was not
malloc()-ed:
...
This frame has 2 object(s):
[32, 36) 'x' (line 3842)
[48, 52) 'x1' (line 3844) <== Memory access at offset 48 is inside this
variable
///////////////////
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs