public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "akihiko.odaki at daynix dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/114494] false-positive with -O2 -Wstringop-overflow=2 -fsanitize=address
Date: Wed, 27 Mar 2024 06:33:28 +0000 [thread overview]
Message-ID: <bug-114494-4-5NjZJNTc0E@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-114494-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114494
--- Comment #3 from Akihiko Odaki <akihiko.odaki at daynix dot com> ---
(In reply to Andrew Pinski from comment #2)
> Note the minimized testcase seems to be a real issue. hlen can either be 1
> (the only value that works) or more than 1.
Below is the the error message for the minimized testcase:
<stdin>: In function 'rtl8139_cplus_transmit_one':
<stdin>:23:5: warning: writing 1 byte into a region of size 0
[-Wstringop-overflow=]
<stdin>:4:11: note: at offset 1 into destination object 'ip_ver_len' of size 1
It does not seem to care if hlen == 1 or not.
next prev parent reply other threads:[~2024-03-27 6:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-27 6:20 [Bug sanitizer/114494] New: " akihiko.odaki at daynix dot com
2024-03-27 6:24 ` [Bug sanitizer/114494] " pinskia at gcc dot gnu.org
2024-03-27 6:27 ` pinskia at gcc dot gnu.org
2024-03-27 6:33 ` akihiko.odaki at daynix dot com [this message]
2024-03-27 7:37 ` pinskia at gcc dot gnu.org
2024-04-01 18:18 ` hp at gcc dot gnu.org
2024-04-03 5:21 ` akihiko.odaki at daynix dot com
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-114494-4-5NjZJNTc0E@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: link
Be 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).