Subject: Re: lib/36464: scandir(3) corrupts heap when run on ZFS directories
To: None <gnats-bugs@NetBSD.org>
From: Ed Ravin <email@example.com>
Date: 06/20/2007 16:15:07
On Wed, Jun 20, 2007 at 08:05:04PM +0000, Jared D. McNeill wrote:
> The following reply was made to PR lib/36464; it has been noted by GNATS.
> From: "Jared D. McNeill" <firstname.lastname@example.org>
> To: gnats-bugs@NetBSD.org
> Cc: email@example.com, firstname.lastname@example.org,
> Subject: Re: lib/36464: scandir(3) corrupts heap when run on ZFS directories
> Date: Wed, 20 Jun 2007 16:02:39 -0400
> I just ran into a similar issue with ntfs-3g/refuse/puffs on -
> current. Does the following patch resolve your issue?
Looks like it would, but I've already backported Christos' patch
in current back to 3.1 - I don't have the time to do any more testing.
The ZFS behavior is easy to simulate if you want to test, divide the
value of stb.st_size by 24 before assigning it to other vars.