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: <87wmctw775.ffs@tglx>
Date: Thu, 13 Mar 2025 11:33:50 +0100
From: Thomas Gleixner <tglx@...utronix.de>
To: Thorsten Blum <thorsten.blum@...ux.dev>, John Stultz
 <jstultz@...gle.com>, Stephen Boyd <sboyd@...nel.org>
Cc: linux-kernel@...r.kernel.org, Kees Cook <kees@...nel.org>, Peter
 Zijlstra <peterz@...radead.org>
Subject: Re: [PATCH] clocksource: Remove unnecessary size argument when
 calling strscpy()

On Tue, Mar 11 2025 at 12:06, Thorsten Blum wrote:

> The size parameter is optional and strscpy() automatically determines
> the length of the destination buffer using sizeof() if the argument is
> omitted.

If, and _only_ if the destination argument is a fixed length array.

That's the case here, but without that distinction the above sentence is
misleading at best.

Thanks,

        tglx


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ