From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 30084C433EF for ; Mon, 23 May 2022 10:30:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234077AbiEWKaq (ORCPT ); Mon, 23 May 2022 06:30:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234090AbiEWKah (ORCPT ); Mon, 23 May 2022 06:30:37 -0400 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C740E4B4E8; Mon, 23 May 2022 03:30:35 -0700 (PDT) Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1nt5K1-0001dy-00; Mon, 23 May 2022 12:29:57 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 304D0C02F4; Mon, 23 May 2022 11:39:40 +0200 (CEST) Date: Mon, 23 May 2022 11:39:40 +0200 From: Thomas Bogendoerfer To: =?utf-8?B?6ZmI5a2m5YW1?= Cc: catalin.marinas@arm.com, rdunlap@infradead.org, rppt@kernel.org, rafael.j.wysocki@intel.com, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mips: setup: use strscpy to replace strlcpy Message-ID: <20220523093940.GA6296@alpha.franken.de> References: <533ed227.9dd.180eabb3189.Coremail.chenxuebing@jari.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <533ed227.9dd.180eabb3189.Coremail.chenxuebing@jari.cn> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 22, 2022 at 03:46:18PM +0800, 陈学兵 wrote: > > The strlcpy should not be used because it doesn't limit the source > length. Preferred is strscpy. > > Signed-off-by: XueBing Chen > --- > arch/mips/kernel/setup.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]