[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <yq1ldtlttdo.fsf@ca-mkp.ca.oracle.com>
Date: Mon, 03 Mar 2025 21:36:00 -0500
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Thorsten Blum <thorsten.blum@...ux.dev>
Cc: "Martin K. Petersen" <martin.petersen@...cle.com>,
linux-hardening@...r.kernel.org, linux-scsi@...r.kernel.org,
target-devel@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] scsi: target: Replace deprecated strncpy() with
strscpy()
Thorsten,
> strncpy() is deprecated for NUL-terminated destination buffers; use
> strscpy() instead. The destination buffer db_root is only used with
> "%s" format strings and must therefore be NUL-terminated, but not
> NUL-padded.
Applied to 6.15/scsi-staging, thanks!
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists