Debian Bug report logs - #756602
printf(3) manpage: please document that %n can't include flags, width or precision

version graph

Package: manpages-dev; Maintainer for manpages-dev is Dr. Tobias Quathamer <[email protected]>; Source for manpages-dev is src:manpages (PTS, buildd, popcon).

Reported by: Jakub Wilk <[email protected]>

Date: Thu, 31 Jul 2014 09:30:02 UTC

Severity: minor

Tags: fixed-upstream

Found in version manpages/3.65-1

Fixed in version manpages/3.71-1

Done: Simon Paillard <[email protected]>

Bug is archived. No further changes may be made.

Full log


Message #18 received at [email protected] (full text, mbox, reply):

Received: (at 756602) by bugs.debian.org; 1 Aug 2014 06:55:47 +0000
From [email protected] Fri Aug 01 06:55:47 2014
X-Spam-Checker-Version: SpamAssassin 3.3.2-bugs.debian.org_2005_01_02
	(2011-06-06) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-6.8 required=4.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,FOURLA,FREEMAIL_FROM,HAS_BUG_NUMBER,
	MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham
	version=3.3.2-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 10; hammy, 124; neutral, 43; spammy,
	0. spammytokens: hammytokens:0.000-+--manpage, 0.000-+--UD:kernel.org,
	0.000-+--U*jwilk, 0.000-+--sk:jwilkd, 0.000-+--sk:jwilk@d
Return-path: <[email protected]>
Received: from mail-vc0-f171.google.com ([209.85.220.171])
	by buxtehude.debian.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:128)
	(Exim 4.80)
	(envelope-from <[email protected]>)
	id 1XD6kl-00089C-5f
	for [email protected]; Fri, 01 Aug 2014 06:55:47 +0000
Received: by mail-vc0-f171.google.com with SMTP id hq11so5977123vcb.16
        for <[email protected]>; Thu, 31 Jul 2014 23:55:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:reply-to:in-reply-to:references:from:date:message-id
         :subject:to:cc:content-type;
        bh=gscnIEZcp9RR3dg8CBGgwSXFGM8C+yXDacgqao2Ct6M=;
        b=sEDSYd1Bop8Nc6S2CSuO+hJFY2ZE7dQheEkQLjdRgWcR8ZfoflB/amBC/hzqx1bWpt
         vn4+fbc9/d+yLOF32A+MXeR5m9MtgMFr68N7vUOC4QzcH3JZsZQ4BISH+SnZnX0e5b6k
         KywzQ94x7VR1YESTh3GIDi2KaQWhFcr2Lo/9Ux9bOKW47cVJJAKtoodVWCC+kWyjfS3u
         RRSx/cS7wh8GMfX7jYWn3oiv/V7Qbq5eQSQxaFZvpcjbPZy+wQGL4oPN92ko4gE2LI+m
         Ie9KvWkZNjTjxqdoc6A3BAnvBp4e4YotG6IPNWpEBI6y8p8LdVOu2ShVZnWXJmYntq3U
         EC/g==
X-Received: by 10.221.36.3 with SMTP id sy3mr145913vcb.67.1406876139936; Thu,
 31 Jul 2014 23:55:39 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.220.146.6 with HTTP; Thu, 31 Jul 2014 23:55:19 -0700 (PDT)
Reply-To: [email protected]
In-Reply-To: <[email protected]>
References: <[email protected]> <CAKgNAki86fRqeQS4oJQJWVvMUwwecSWVvkM7k1LO646TULJi_A@mail.gmail.com>
 <[email protected]>
From: "Michael Kerrisk (man-pages)" <[email protected]>
Date: Fri, 1 Aug 2014 08:55:19 +0200
Message-ID: <CAKgNAkgp2ygOQ+hrqFRxVPWSLcMeDyyjT9zancqvEUnqZiDkAA@mail.gmail.com>
Subject: Re: Bug#756602: printf(3) manpage: please document that %n can't
 include flags, width or precision
To: Jakub Wilk <[email protected]>
Cc: [email protected]
Content-Type: text/plain; charset=UTF-8
On Thu, Jul 31, 2014 at 6:41 PM, Jakub Wilk <[email protected]> wrote:
> * Michael Kerrisk <[email protected]>, 2014-07-31, 12:42:
>
>> I've applied the patch below.
>
>
> Thanks!
>
>
>> +That argument shall be an
>> +.I "int\ *",
>> +or variant, as specified by the
>> +.B l
>> +or
>> +.B ll
>> +length modifier.
>
>
> Hmm. Why only l or ll?
>
> According to the C99 standard, all the length modifiers that can be used
> with integer conversions (hh, h, l, ll, j, z, t) can be also used with %n.
>
> --
> Jakub Wilk

Good point. How about:

[[
That argument shall be an
.I "int\ *",
or variant whose size matches the (optionally)
supplied integer length modifier.
]]

?

Cheers,

Michael
-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Mon Nov 11 10:34:25 2024; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.