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] network: Fix cmsghdr padding in sendmsg (BZ#16919)


On Thu, 26 May 2016, Mike Frysinger wrote:

> i think it should do a length test -- if it's below a threshold, use
> alloca, otherwise fall back to malloc+free.  inserting our own limit
> here feels wrong.

sendmsg is required by POSIX to be AS-safe, so can't use malloc+free; it 
would have to allocate memory in some other AS-safe way.

-- 
Joseph S. Myers
joseph@codesourcery.com


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