Re: [PATCH] correct range of stpcpy result (PR 101397)

2021-07-20 Thread Martin Sebor via Gcc-patches
On 7/20/21 10:08 AM, Jeff Law wrote: On 7/14/2021 7:49 PM, Martin Sebor via Gcc-patches wrote: Access warnings look through calls to the subset of built-ins that return one of their pointer arguments to find the object the pointer it points to and its offset.  The computation is wrong for

Re: [PATCH] correct range of stpcpy result (PR 101397)

2021-07-20 Thread Jeff Law via Gcc-patches
On 7/14/2021 7:49 PM, Martin Sebor via Gcc-patches wrote: Access warnings look through calls to the subset of built-ins that return one of their pointer arguments to find the object the pointer it points to and its offset.  The computation is wrong for functions like stpcpy, stpncpy and

[PATCH] correct range of stpcpy result (PR 101397)

2021-07-14 Thread Martin Sebor via Gcc-patches
Access warnings look through calls to the subset of built-ins that return one of their pointer arguments to find the object the pointer it points to and its offset. The computation is wrong for functions like stpcpy, stpncpy and mempcpy that return a pointer plus some offset, and leads to a