This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/81694] VRP optimization may introduce buffer overflow vulnerabilities into applications
- From: "amonakov at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 03 Aug 2017 13:16:45 +0000
- Subject: [Bug tree-optimization/81694] VRP optimization may introduce buffer overflow vulnerabilities into applications
- Auto-submitted: auto-generated
- References: <bug-81694-4@http.gcc.gnu.org/bugzilla/>
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