This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/70514] Variable length arrays lead to garbage in another array


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

--- Comment #6 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> ---
(In reply to Chris Warrick from comment #5)
> Thanks for debugging my code, and sorry for wasting time.

No problem. It is a pity that GCC static analysis capabilities are not powerful
enough to catch this case, but -fsanitize is your friend. Perhaps useful: 

https://gcc.gnu.org/wiki/FAQ#misoptimization

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]