This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [google] AddressSanitizer for gcc, first attempt. (issue 5272048)
- From: davidxl at google dot com
- To: konstantin dot s dot serebryany at gmail dot com, kcc at google dot com
- Cc: gcc-patches at gcc dot gnu dot org, reply at codereview dot appspotmail dot com
- Date: Mon, 17 Oct 2011 22:33:17 +0000
- Subject: Re: [google] AddressSanitizer for gcc, first attempt. (issue 5272048)
- Reply-to: konstantin dot s dot serebryany at gmail dot com, kcc at google dot com, davidxl at google dot com, gcc-patches at gcc dot gnu dot org, reply at codereview dot appspotmail dot com
http://codereview.appspot.com/5272048/diff/2001/tree-asan.c
File tree-asan.c (right):
http://codereview.appspot.com/5272048/diff/2001/tree-asan.c#newcode79
tree-asan.c:79: (All I need is to traverse *all* memory accesses and
instrument them).
Discard 2) -- it is not correct. What Asan needs is slightly different.
David
On 2011/10/17 22:26:55, davidxl wrote:
Two suggestions:
1) You only need to deal with GIMPLE_ASSIGN (lhs and rhs) for all
memory
references)
2) use get_base_address function to compute base address.
http://codereview.appspot.com/5272048/