From: Martin Sebor <msebor@redhat.com>
To: Richard Biener <rguenther@suse.de>, gcc-patches@gcc.gnu.org
Subject: Re: [PATCH] tree-optimization/105726 - adjust array bound heuristic
Date: Wed, 25 May 2022 11:23:55 -0600 [thread overview]
Message-ID: <02a18746-6113-f70e-5f31-ff6cfda5b5ec@redhat.com> (raw)
In-Reply-To: <172756e6-6cd6-a05c-b8cb-8b72c023fa36@redhat.com>
On 5/25/22 11:19, Martin Sebor wrote:
> On 5/25/22 04:49, Richard Biener wrote:
...
> [*] For example, no warning is issued for the following overread:
Scratch that, there is no overread with strncpy. When there is like
with memcpy, it is diagnosed as it should be.
>
> struct A a;
>
> void g (char *d)
> {
> struct B *q = &a.b;
> __builtin_strncpy (d, q->a, 123); // { dg-warning
> "-Wstringop-overread" "pr???????" { xfail *-*-* } }
> }
prev parent reply other threads:[~2022-05-25 17:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-25 10:49 Richard Biener
2022-05-25 17:19 ` Martin Sebor
2022-05-25 17:23 ` Martin Sebor [this message]
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=02a18746-6113-f70e-5f31-ff6cfda5b5ec@redhat.com \
--to=msebor@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=rguenther@suse.de \
/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).