Re: [PATCH net-next] wifi: airo: use strscpy() to instead of strncpy()

From: yang.yang29
Date: Tue Jan 17 2023 - 21:22:33 EST


> Again, why bother. But is this even correct/identical behaviour?>>
> Wouldn't it potentially read 17 input bytes before forcing NUL-
> termination?

Thank you for your reminder. This is a terrible error. Strscpy() may
cause the array to be out of bounds. I should be more cautious
next time.

Xu and Yang