lkml.org 
[lkml]   [2023]   [Sep]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] bus: fsl-mc: refactor deprecated strncpy
Date
On Tue, 12 Sep 2023 22:52:04 +0000, Justin Stitt wrote:
> `strncpy` is deprecated for use on NUL-terminated destination strings [1].
>
> We need to prefer more robust and less ambiguous string interfaces.
>
> `obj_desc->(type|label)` are expected to be NUL-terminated strings as
> per "include/linux/fsl/mc.h +143"
> | ...
> | * struct fsl_mc_obj_desc - Object descriptor
> | * @type: Type of object: NULL terminated string
> | ...
>
> [...]

Applied to for-next/hardening, thanks!

[1/1] bus: fsl-mc: refactor deprecated strncpy
https://git.kernel.org/kees/c/fafafc55eb30

Take care,

--
Kees Cook

\
 
 \ /
  Last update: 2023-09-29 20:44    [W:0.048 / U:0.328 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site