Re: [PATCH v2] drm/etnaviv: refactor deprecated strncpy

2023-10-11 Thread Lucas Stach
Am Montag, dem 18.09.2023 um 13:34 + schrieb Justin Stitt: > `strncpy` is deprecated for use on NUL-terminated destination strings [1]. > > We should prefer more robust and less ambiguous string interfaces. > > A suitable replacement is `strscpy_pad` due to the fact that it > guarantees

Re: [PATCH v2] drm/etnaviv: refactor deprecated strncpy

2023-10-09 Thread Christian Gmeiner
Am Fr., 6. Okt. 2023 um 22:23 Uhr schrieb Kees Cook : > > On Mon, Sep 18, 2023 at 01:34:08PM +, Justin Stitt wrote: > > `strncpy` is deprecated for use on NUL-terminated destination strings [1]. > > > > We should prefer more robust and less ambiguous string interfaces. > > > > A suitable

Re: [PATCH v2] drm/etnaviv: refactor deprecated strncpy

2023-10-06 Thread Kees Cook
On Mon, Sep 18, 2023 at 01:34:08PM +, Justin Stitt wrote: > `strncpy` is deprecated for use on NUL-terminated destination strings [1]. > > We should prefer more robust and less ambiguous string interfaces. > > A suitable replacement is `strscpy_pad` due to the fact that it > guarantees

Re: [PATCH v2] drm/etnaviv: refactor deprecated strncpy

2023-09-23 Thread Kees Cook
On Mon, Sep 18, 2023 at 01:34:08PM +, Justin Stitt wrote: > `strncpy` is deprecated for use on NUL-terminated destination strings [1]. > > We should prefer more robust and less ambiguous string interfaces. > > A suitable replacement is `strscpy_pad` due to the fact that it > guarantees

[PATCH v2] drm/etnaviv: refactor deprecated strncpy

2023-09-18 Thread Justin Stitt
`strncpy` is deprecated for use on NUL-terminated destination strings [1]. We should prefer more robust and less ambiguous string interfaces. A suitable replacement is `strscpy_pad` due to the fact that it guarantees NUL-termination on the destination buffer whilst maintaining the NUL-padding