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 tree-optimization/81694] VRP optimization may introduce buffer overflow vulnerabilities into applications


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

--- Comment #5 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
GCC exploits undefined behavior throughout the compilation pipeline, if you
want a methodical workaround, you need compilation mode that makes overflow
defined (-fwrapv), and likewise for other sources of undefined behavior. A few
links to related discussion are available at https://gcc.gnu.org/wiki/boringcc

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