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: [patch] Fix BZ#16374 -- don't use mmap for FILE buffers


On 02/16/2015 07:06 PM, Paul Pluzhnikov wrote:
> Greetings,
> 
> I believe we've reached a consensus in
> https://sourceware.org/ml/libc-alpha/2015-02/msg00010.html -- using
> mmap to allocate FILE buffers is really not a good idea.
> 
> Attached patch replaces mmap()s with calloc()s.

Why is calloc needed?  The implementation needs to keep track of the
active buffer range anyway, and the old fallback code had just a malloc
AFAICS.

-- 
Florian Weimer / Red Hat Product Security


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