public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/61902] New: signed integer overflow in real.c in real_from_integer
@ 2014-07-25 7:42 zeccav at gmail dot com
0 siblings, 0 replies; only message in thread
From: zeccav at gmail dot com @ 2014-07-25 7:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61902
Bug ID: 61902
Summary: signed integer overflow in real.c in real_from_integer
Product: gcc
Version: 4.9.1
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: zeccav at gmail dot com
Running sanitized cc1 on testsuite files fp-int-convert-float80-timode.c
and fp-int-convert-timode.c and fp-int-convert-float128-timode.c
I get the following
"../../gcc-4.9.1/gcc/real.c:2136:15: runtime error:
signed integer overflow: 9223372036854775807 + 1 cannot be represented in type
'long int'
The instruction at real.c:2136 is
"high += 1;"
It seems high==LONG_MIN on x86-64.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-07-25 7:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-25 7:42 [Bug c/61902] New: signed integer overflow in real.c in real_from_integer zeccav at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).