Re: [RFC PATCH] wifi: mac80211: Replace strncpy() with strscpy()
From: Johannes Berg
Date: Fri Mar 28 2025 - 05:26:58 EST
On Thu, 2025-03-27 at 22:11 +0800, I Hsin Cheng wrote:
> The name of vif which is "vif_name" should be NULL-terminated to be a
> valid string
And why should it be a "valid string"? This is just a buffer here in the
trace code. We don't even (and cannot) suggest how to print this, so I
think the userspace tool that does will just need to be careful, as with
anything else. Don't see any issue here.
johannes