From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21588 invoked by alias); 18 Feb 2015 17:26:53 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 21546 invoked by uid 48); 18 Feb 2015 17:26:50 -0000 From: "nfxjfg at googlemail dot com" To: glibc-bugs@sourceware.org Subject: [Bug stdio/17829] Incorrect handling of precision specifier in printf family Date: Wed, 18 Feb 2015 17:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: stdio X-Bugzilla-Version: 2.19 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: nfxjfg at googlemail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-02/txt/msg00244.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=17829 --- Comment #3 from nfxjfg at googlemail dot com --- >Certainly, this use is not recommended because printf will allocate tons of memory as part of the format processing. There's literally no reason why it'd need to allocate memory of the size of the maximum _possible_ length of the string. In fact, I'd argue printf doesn't need to do unbounded memory allocations at all. -- You are receiving this mail because: You are on the CC list for the bug.