public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "bic60176 at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/115899] [14 Regression] Misaligned address check missing Date: Fri, 12 Jul 2024 19:22:10 +0000 [thread overview] Message-ID: <bug-115899-4-QEgnpxGajx@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-115899-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115899 --- Comment #2 from Bi6c <bic60176 at gmail dot com> --- OS: Ubuntu 22.04.3 LTS We found that GCC failed to detect a signed integer overflow error in gcc-14.1.0 at optimization level 0. $ ~/compiler-builds/gcc-13.2.0_build/bin/gcc -fsanitize=undefined -g -lgcc_s -w -O0 testcase.c -o exec $ timeout 2s ./exec 2>exec.err -2 $ cat exec.err testcase.c:20:64: runtime error: signed integer overflow: 61952 * 61952 cannot be represented in type 'int' $ ~/compiler-builds/gcc-14.1.0_build/bin/gcc -fsanitize=undefined -g -lgcc_s -w -O0 testcase.c -o exec $ timeout 2s ./exec 2>exec.err -2 $ cat exec.err $
next prev parent reply other threads:[~2024-07-12 19:22 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-07-12 19:19 [Bug sanitizer/115899] New: " bic60176 at gmail dot com 2024-07-12 19:21 ` [Bug sanitizer/115899] " bic60176 at gmail dot com 2024-07-12 19:22 ` bic60176 at gmail dot com [this message] 2024-07-12 19:34 ` [Bug sanitizer/115899] Signed integer overflow check is not done if on left side comma operator and unused pinskia at gcc dot gnu.org 2024-07-17 3:46 ` xry111 at gcc dot gnu.org 2024-07-17 3:47 ` xry111 at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-115899-4-QEgnpxGajx@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).