http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60792

Attila Balint <abalint21 at gmail dot com> changed:

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

--- Comment #2 from Attila Balint <abalint21 at gmail dot com> ---
(In reply to Jakub Jelinek from comment #1)
> Zero length array inside of another string is not a flexible array member,
> nor anything close to that, and with -D_FORTIFY_SOURCE=2 is not even
> supposed to be handled like flexible array member alternative.  Thus, I
> don't see why you think this is a bug.  Simply don't do it, use
> -D_FORTIFY_SOURCE=1 instead, or use e.g. memcpy instead of strncpy which is
> allowed even in -D_FORTIFY_SOURCE=2 mode (which is stricter than what C/C++
> allows) to cross field boundaries.

Clear. Thank you for the clarification. It is not a bug

Reply via email to