https://sourceware.org/bugzilla/show_bug.cgi?id=33006

Xudong Cao <xdcao.cs at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|NOTABUG                     |---
             Status|RESOLVED                    |UNCONFIRMED

--- Comment #5 from Xudong Cao <xdcao.cs at gmail dot com> ---
(In reply to Mark Wielaard from comment #2)
> Note that you don't actually need asan to show this. This shows up with
> _FORTIFY_SOURCE (which is on by default unless you explicitly override
> CFLAGS) when processing an "illegal" instruction with the max possible
> length. We provide a slightly too small stack buffer to snprintf. Which
> would immediate terminate with _FORTIFY_SOURCE on such "illegal"
> instructions. Without _FORTIFY_SOURCE we just use a few extra bytes on
> the stack. There are some larger arrays in the stack which aren't used
> afterwards, without any issue, even though it is technically UB.

Thanks for the detailed explanation and clarification.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to