On Thu, Jul 21, 2011 at 08:43:16PM -0700, John Johansen wrote: > sure we can throw in > > > if (!buf) { > errno = EINVAL; > return -1; > } Yeah, that looks good. Could probably use that in a few other places too. I got stuck about half way through your patches. :) -- Kees Cook Ubuntu Security Team