Messages in this thread | | | Subject | Re: [v2] atmel: using strlcpy() to avoid possible buffer overflows | From | Kalle Valo <> | Date | Wed, 4 Jul 2018 15:15:25 +0000 (UTC) |
| |
YueHaibing <yuehaibing@huawei.com> wrote:
> 'firmware' is a module param which may been longer than firmware_id, > so using strlcpy() to guard against overflows. Also priv is allocated > with zeroed memory,no need to set firmware_id[0] to '\0'. > > Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Patch applied to wireless-drivers-next.git, thanks.
f9cbaeb52930 atmel: using strlcpy() to avoid possible buffer overflows
-- https://patchwork.kernel.org/patch/10498009/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
| |