Re: [PATCH] parisc: Replace strlcpy() with strscpy()

2023-11-17 Thread Helge Deller
On 11/16/23 20:13, Kees Cook wrote: strlcpy() reads the entire source buffer first. This read may exceed the destination size limit. This is both inefficient and can lead to linear read overflows if a source string is not NUL-terminated[1]. Additionally, it returns the size of the source string,

[PATCH] parisc: Replace strlcpy() with strscpy()

2023-11-16 Thread Kees Cook
strlcpy() reads the entire source buffer first. This read may exceed the destination size limit. This is both inefficient and can lead to linear read overflows if a source string is not NUL-terminated[1]. Additionally, it returns the size of the source string, not the resulting size of the destinat