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

2018-08-30 Thread Jeff Law
On 08/13/2018 03:27 PM, Martin Sebor wrote: > The attached changes implement the detection of past-the-end reads > by strcpy due to unterminated arguments. > > gcc-86552-3.diff > > > PR tree-optimization/86552 - missing warning for reading past the end of > non-string arrays > > gcc/ChangeLog:

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

2018-08-13 Thread Martin Sebor
The attached changes implement the detection of past-the-end reads by strcpy due to unterminated arguments. PR tree-optimization/86552 - missing warning for reading past the end of non-string arrays gcc/ChangeLog: * builtins.c (unterminated_array): New. (expand_builtin_strcpy): Adjust. (expan