Re: [PATCH v2] compiler.h: Introduce __must_be_noncstr()

2025-03-03 Thread Kees Cook
On Sat, Mar 01, 2025 at 05:46:24AM +, Michael Kelley wrote: > From: Kees Cook Sent: Friday, February 28, 2025 9:42 AM > > > > In preparation for adding more type checking to the memtostr/strtomem*() > > helpers, introduce the ability to check for the "nonstring" attribute. > > This is the rev

RE: [PATCH v2] compiler.h: Introduce __must_be_noncstr()

2025-02-28 Thread Michael Kelley
From: Kees Cook Sent: Friday, February 28, 2025 9:42 AM > > In preparation for adding more type checking to the memtostr/strtomem*() > helpers, introduce the ability to check for the "nonstring" attribute. > This is the reverse of what was added to strscpy*() in commit 559048d156ff > ("string: Ch

[PATCH v2] compiler.h: Introduce __must_be_noncstr()

2025-02-28 Thread Kees Cook
In preparation for adding more type checking to the memtostr/strtomem*() helpers, introduce the ability to check for the "nonstring" attribute. This is the reverse of what was added to strscpy*() in commit 559048d156ff ("string: Check for "nonstring" attribute on strscpy() arguments"). Note that _