Re: [PATCH] drm/i915/gvt: Add __nonstring annotations for unterminated strings

2025-04-01 Thread Thorsten Leemhuis
On 01.04.25 10:46, Jani Nikula wrote: > On Mon, 31 Mar 2025, Thorsten Leemhuis wrote: >> On 10.03.25 23:23, Kees Cook wrote: >>> When a character array without a terminating NUL character has a static >>> initializer, GCC 15's -Wunterminated-string-initialization will only >>> warn if the array la

Re: [PATCH] drm/i915/gvt: Add __nonstring annotations for unterminated strings

2025-04-01 Thread Jani Nikula
On Mon, 31 Mar 2025, Thorsten Leemhuis wrote: > On 10.03.25 23:23, Kees Cook wrote: >> When a character array without a terminating NUL character has a static >> initializer, GCC 15's -Wunterminated-string-initialization will only >> warn if the array lacks the "nonstring" attribute[1]. Mark the a

Re: [PATCH] drm/i915/gvt: Add __nonstring annotations for unterminated strings

2025-03-31 Thread Thorsten Leemhuis
On 10.03.25 23:23, Kees Cook wrote: > When a character array without a terminating NUL character has a static > initializer, GCC 15's -Wunterminated-string-initialization will only > warn if the array lacks the "nonstring" attribute[1]. Mark the arrays > with __nonstring to and correctly identify t

Re: [PATCH] drm/i915/gvt: Add __nonstring annotations for unterminated strings

2025-03-25 Thread Damian Tometzki
On Mon, 24. Mar 22:19, Nicolas Chauvet wrote: > Le lun. 24 mars 2025 à 13:54, Jani Nikula > a écrit : > > > > On Sun, 23 Mar 2025, Damian Tometzki wrote: > > > On Mon, 10. Mar 15:23, Kees Cook wrote: > > >> When a character array without a terminating NUL character has a static > > >> initializer

Re: [PATCH] drm/i915/gvt: Add __nonstring annotations for unterminated strings

2025-03-25 Thread Kees Cook
On Sun, Mar 23, 2025 at 12:42:41PM +, Damian Tometzki wrote: > On Mon, 10. Mar 15:23, Kees Cook wrote: > > When a character array without a terminating NUL character has a static > > initializer, GCC 15's -Wunterminated-string-initialization will only > > warn if the array lacks the "nonstring"

Re: [PATCH] drm/i915/gvt: Add __nonstring annotations for unterminated strings

2025-03-24 Thread Nicolas Chauvet
Le lun. 24 mars 2025 à 13:54, Jani Nikula a écrit : > > On Sun, 23 Mar 2025, Damian Tometzki wrote: > > On Mon, 10. Mar 15:23, Kees Cook wrote: > >> When a character array without a terminating NUL character has a static > >> initializer, GCC 15's -Wunterminated-string-initialization will only >

Re: [PATCH] drm/i915/gvt: Add __nonstring annotations for unterminated strings

2025-03-24 Thread Jani Nikula
On Sun, 23 Mar 2025, Damian Tometzki wrote: > On Mon, 10. Mar 15:23, Kees Cook wrote: >> When a character array without a terminating NUL character has a static >> initializer, GCC 15's -Wunterminated-string-initialization will only >> warn if the array lacks the "nonstring" attribute[1]. Mark the

Re: [PATCH] drm/i915/gvt: Add __nonstring annotations for unterminated strings

2025-03-23 Thread Damian Tometzki
On Mon, 10. Mar 15:23, Kees Cook wrote: > When a character array without a terminating NUL character has a static > initializer, GCC 15's -Wunterminated-string-initialization will only > warn if the array lacks the "nonstring" attribute[1]. Mark the arrays > with __nonstring to and correctly identi

[PATCH] drm/i915/gvt: Add __nonstring annotations for unterminated strings

2025-03-11 Thread Kees Cook
When a character array without a terminating NUL character has a static initializer, GCC 15's -Wunterminated-string-initialization will only warn if the array lacks the "nonstring" attribute[1]. Mark the arrays with __nonstring to and correctly identify the char array as "not a C string" and thereb