CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected] 2026/11/08 13:59:36

Modified files:
        lib/libc/gen   : fts.c 

Log message:
fts_read: fix potential double free on FCHDIR() failure

Part of the contract for fts_read() is that we must always reset
sp->fts_cur immediately before return.  There was one instance where
a failed FCHDIR() was not setting sp->fts_cur to 'p' before return,
leaving sp->fts_cur pointing to a freed value.

>From Acts1631
OK tb@

Reply via email to