Subject: Re: lib/36464: scandir(3) corrupts heap when run on ZFS directories
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Ed Ravin <eravin@panix.com>
List: netbsd-bugs
Date: 06/20/2007 20:20:03
The following reply was made to PR lib/36464; it has been noted by GNATS.
From: Ed Ravin <eravin@panix.com>
To: gnats-bugs@NetBSD.org
Cc: lib-bug-people@netbsd.org, gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org, eravin@panix.com
Subject: Re: lib/36464: scandir(3) corrupts heap when run on ZFS directories
Date: Wed, 20 Jun 2007 16:15:07 -0400
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" <jmcneill@invisible.ca>
> To: gnats-bugs@NetBSD.org
> Cc: lib-bug-people@netbsd.org, gnats-admin@netbsd.org,
> netbsd-bugs@netbsd.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.
Thanks,
-- Ed