Re: [RESEND PATCH] rpmsg: Use strscpy() instead of strscpy_pad()

2025-06-17 Thread Bjorn Andersson
On Tue, 29 Apr 2025 12:45:43 +0200, Thorsten Blum wrote: > kzalloc() already zero-initializes the destination buffer, making > strscpy() sufficient for safely copying the name. The additional NUL- > padding performed by strscpy_pad() is unnecessary. > > The size parameter is optional, and strscp

Re: [RESEND PATCH] rpmsg: Use strscpy() instead of strscpy_pad()

2025-06-10 Thread Bjorn Andersson
On Tue, Jun 10, 2025 at 12:38:14PM +0200, Thorsten Blum wrote: > Hi Mathieu, > > On 30. Apr 2025, at 16:59, Mathieu Poirier wrote: > > On Tue, 29 Apr 2025 at 04:46, Thorsten Blum wrote: > >> > >> kzalloc() already zero-initializes the destination buffer, making > >> strscpy() sufficient for safel

Re: [RESEND PATCH] rpmsg: Use strscpy() instead of strscpy_pad()

2025-06-10 Thread Thorsten Blum
Hi Mathieu, On 30. Apr 2025, at 16:59, Mathieu Poirier wrote: > On Tue, 29 Apr 2025 at 04:46, Thorsten Blum wrote: >> >> kzalloc() already zero-initializes the destination buffer, making >> strscpy() sufficient for safely copying the name. The additional NUL- >> padding performed by strscpy_pad()

Re: [RESEND PATCH] rpmsg: Use strscpy() instead of strscpy_pad()

2025-04-30 Thread Mathieu Poirier
On Tue, 29 Apr 2025 at 04:46, Thorsten Blum wrote: > > kzalloc() already zero-initializes the destination buffer, making > strscpy() sufficient for safely copying the name. The additional NUL- > padding performed by strscpy_pad() is unnecessary. > > The size parameter is optional, and strscpy() au

[RESEND PATCH] rpmsg: Use strscpy() instead of strscpy_pad()

2025-04-29 Thread Thorsten Blum
kzalloc() already zero-initializes the destination buffer, making strscpy() sufficient for safely copying the name. The additional NUL- padding performed by strscpy_pad() is unnecessary. The size parameter is optional, and strscpy() automatically determines the size of the destination buffer using

[PATCH] rpmsg: Use strscpy() instead of strscpy_pad()

2025-04-07 Thread Thorsten Blum
kzalloc() already zero-initializes the destination buffer, making strscpy() sufficient for safely copying the name. The additional NUL- padding performed by strscpy_pad() is unnecessary. The size parameter is optional, and strscpy() automatically determines the size of the destination buffer using