Re: [PATCH] avoid using strnlen result for late calls to strlen (PR 82604)

2018-06-29 Thread Martin Sebor
On 06/29/2018 06:56 AM, Rainer Orth wrote: Hi Martin, While looking into opportunities to detect strnlen/strlen coding mistakes (pr86199) I noticed a bug in the strnlen implementation I committed earlier today that lets a strnlen() result be saved and used in subsequent calls to strlen() with t

Re: [PATCH] avoid using strnlen result for late calls to strlen (PR 82604)

2018-06-29 Thread Rainer Orth
Hi Martin, > While looking into opportunities to detect strnlen/strlen coding > mistakes (pr86199) I noticed a bug in the strnlen implementation > I committed earlier today that lets a strnlen() result be saved > and used in subsequent calls to strlen() with the same argument. > The attached patch

Re: [PATCH] avoid using strnlen result for late calls to strlen (PR 82604)

2018-06-25 Thread Martin Sebor
On 06/22/2018 04:00 PM, Jeff Law wrote: On 06/18/2018 01:15 PM, Martin Sebor wrote: While looking into opportunities to detect strnlen/strlen coding mistakes (pr86199) I noticed a bug in the strnlen implementation I committed earlier today that lets a strnlen() result be saved and used in subseq

Re: [PATCH] avoid using strnlen result for late calls to strlen (PR 82604)

2018-06-22 Thread Jeff Law
On 06/18/2018 01:15 PM, Martin Sebor wrote: > While looking into opportunities to detect strnlen/strlen coding > mistakes (pr86199) I noticed a bug in the strnlen implementation > I committed earlier today that lets a strnlen() result be saved > and used in subsequent calls to strlen() with the sam

[PATCH] avoid using strnlen result for late calls to strlen (PR 82604)

2018-06-18 Thread Martin Sebor
While looking into opportunities to detect strnlen/strlen coding mistakes (pr86199) I noticed a bug in the strnlen implementation I committed earlier today that lets a strnlen() result be saved and used in subsequent calls to strlen() with the same argument. The attached patch changes the handle_b