gopalshankar / address-sanitizer

Automatically exported from code.google.com/p/address-sanitizer
0 stars 0 forks source link

provide more information for unnamed temps #241

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently asan may produce warning like this when a compiler-generated temp is 
involved: 

[2400, 2432) '' <== Memory access at offset 2432 overflows this variable

Instead of printing '' we need to print some more information, like 
<unnamed_temp:LINENUM>

Original issue reported on code.google.com by konstant...@gmail.com on 1 Nov 2013 at 10:26

GoogleCodeExporter commented 9 years ago
and also the type name
LINENUM would be useful for named vars as well, then we can point to the exact 
line instead of function start

Original comment by dvyu...@gmail.com on 1 Nov 2013 at 10:35

GoogleCodeExporter commented 9 years ago
At the moment, we consider extending the frontend to emit extra metadata 
describing local variables and temps, which sanitizers can use to properly 
describe them in the error reports. Another option is to use debug info in 
sanitizer passes in the backend, and later strip debug info if user didn't 
specify -g* flag.

Original comment by samso...@google.com on 4 Nov 2013 at 7:38

GoogleCodeExporter commented 9 years ago

Original comment by konstant...@gmail.com on 18 Nov 2013 at 8:59