This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/81986] sanitizer detects negation of large number in string.c
- From: "zeccav at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 28 Aug 2017 08:27:33 +0000
- Subject: [Bug sanitizer/81986] sanitizer detects negation of large number in string.c
- Auto-submitted: auto-generated
- References: <bug-81986-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81986
--- Comment #2 from Vittorio Zecca <zeccav at gmail dot com> ---
I do not know if this is a libgfortran or a sanitizer bug.
What I do know is that changing string.c:199 from
t = - n;
into
t = -(GFC_UINTEGER_LARGEST)n;
as it should be, the sanitizer message disappears and the whole original test
case
pr66311.f90 runs smoothly.