This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug stdio/17829] Incorrect handling of precision specifier in printf family
- From: "nfxjfg at googlemail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 18 Feb 2015 17:26:50 +0000
- Subject: [Bug stdio/17829] Incorrect handling of precision specifier in printf family
- Auto-submitted: auto-generated
- References: <bug-17829-131 at http dot sourceware dot org/bugzilla/>
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.