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: Wed, 18 Oct 2023 08:32:54 +0000 (UTC)
From: Kalle Valo <>
To: Justin Stitt <>
Cc:,,, Justin Stitt <>
Subject: Re: [PATCH] ath6kl: replace deprecated strncpy with memcpy

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
> interfaces.
> The affected code's purpose is to truncate strings that are too long
> with "..." like:
> foobar -> fo...
> The lengths have been carefully calculated and as such this has decayed
> to a simple byte copy from one buffer to another -- let's use memcpy().
> Note: build-tested only.
> Link: [1]
> Link:
> Cc:
> Signed-off-by: Justin Stitt <>
> Signed-off-by: Kalle Valo <>

Patch applied to ath-next branch of ath.git, thanks.

40990961d983 wifi: ath6kl: replace deprecated strncpy with memcpy


Powered by blists - more mailing lists