This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/80875] UBSAN: compile time crash in fold_binary_loc at fold-const.c:9817
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 24 May 2017 18:23:48 +0000
- Subject: [Bug sanitizer/80875] UBSAN: compile time crash in fold_binary_loc at fold-const.c:9817
- Auto-submitted: auto-generated
- References: <bug-80875-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80875
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
commit 0123775a88c6cf1035e4633fde7823a3e9889809
Author: rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Wed Oct 28 13:41:25 2015 +0000
2015-10-28 Richard Biener <rguenther@suse.de>
* fold-const.c (negate_expr_p): Adjust the division case to
properly avoid introducing undefined overflow.
(fold_negate_expr): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229484
138bc75d-0d04-0410-961f-82ee72b054a4