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]
Message-ID: <CAGiJo8Tx8-hHMDxtEByZyP-E1J+K7jrHCEKuzhdchTm0E8iwXA@mail.gmail.com>
Date: Wed, 13 Nov 2024 23:55:32 -0800
From: Daniel Yang <danielyangkang@...il.com>
To: Kent Overstreet <kent.overstreet@...ux.dev>
Cc: "open list:BCACHEFS" <linux-bcachefs@...r.kernel.org>, 
	open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] bcachefs: replace deprecated strncpy with strscpy

On Wed, Nov 13, 2024 at 6:21 PM Kent Overstreet
<kent.overstreet@...ux.dev> wrote:
> strncpy is correct here, we don't need the output to be nul terminated

If dest is not NULL terminated, then core API recommends using strtomem instead.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ