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: <9ab31529-8146-4ca7-8389-04c69f7d1b49@amlogic.com>
Date: Mon, 15 Dec 2025 10:15:59 +0800
From: Zhentao Guo <zhentao.guo@...ogic.com>
To: Nicolas Dufresne <nicolas@...fresne.ca>,
 Mauro Carvalho Chehab <mchehab@...nel.org>, Rob Herring <robh@...nel.org>,
 Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley
 <conor+dt@...nel.org>, Neil Armstrong <neil.armstrong@...aro.org>,
 Kevin Hilman <khilman@...libre.com>, Jerome Brunet <jbrunet@...libre.com>,
 Martin Blumenstingl <martin.blumenstingl@...glemail.com>
Cc: linux-media@...r.kernel.org, devicetree@...r.kernel.org,
 linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
 linux-amlogic@...ts.infradead.org
Subject: Re: [PATCH RFC v2 2/3] decoder: Add V4L2 stateless H.264 decoder
 driver


在 2025/12/12 21:51, Nicolas Dufresne 写道:
> Hi,
>
> Le vendredi 12 décembre 2025 à 12:11 +0800, Zhentao Guo a écrit :
>>> strcpy() would be the preferred helper for this, no need to fill the leading
>>> zero liek this, see include/linux/string.h
>> Ok, it should be more suitable to use strcpy.
> I have to correct myself, I meant to suggest strscpy(dst, src, size). Passing
> the size for safety seems important, and unlike strncpy() it takes care of the
> leading zero.
Yes, we use strscpy() for copying all the strings.
>
> Nicolas

Thanks

Zhentao


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ