Re: [PATCH] handle a null data.decl consistently in strnlen (PR 87490)

2018-10-04 Thread Jeff Law
On 10/3/18 11:58 AM, Martin Sebor wrote: > The recent strnlen changes to detect reading past unterminated > arrays introduced a couple of bugs: > > 1) ICE due to assuming that the strnlen argument necessarily >    refers to a known declaration under some conditions. > 2) Failing to diagnose uses o

[PATCH] handle a null data.decl consistently in strnlen (PR 87490)

2018-10-03 Thread Martin Sebor
The recent strnlen changes to detect reading past unterminated arrays introduced a couple of bugs: 1) ICE due to assuming that the strnlen argument necessarily refers to a known declaration under some conditions. 2) Failing to diagnose uses of unterminated arrays in calls with a non-constan