From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 742633858C50; Mon, 11 Mar 2024 15:34:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 742633858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1710171258; bh=kayzIaVYzU5LpkZtP1mp2JzQh8GInMHVSJuWxxjlWiw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=poYgqJr6KDc/zDkLfTY7XNK8t8oGDXhOx9jxxa7A70FxZBHimezXnxI8riTV3GybX qsRYBRtqU37+erjrfmUdAMad8dkvRWaAJ4iqkxHIrRFyRy3hi8F1eCeY3ShkAJYeeu +BZW7gysiEBG9VflzdwbafXVhkg1cHNHYRgqogIk= From: "jsm28 at gcc dot gnu.org" To: glibc-bugs@sourceware.org Subject: [Bug libc/31470] inttypes.h provides incorrect macro definitions Date: Mon, 11 Mar 2024 15:34:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jsm28 at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: cf_reconfirmed_on bug_status everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31470 Joseph Myers changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2024-03-11 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #5 from Joseph Myers --- CD2 GB-108 is indeed on my list of accepted NB comments requiring implementation changes - the macro definitions should be changed, with associated tests added to the glibc testsuite. The general rule that you can pass a value of the promoted type (or, in certain cases, a signed/unsigned variant of that type, when the rules for va_arg allow such variations), not necessarily arising from promotion of a value of the narrower type, was introduced for N2562 (previously this area was unclear). CD2 GB-108 simply makes the macros in inttypes.h follow the same rules required to be followe= d by direct use of formats such as %hhd. When %hh / %h formats are used directly, glibc has done the expected narrow= ing since 2006 (bug 2509; glibc 2.5; "(process_arg): Fix reading of signed short and byte values from parameter list."). It's just the macros that now need fixing. --=20 You are receiving this mail because: You are on the CC list for the bug.=