This is the mail archive of the libc-alpha@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]

Re: [RFC] signal-safe fprintf?


On 8 March 2013 00:24, Andrew Hunter <ahh@google.com> wrote:
> I'm sorry, I don't follow you--snprintf creates a single use fake file
> that's only written to by the single call to vfprintf.  How does that
> break?

I assumed that the same buffer will be used across the snprintf calls,
which is quite unlikely and deserves the punishment if someone does.
I clearly need some sleep now.

Siddhesh
-- 
http://siddhesh.in


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