Re: [PATCH v2] drm/modes: replace deprecated strncpy with strscpy_pad

2023-11-30 Thread Kees Cook
On Mon, 16 Oct 2023 22:38:20 +, Justin Stitt wrote: > `strncpy` is deprecated for use on NUL-terminated destination strings > [1] and as such we should prefer more robust and less ambiguous string > interfaces. > > We should NUL-pad as there are full struct copies happening in places: > |

Re: [PATCH v2] drm/modes: replace deprecated strncpy with strscpy_pad

2023-10-18 Thread Kees Cook
On Mon, Oct 16, 2023 at 10:38:20PM +, Justin Stitt wrote: > `strncpy` is deprecated for use on NUL-terminated destination strings > [1] and as such we should prefer more robust and less ambiguous string > interfaces. > > We should NUL-pad as there are full struct copies happening in places: >