|
From: | Anand Avati |
Subject: | Re: [Gluster-devel] glfs_readdir_r is painful |
Date: | Wed, 30 Oct 2013 17:09:37 -0700 |
> Hmm, I don't think so.. strncpy of 255 bytes on to a buffer guaranteed toThe fact that your internal glfs_readdir buffer is memset means you are
> be 256 or higher and also guaranteed to be 0-memset'ed cannot return an
> invalid file name. No?
safe there for a 255-byte filename; but that safety does not extend to
glfs_readdir_r for a user buffer.
[Prev in Thread] | Current Thread | [Next in Thread] |