Re: [PATCH] fix off-by-one mistakes in attribute access syntax checking (PR 93640)

2020-02-10 Thread Jakub Jelinek
On Mon, Feb 10, 2020 at 10:20:50AM -0700, Martin Sebor wrote: > PR 93641 points out a number of off-by-one mistakes in calls to strncmp > in GCC where the bound is (unintentionally) less than the length of > the string literal argument. > > PR 93640 is a separate report of another such mistake in

[PATCH] fix off-by-one mistakes in attribute access syntax checking (PR 93640)

2020-02-10 Thread Martin Sebor
PR 93641 points out a number of off-by-one mistakes in calls to strncmp in GCC where the bound is (unintentionally) less than the length of the string literal argument. PR 93640 is a separate report of another such mistake in the code that validates the mode argument in attribute access. As a re