public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/67485] New: expmed.c sanitizer detects overflow
@ 2015-09-07 14:50 zeccav at gmail dot com
  2021-02-21  7:53 ` [Bug middle-end/67485] " zeccav at gmail dot com
  0 siblings, 1 reply; 2+ messages in thread
From: zeccav at gmail dot com @ 2015-09-07 14:50 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67485

            Bug ID: 67485
           Summary: expmed.c sanitizer detects overflow
           Product: gcc
           Version: 5.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zeccav at gmail dot com
  Target Milestone: ---

/* gcc sanitizer runtime error message*/
/* gcc/expmed.c:3026:42: runtime error: signed integer overflow:
-9223372036854775808 - 1 cannot be represented in type 'long int [3]*/
/* source line "val_so_far -= (HOST_WIDE_INT) 1 << log;" */
/* val_so_far == -9223372036854775808 */
/* log == 0 */
/* Target: x86_64-unknown-linux-gnu */
/* COLLECT_GCC_OPTIONS='-mtune=generic' '-march=x86-64' */
#define INTTYPE_SIGNED(t) (! ((t) 0 < (t) -1))
#define INTTYPE_MINIMUM(t) ((t) (INTTYPE_SIGNED (t) \
                             ? ~ (t) 0 << (sizeof (t) * 8 - 1) : (t) 0))
#define INTTYPE_MAXIMUM(t) ((t) (~ (t) 0 - INTTYPE_MINIMUM (t)))
typedef long int int64_t;
int64_t
to_int ()
{
 int64_t sign;
 return sign * INTTYPE_MAXIMUM (int64_t);
}


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug middle-end/67485] expmed.c sanitizer detects overflow
  2015-09-07 14:50 [Bug middle-end/67485] New: expmed.c sanitizer detects overflow zeccav at gmail dot com
@ 2021-02-21  7:53 ` zeccav at gmail dot com
  0 siblings, 0 replies; 2+ messages in thread
From: zeccav at gmail dot com @ 2021-02-21  7:53 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67485

Vittorio Zecca <zeccav at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from Vittorio Zecca <zeccav at gmail dot com> ---
Resolved.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-21  7:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-07 14:50 [Bug middle-end/67485] New: expmed.c sanitizer detects overflow zeccav at gmail dot com
2021-02-21  7:53 ` [Bug middle-end/67485] " 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).