On Wed, Oct 30, 2013 at 3:54 PM, Eric Blake <ebl...@redhat.com> wrote:
> > Hmm, I don't think so.. strncpy of 255 bytes on to a buffer guaranteed to > > be 256 or higher and also guaranteed to be 0-memset'ed cannot return an > > invalid file name. No? > > The fact that your internal glfs_readdir buffer is memset means you are > safe there for a 255-byte filename; but that safety does not extend to > glfs_readdir_r for a user buffer. Right! Fixed - http://review.gluster.org/#/c/6201/2<http://review.gluster.org/#/c/6201/>
_______________________________________________ Gluster-devel mailing list Gluster-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/gluster-devel