Re: [PING] [PATCH] consider successor blocks when avoiding -Wstringop-truncation (PR 84468)

2018-03-07 Thread Jeff Law
On 03/01/2018 02:17 PM, Martin Sebor wrote: > > I read you last reply as asking me to handle multiple edges. Sorry, I should have been clearer. You need to be prepared for the possibility of multiple edges and handle them in a conservatively correct way. The most likely way to get multiple outgo

Re: [PING] [PATCH] consider successor blocks when avoiding -Wstringop-truncation (PR 84468)

2018-03-01 Thread Martin Sebor
On 02/27/2018 06:50 PM, Jeff Law wrote: On 02/26/2018 05:47 PM, Martin Sebor wrote: On 02/26/2018 12:13 PM, Jeff Law wrote: On 02/24/2018 05:11 PM, Martin Sebor wrote: Attached is an updated patch with a fix for a bad assumption exposed by building the linux kernel. On 02/19/2018 07:50 PM, Ma

Re: [PING] [PATCH] consider successor blocks when avoiding -Wstringop-truncation (PR 84468)

2018-02-27 Thread Jeff Law
On 02/26/2018 05:47 PM, Martin Sebor wrote: > On 02/26/2018 12:13 PM, Jeff Law wrote: >> On 02/24/2018 05:11 PM, Martin Sebor wrote: >>> Attached is an updated patch with a fix for a bad assumption >>> exposed by building the linux kernel. >>> >>> On 02/19/2018 07:50 PM, Martin Sebor wrote: PR

Re: [PING] [PATCH] consider successor blocks when avoiding -Wstringop-truncation (PR 84468)

2018-02-26 Thread Martin Sebor
On 02/26/2018 12:13 PM, Jeff Law wrote: On 02/24/2018 05:11 PM, Martin Sebor wrote: Attached is an updated patch with a fix for a bad assumption exposed by building the linux kernel. On 02/19/2018 07:50 PM, Martin Sebor wrote: PR 84468 points out a false positive in -Wstringop-truncation in co

Re: [PING] [PATCH] consider successor blocks when avoiding -Wstringop-truncation (PR 84468)

2018-02-26 Thread Jeff Law
On 02/24/2018 05:11 PM, Martin Sebor wrote: > Attached is an updated patch with a fix for a bad assumption > exposed by building the linux kernel. > > On 02/19/2018 07:50 PM, Martin Sebor wrote: >> PR 84468 points out a false positive in -Wstringop-truncation >> in code like this: >> >>   struct A

[PING] [PATCH] consider successor blocks when avoiding -Wstringop-truncation (PR 84468)

2018-02-24 Thread Martin Sebor
Attached is an updated patch with a fix for a bad assumption exposed by building the linux kernel. On 02/19/2018 07:50 PM, Martin Sebor wrote: PR 84468 points out a false positive in -Wstringop-truncation in code like this: struct A { char a[4]; }; void f (struct A *p, const struct A *q)

[PATCH] consider successor blocks when avoiding -Wstringop-truncation (PR 84468)

2018-02-19 Thread Martin Sebor
PR 84468 points out a false positive in -Wstringop-truncation in code like this: struct A { char a[4]; }; void f (struct A *p, const struct A *q) { if (p->a) strncpy (p->a, q->a, sizeof p->a - 1); // warning here p->a[3] = '\0'; } The warning is due to the code checking