From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kalle Valo Subject: Re: [v2] atmel: using strlcpy() to avoid possible buffer overflows Date: Wed, 4 Jul 2018 15:15:25 +0000 (UTC) Message-ID: <20180704151525.62BF460B26@smtp.codeaurora.org> References: <20180630063341.9900-1-yuehaibing@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: , , , , , , YueHaibing To: YueHaibing Return-path: In-Reply-To: <20180630063341.9900-1-yuehaibing@huawei.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org YueHaibing 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 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