[Bug sanitizer/80875] UBSAN: compile time crash in fold_binary_loc at fold-const.c:9817
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed May 24 18:45:00 GMT 2017
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
More information about the Gcc-bugs
mailing list