Date: Mon, 5 Oct 2009 21:11:04 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/lib/libc/gen fts.3 fts.c Message-ID: <200910052111.n95LBHr3052118@repoman.freebsd.org>
index | next in thread | raw e-mail
delphij 2009-10-05 21:11:04 UTC
FreeBSD src repository
Modified files:
lib/libc/gen fts.3 fts.c
Log:
SVN rev 197793 on 2009-10-05 21:11:04Z by delphij
fts_open() requires that the list passed as argument to contain at least
one path. When the list is empty (contain only a NULL pointer), return
EINVAL instead of pretending to succeed, which will cause a NULL pointer
deference in a later fts_read() call.
Noticed by: Christoph Mallon (via rdivacky@)
MFC after: 2 weeks
Revision Changes Path
1.25 +2 -2 src/lib/libc/gen/fts.3
1.31 +6 -0 src/lib/libc/gen/fts.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910052111.n95LBHr3052118>
