From nobody Fri Apr 3 04:37:59 2026 Received: from sender-of-o57.zoho.eu (sender-of-o57.zoho.eu [136.143.169.57]) (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 D18C13B4E8A for ; Tue, 24 Mar 2026 22:50:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.169.57 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774392605; cv=pass; b=E8eHS3Xls1IJF2MEFrUOe7SKh8k/HstV4jhhYpul6DrQWLdJW4L3YuUupM8oEeCNnso7HKcrDQetRMtJeJcZpqUIIldz/oYV7Ksez2Xh8mkY2kaKBSONkN3/FjZfYJNKRBD92yleGCPtSquXaeibuLxuSyo1brCJb9tnKS6GI2c= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774392605; c=relaxed/simple; bh=381OzBAHNU6Gnk/0LcZxfMCftsqVgY08k7T2TQ41kQM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=qWlNi/EeWPmSyt8O/UlxBnWl2+cifbioSIgqWlWjgk1Kzd6E3PnXigVoZZZmTdKvFj72HLWZ0wdEldKjW2WaB/yN2l6EnEGYwbNchxwzYMqwNKIInCy1HDY3z3MEw9uaI3NRIw6QKJFZxmdtl0CR8XgpG6/D0rfdp86O2CoT57c= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org; spf=pass smtp.mailfrom=objecting.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b=im6N4qJH; arc=pass smtp.client-ip=136.143.169.57 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=objecting.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b="im6N4qJH" ARC-Seal: i=1; a=rsa-sha256; t=1774392586; cv=none; d=zohomail.eu; s=zohoarc; b=kgP4OjDxKWw2fwE3QDuZr5CUsraendmRzvW0Fh2OJMHHgnt9B9Geq1fNxm4ewdgcSo4T2LqWnOy8ATacifubwEN92g3iXeZeQpOtWTGK7Lq0tFwF8tj3fmDB9hteo1pQcPHn2Pjy8a14WKgyLYDPs/iA0xEMyjCQkZ9jCti1Eh4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1774392586; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=it7ESxifSW6G9nwkeX2KYNbIZY0OPzW+aY8u8fff+yA=; b=eAouS2rXvlC83r+FW78Aa0cY450AznUFvNLFMW1CLonPxyVb31xC+9UlNyjKzek+movtfe9b4H+AsIWI/t0Y5SMv75hNiNUCGyc+EABA2LUqU3Otpm4P8YNMzfxRRIiCuBXuCmpqh1gGRXeO4pNaLOm4H/ElvBRZKOBT5e3cYvk= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=objecting.org; spf=pass smtp.mailfrom=objecting@objecting.org; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1774392586; s=zmail; d=objecting.org; i=objecting@objecting.org; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=it7ESxifSW6G9nwkeX2KYNbIZY0OPzW+aY8u8fff+yA=; b=im6N4qJH1HWrShgZEtzwbxFQU4pYkCQwMj/vITfLGyLX1KMOUFa1cuORazP+ynNK tZIQHh/imTzh9+rYWShKsZD2JYX/tlpYODUs0ZfuCRpawRNZusT7KX3AFKm2KrEQWUN UWcj8Eblt/RsJaMiaz9DRGK71iPQmTJYiPH7mvtI= Received: by mx.zoho.eu with SMTPS id 1774392583848384.51608470602775; Tue, 24 Mar 2026 23:49:43 +0100 (CET) From: Josh Law To: Petr Mladek , Steven Rostedt Cc: Andy Shevchenko , Rasmus Villemoes , Sergey Senozhatsky , Andrew Morton , Josh Law , linux-kernel@vger.kernel.org Subject: [PATCH 3/4] lib/vsprintf: use int for field_width in vsscanf() Date: Tue, 24 Mar 2026 22:49:39 +0000 Message-Id: <20260324224940.50508-4-objecting@objecting.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260324224940.50508-1-objecting@objecting.org> References: <20260324224940.50508-1-objecting@objecting.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Content-Type: text/plain; charset="utf-8" vsscanf() declares field_width as s16 but assigns it from skip_atoi() which returns int. Values above 32767 silently truncate to negative, causing vsscanf() to abort all remaining parsing. This is inconsistent with struct printf_spec which uses int for field_width. Change the type to int to match. Signed-off-by: Josh Law --- lib/vsprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 72fbfe181076..2758096b6f53 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -3461,7 +3461,7 @@ int vsscanf(const char *buf, const char *fmt, va_list= args) long long s; unsigned long long u; } val; - s16 field_width; + int field_width; bool is_sign; =20 while (*fmt) { --=20 2.34.1