This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug stdio/17829] Incorrect handling of precision specifier in printf family


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]