Re: Warray-bounds-39 vs recent c_strlen changes

2019-08-26 Thread Jeff Law
On 8/26/19 12:19 PM, Martin Sebor wrote: > On 8/26/19 11:41 AM, Jeff Law wrote: >> I think we need to go back and revisit this hunk: >> >>>    /* If the offset is known to be out of bounds, warn, and call >>> strlen at >>>   runtime.  */ >>>    if (eltoff < 0 || eltoff >= maxelts) >>> { >>

Re: Warray-bounds-39 vs recent c_strlen changes

2019-08-26 Thread Martin Sebor
On 8/26/19 11:41 AM, Jeff Law wrote: I think we need to go back and revisit this hunk: /* If the offset is known to be out of bounds, warn, and call strlen at runtime. */ if (eltoff < 0 || eltoff >= maxelts) { /* Suppress multiple warnings for propagated constant string