From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27072 invoked by alias); 27 May 2003 07:40:12 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 27032 invoked from network); 27 May 2003 07:40:11 -0000 Received: from unknown (HELO myware.akkadia.org) (24.221.190.179) by sources.redhat.com with SMTP; 27 May 2003 07:40:11 -0000 Received: from redhat.com (myware.akkadia.org [192.168.7.70]) (authenticated bits=0) by myware.akkadia.org (8.12.8/8.12.5) with ESMTP id h4R7ddL3013287; Tue, 27 May 2003 00:39:39 -0700 Message-ID: <3ED3163B.7050605@redhat.com> Date: Tue, 27 May 2003 07:40:00 -0000 From: Ulrich Drepper Organization: Red Hat, Inc. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4b) Gecko/20030523 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jakub Jelinek CC: Roland McGrath , Glibc hackers Subject: Re: [PATCH] Fix snprintf References: <20030526164059.GA24872@sunsite.ms.mff.cuni.cz> In-Reply-To: <20030526164059.GA24872@sunsite.ms.mff.cuni.cz> X-Enigmail-Version: 0.75.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2003-05/txt/msg00034.txt.bz2 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jakub Jelinek wrote: > ATM sprintf creates at most 64M string, furthermore although snprintf > is given size_t for max length, it is casted to int and thus it might be > much smaller limit than the one given by the user (consider e.g. > sprintf (buf, 0x100000010, fmt, args)). I've applied the patch. Thanks, - -- - --------------. ,-. 444 Castro Street Ulrich Drepper \ ,-----------------' \ Mountain View, CA 94041 USA Red Hat `--' drepper at redhat.com `--------------------------- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+0xY72ijCOnn/RHQRAsqSAKCA8D14F/k6iTgxGH60EMKiCaazxQCgnFyy hBcBC+KZWL5fjGJtmWoJhho= =A7Dw -----END PGP SIGNATURE-----