On Wed, 29 Jun 2016 07:05:15 -0600, "Todd C. Miller" wrote:

> Don't you need to make a copy of dp->d_name?  Returning dp->d_name
> after closedir() seems dangerous.

Since closedir() frees dd_buf this would result in a user after
free.

 - todd

Reply via email to