Subject: PR/36464 CVS commit: src/lib/libc/gen
To: None <,,>
From: Christos Zoulas <>
List: netbsd-bugs
Date: 06/10/2007 00:00:06
The following reply was made to PR lib/36464; it has been noted by GNATS.

From: Christos Zoulas <>
Subject: PR/36464 CVS commit: src/lib/libc/gen
Date: Sat,  9 Jun 2007 23:57:25 +0000 (UTC)

 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.