From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-178.mta0.migadu.com (out-178.mta0.migadu.com [91.218.175.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3F0131DEFD2 for ; Sun, 17 Aug 2025 18:38:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755455895; cv=none; b=ZO8QaFrKXwnqNigvkEB4a5BDUlQRldF33+f9DyrOE3UkrN5RYqhd65Z/i5wSrjXxX7kvZRMQOyz5lZ5VwAPK3W+lbx+sUAdBMonhwGM8+palyzh1FNabJav/1pvVgNGSJCTjCbZ5qTbfqNhzzyN/B4ZgdEgZShybl6dY9CLjFog= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755455895; c=relaxed/simple; bh=sjVKdScJg1tpQ2DUxpoJnfCD3diHwlzHH3yVwhCQJTc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=e83L8gzfqr/x6WP6Kar2OA/F0k/J1+SW5OmWC+doejbxw3YZui2QQ8y4oQk1JOaUPziF3LcCSQG//w3cn+tbMliAI+38cWZmQ1h9s+h6b1HJb3+dbbaz37vUoqGuG4o9vxrnN82D1y9a944QoTFFP8r+m6zjmFbOliT4zMsltWs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=OZOHNLMN; arc=none smtp.client-ip=91.218.175.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="OZOHNLMN" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1755455890; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xw23XuAqvkfjRvWscmZ9n/cdkV9n+OCr1B3xpq9eAq8=; b=OZOHNLMNWmdE0QQiWgcj+p+qqlf8n0Kh4bSo8zUfrZ60Lug+KAy5jCy57xuUZ9QjDVPNE9 iqm0UzrK4t5zI77R74uau0mrYWzuhukcDJzERt778vmuFgrePGmrV8kbQuDeIQwbjRC1oM vP0fMYg58VQ7CPE/CNbQHt6pPiMuQTs= From: Thorsten Blum To: Thomas Bogendoerfer , Thorsten Blum Cc: linux-hardening@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/8] MIPS: sgi-ip32: Replace deprecated strcpy() in plat_mem_setup() Date: Sun, 17 Aug 2025 20:37:12 +0200 Message-ID: <20250817183728.612012-2-thorsten.blum@linux.dev> In-Reply-To: <20250817183728.612012-1-thorsten.blum@linux.dev> References: <20250817183728.612012-1-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT strcpy() is deprecated; use strscpy() instead. Link: https://github.com/KSPP/linux/issues/88 Signed-off-by: Thorsten Blum --- arch/mips/sgi-ip32/ip32-setup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/mips/sgi-ip32/ip32-setup.c b/arch/mips/sgi-ip32/ip32-setup.c index aeb0805aae57..c2ebc4bbd866 100644 --- a/arch/mips/sgi-ip32/ip32-setup.c +++ b/arch/mips/sgi-ip32/ip32-setup.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include @@ -90,7 +91,7 @@ void __init plat_mem_setup(void) static char options[8] __initdata; char *baud = ArcGetEnvironmentVariable("dbaud"); if (baud) - strcpy(options, baud); + strscpy(options, baud); add_preferred_console("ttyS", *(con + 1) == '2' ? 1 : 0, baud ? options : NULL); } -- 2.50.1