Re: [PATCH v2] docs: deprecated.rst: Add zero-length and one-element arrays

2020-06-05 Thread Gustavo A. R. Silva
On 6/5/20 14:30, Kees Cook wrote: > On Fri, Jun 05, 2020 at 11:21:42AM -0500, Gustavo A. R. Silva wrote: >> Add zero-length and one-element arrays to the list. >> >> While I continue replacing zero-length and one-element arrays with >> flexible-array members, I need a reference to point people

Re: [PATCH v2] docs: deprecated.rst: Add zero-length and one-element arrays

2020-06-05 Thread Kees Cook
On Fri, Jun 05, 2020 at 11:21:42AM -0500, Gustavo A. R. Silva wrote: > Add zero-length and one-element arrays to the list. > > While I continue replacing zero-length and one-element arrays with > flexible-array members, I need a reference to point people to, so > they don't introduce more

[PATCH v2] docs: deprecated.rst: Add zero-length and one-element arrays

2020-06-05 Thread Gustavo A. R. Silva
Add zero-length and one-element arrays to the list. While I continue replacing zero-length and one-element arrays with flexible-array members, I need a reference to point people to, so they don't introduce more instances of such arrays. And while here, add a note to the "open-coded arithmetic in