Re: [PATCH] tighten up attribute access validation (PR 97879)

2020-11-20 Thread Martin Sebor via Gcc-patches
On 11/18/20 4:36 PM, Jeff Law wrote: On 11/18/20 3:41 PM, Martin Sebor via Gcc-patches wrote: The access attribute handler doesn't check to make sure the mode argument is an identifier and readily accepts string arguments which are assumed to be the condensed internal representation the user a

Re: [PATCH] tighten up attribute access validation (PR 97879)

2020-11-18 Thread Jeff Law via Gcc-patches
On 11/18/20 3:41 PM, Martin Sebor via Gcc-patches wrote: > The access attribute handler doesn't check to make sure the mode > argument is an identifier and readily accepts string arguments > which are assumed to be the condensed internal representation > the user attribute is translated to.  Thi

[PATCH] tighten up attribute access validation (PR 97879)

2020-11-18 Thread Martin Sebor via Gcc-patches
The access attribute handler doesn't check to make sure the mode argument is an identifier and readily accepts string arguments which are assumed to be the condensed internal representation the user attribute is translated to. This can cause all sorts of unintended behavior when the user supplies