Subject: CVS commit: src/lib/libc/gen
To: None <source-changes@NetBSD.org>
From: Christos Zoulas <christos@netbsd.org>
List: source-changes
Date: 06/09/2007 23:57:25
Module Name: src
Committed By: christos
Date: Sat Jun 9 23:57:25 UTC 2007
Modified Files:
src/lib/libc/gen: scandir.c
Log Message:
PR/36464: scandir(3) corrupts heap when run on ZFS directories because ZFS
returns the number of entries as the directory size.
Use a new, more conservative entries estimator.
To generate a diff of this commit:
cvs rdiff -r1.25 -r1.26 src/lib/libc/gen/scandir.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.