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] [thread-next>] [day] [month] [year] [list]
Message-ID: <rbjjfbhrwh4qjfj4pjhb5zzrvyddjlekfed6kfcrtuurj2ovgg@dm6xesb7nuzm>
Date: Thu, 19 Jun 2025 23:29:23 +0530
From: Brahmajit Das <listout@...tout.xyz>
To: Mark Harmstone <mark@...mstone.com>
Cc: linux-hardening@...r.kernel.org, linux-kernel@...r.kernel.org, 
	linux-btrfs@...r.kernel.org, clm@...com, josef@...icpanda.com, dsterba@...e.com, 
	kees@...nel.org, ailiop@...e.com
Subject: Re: [PATCH v2] btrfs: replace deprecated strcpy with strscpy

On 19.06.2025 18:06, Mark Harmstone wrote:
> On 19/06/2025 4.39 pm, Brahmajit Das wrote:
...
> 
> Surely this doesn't compile... strscpy takes three parameters.
> 
It does, the third parameter is optional. From include/linux/string.h

#define strscpy(dst, src, ...) \
	CONCATENATE(__strscpy, COUNT_ARGS(__VA_ARGS__))(dst, src, __VA_ARGS__)

But I'm more than happy to add the third parameter.

-- 
Regards,
listout

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ