lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Thu, 05 Oct 2023 12:09:13 +0100
From: Lee Jones <lee@...nel.org>
To: Linus Walleij <linus.walleij@...aro.org>, Lee Jones <lee@...nel.org>, 
 Justin Stitt <justinstitt@...gle.com>
Cc: linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org, 
 linux-hardening@...r.kernel.org
Subject: Re: (subset) [PATCH] mfd: db8500-prcmu: replace deprecated strncpy
 with strscpy

On Wed, 27 Sep 2023 05:10:54 +0000, 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 expect project_name to be NUL-terminated based on its use with
> pr_info:
> | 	pr_info("PRCMU firmware: %s(%d), version %d.%d.%d\n",
> | 		fw_info.version.project_name,
> | 		fw_info.version.project,
> | 		fw_info.version.api_version,
> | 		fw_info.version.func_version,
> | 		fw_info.version.errata);
> 
> [...]

Applied, thanks!

[1/1] mfd: db8500-prcmu: replace deprecated strncpy with strscpy
      commit: 5f0c4e32e8da434a83dd74a08e477c11e7efc6f7

--
Lee Jones [李琼斯]


Powered by blists - more mailing lists