On Tue, Jul 09, 2013 at 05:48:47PM -0400, Galos, David wrote:
> > The patch introduces buffer overflow. sizeof(buf)-1 should be passed
> > to readlink().
> 
> Furthermore, buf should be made (PATH_MAX + 1) bytes in size, so that
> valid paths don't get truncated.

{PATH_MAX}
Maximum number of bytes in a pathname, including the
terminating null character.[1]

[1] http://pubs.opengroup.org/onlinepubs/009695399/basedefs/limits.h.html

Thanks,
stateless

Reply via email to