Re: [PATCH 6/6] detect unterminated const arrays in strnlen calls (PR 86552)

2018-10-01 Thread Jeff Law
On 8/13/18 3:29 PM, Martin Sebor wrote: > The attached changes implement the detection of past-the-end reads > by strncpy due to unterminated arguments and excessive bounds. > > > gcc-86552-6.diff > > PR tree-optimization/86552 - missing warning for reading past the end of > non-string arrays >

Re: [PATCH 6/6] detect unterminated const arrays in strnlen calls (PR 86552)

2018-08-30 Thread Jeff Law
On 08/13/2018 03:29 PM, Martin Sebor wrote: > The attached changes implement the detection of past-the-end reads > by strncpy due to unterminated arguments and excessive bounds. > > > gcc-86552-6.diff > > > PR tree-optimization/86552 - missing warning for reading past the end of > non-string a

[PATCH 6/6] detect unterminated const arrays in strnlen calls (PR 86552)

2018-08-13 Thread Martin Sebor
The attached changes implement the detection of past-the-end reads by strncpy due to unterminated arguments and excessive bounds. PR tree-optimization/86552 - missing warning for reading past the end of non-string arrays gcc/ChangeLog: * builtins.c (expand_builtin_strnlen): Detect, avoid expand