https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112510

--- Comment #11 from Vladimir Sadovnikov <sadko4u at gmail dot com> ---
I mean, this code may work in improper way if ASAN allocates only 0x20 bytes on
the stack:

```
    138d:       bf 80 03 00 00          mov    $0x380,%edi
    1392:       e8 39 fd ff ff          call   10d0 <__asan_stack_malloc_4@plt>
    1397:       48 85 c0                test   %rax,%rax
    139a:       0f 84 88 fe ff ff       je     1228
<_Z13gate_x1_curvePfPKfPKN3dsp11gate_knee_tEm+0x3f>
    13a0:       48 89 c3                mov    %rax,%rbx
    13a3:       e9 80 fe ff ff          jmp    1228
<_Z13gate_x1_curvePfPKfPKN3dsp11gate_knee_tEm+0x3f>
    13a8:       48 c7 03 0e 36 e0 45    movq   $0x45e0360e,(%rbx)
    13af:       48 be f5 f5 f5 f5 f5    movabs $0xf5f5f5f5f5f5f5f5,%rsi
```

Reply via email to