Re: [PATCH] [v2] firmware: tegra: fix strncpy()/strncat() confusion

2020-11-10 Thread Thierry Reding
On Mon, Oct 26, 2020 at 05:49:21PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > The way that bpmp_populate_debugfs_inband() uses strncpy() > and strncat() makes no sense since the size argument for > the first is insufficient to contain the trailing '/' > and the second passes the

Re: [PATCH] [v2] firmware: tegra: fix strncpy()/strncat() confusion

2020-10-27 Thread Jon Hunter
On 26/10/2020 16:49, Arnd Bergmann wrote: > From: Arnd Bergmann > > The way that bpmp_populate_debugfs_inband() uses strncpy() > and strncat() makes no sense since the size argument for > the first is insufficient to contain the trailing '/' I don't believe that is the case, because there is

[PATCH] [v2] firmware: tegra: fix strncpy()/strncat() confusion

2020-10-26 Thread Arnd Bergmann
From: Arnd Bergmann The way that bpmp_populate_debugfs_inband() uses strncpy() and strncat() makes no sense since the size argument for the first is insufficient to contain the trailing '/' and the second passes the length of the input rather than the output, which triggers a warning: In