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 578A1C433EF for ; Thu, 23 Dec 2021 18:29:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349848AbhLWS3z (ORCPT ); Thu, 23 Dec 2021 13:29:55 -0500 Received: from tartarus.angband.pl ([51.83.246.204]:36782 "EHLO tartarus.angband.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349709AbhLWS3w (ORCPT ); Thu, 23 Dec 2021 13:29:52 -0500 Received: from 89-73-149-240.dynamic.chello.pl ([89.73.149.240] helo=barad-dur.angband.pl) by tartarus.angband.pl with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1n0SoI-001pDO-Pc; Thu, 23 Dec 2021 19:27:28 +0100 Received: from [2a02:a31c:8245:f980::4] (helo=valinor.angband.pl) by barad-dur.angband.pl with esmtp (Exim 4.94.2) (envelope-from ) id 1n0SoH-0008EL-JM; Thu, 23 Dec 2021 19:27:25 +0100 Received: from kilobyte by valinor.angband.pl with local (Exim 4.95) (envelope-from ) id 1n0SoE-000B5H-Qd; Thu, 23 Dec 2021 19:27:22 +0100 From: Adam Borowski To: Josh Poimboeuf , Peter Zijlstra , linux-kernel@vger.kernel.org Cc: Adam Borowski Date: Thu, 23 Dec 2021 19:27:07 +0100 Message-Id: <20211223182707.42590-1-kilobyte@angband.pl> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 89.73.149.240 X-SA-Exim-Mail-From: kilobyte@angband.pl Subject: [PATCH] objtool: Fix a theoretical string buffer overflow X-SA-Exim-Version: 4.2.1 (built Sat, 13 Feb 2021 17:57:42 +0000) X-SA-Exim-Scanned: Yes (on tartarus.angband.pl) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A signed int may %d to up to 10 characters; let's make the variable a bit longer to avoid the warning. Signed-off-by: Adam Borowski --- tools/objtool/check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/objtool/check.c b/tools/objtool/check.c index 21735829b860..750ef1c446c8 100644 --- a/tools/objtool/check.c +++ b/tools/objtool/check.c @@ -2823,7 +2823,7 @@ static inline bool func_uaccess_safe(struct symbol *func) static inline const char *call_dest_name(struct instruction *insn) { - static char pvname[16]; + static char pvname[19]; struct reloc *rel; int idx; -- 2.34.1