Re: [PATCH] ASAN: emit line information of stack variables.

2018-10-09 Thread Jakub Jelinek
On Thu, Sep 27, 2018 at 10:55:10AM +0200, Martin Liška wrote: > @@ -1281,15 +1284,30 @@ asan_emit_stack_protection (rtx base, rtx pbase, > unsigned int alignb, >pp_space (&asan_pp); >pp_wide_integer (&asan_pp, offsets[l - 1] - offsets[l]); >pp_space (&asan_pp); > + > +

Re: [PATCH] ASAN: emit line information of stack variables.

2018-10-09 Thread Martin Liška
PING^1 On 9/27/18 10:55 AM, Martin Liška wrote: > Hi. > > I've noticed ASAN can inform user about location of stack variables > when a stack violation is detected. > > Sample example: > > ... > This frame has 3 object(s): > [32, 36) 'counter' (line 3) <== Memory access at offset 36 overfl

[PATCH] ASAN: emit line information of stack variables.

2018-09-27 Thread Martin Liška
Hi. I've noticed ASAN can inform user about location of stack variables when a stack violation is detected. Sample example: ... This frame has 3 object(s): [32, 36) 'counter' (line 3) <== Memory access at offset 36 overflows this variable [96, 100) 'size' (line 5) [160, 164) 'leng