From owner-freebsd-arch@FreeBSD.ORG Mon Dec 12 22:31:17 2005 Return-Path: X-Original-To: arch@freebsd.org Delivered-To: freebsd-arch@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C4C5E16A41F for ; Mon, 12 Dec 2005 22:31:17 +0000 (GMT) (envelope-from geopapl@yahoo.com) Received: from web36306.mail.mud.yahoo.com (web36306.mail.mud.yahoo.com [209.191.84.236]) by mx1.FreeBSD.org (Postfix) with SMTP id B01EC43D49 for ; Mon, 12 Dec 2005 22:31:15 +0000 (GMT) (envelope-from geopapl@yahoo.com) Received: (qmail 46962 invoked by uid 60001); 12 Dec 2005 22:31:15 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=nGcRYV7fPllic2InMJMaYCpXrtxK9pSx26nMPtbSuCACKaKPflfLjcJHwKZ9QMBtCPKVfBctmVOLQIWzWo6gy8kZYfreGJHldWFaBsNPPe9CFH4J6/Uc69Jqp3gBBMNxlXgR+WlieTzlQd3zaL06z76AybvBt/j6QU8g1nZ75iU= ; Message-ID: <20051212223115.46960.qmail@web36306.mail.mud.yahoo.com> Received: from [83.171.211.247] by web36306.mail.mud.yahoo.com via HTTP; Mon, 12 Dec 2005 14:31:15 PST Date: Mon, 12 Dec 2005 14:31:15 -0800 (PST) From: George Paplas To: Poul-Henning Kamp , Peter Jeremy In-Reply-To: <3879.1134416139@critter.freebsd.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: arch@freebsd.org Subject: Re: printf behaviour with illegal or malformed format string X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 22:31:17 -0000 --- Poul-Henning Kamp wrote: > >>If it is not set, the format string will be output unformatted in > >>the message "WARNING: Illegal printf() format string: \"...\". > > > >Since this check presumably applies to the entire *printf() family, > >where do you report the error for {s,f}printf()? > > Whereever the strings was meant to go, what else can I do ? And what if you are doing an sprintf to a buffer smaller than your warning message? -geop __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com