From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8932 invoked by alias); 4 Mar 2015 18:52:06 -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 8874 invoked by uid 48); 4 Mar 2015 18:52:03 -0000 From: "fweimer at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/13138] scanf crashes on very long numbers Date: Wed, 04 Mar 2015 18:52:00 -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: critical X-Bugzilla-Who: fweimer at redhat dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: drepper.fsp at gmail dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security+ 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-03/txt/msg00031.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=13138 --- Comment #8 from Florian Weimer --- (In reply to Andreas Schwab from comment #7) > Follow-up fix: https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=20b38e0 I think this is just a performance fix because the buffer is populated by one character at a time, so __libc_use_alloca is always true on the first buffer extension, and then we are in the use_malloc case. -- You are receiving this mail because: You are on the CC list for the bug.