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

2025-09-25 Thread Thorsten Blum
Hi all, > On 8. Sep 2025, Thorsten Blum wrote: > > kzalloc() already zero-initializes the destination buffers, making > strscpy() sufficient for safely copying the names. The additional > NUL-padding performed by strscpy_pad() is unnecessary. > > If the destination buffer has a fixed length, str

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

2025-09-08 Thread Thorsten Blum
kzalloc() already zero-initializes the destination buffers, making strscpy() sufficient for safely copying the names. The additional NUL-padding performed by strscpy_pad() is unnecessary. If the destination buffer has a fixed length, strscpy() automatically determines its size using sizeof() when

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

2025-08-17 Thread Thorsten Blum
kzalloc() already zero-initializes the destination buffers, making strscpy() sufficient for safely copying the names. The additional NUL-padding performed by strscpy_pad() is unnecessary. If the destination buffer has a fixed length, strscpy() automatically determines its size using sizeof() when

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

2025-07-16 Thread Thorsten Blum
kzalloc() already zero-initializes the destination buffers, making strscpy() sufficient for safely copying the names. The additional NUL-padding performed by strscpy_pad() is unnecessary. If the destination buffer has a fixed length, strscpy() automatically determines its size using sizeof() when

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

2025-06-19 Thread Thorsten Blum
kzalloc() already zero-initializes the destination buffers, making strscpy() sufficient for safely copying the names. The additional NUL-padding performed by strscpy_pad() is unnecessary. If the destination buffer has a fixed length, strscpy() automatically determines its size using sizeof() when

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

2025-05-21 Thread Thorsten Blum
kzalloc() already zero-initializes the destination buffers, making strscpy() sufficient for safely copying the names. The additional NUL-padding performed by strscpy_pad() is unnecessary. If the destination buffer has a fixed length, strscpy() automatically determines its size using sizeof() when