OSDN Git Service

libparted: HFS/HFS+ probe: don't let a corrupt FS evoke failed assertion
authorBrian C. Lane <bcl@redhat.com>
Fri, 7 Oct 2011 23:53:48 +0000 (16:53 -0700)
committerJim Meyering <meyering@redhat.com>
Sat, 5 Nov 2011 19:54:33 +0000 (20:54 +0100)
commit6bc7e1965078579e9855f851254d67b3d8165784
tree91b35514d65ee3877dab4993c882d94164a93ad0
parent021774cd30af313afdeb6ba7f71b479f5f2e52b1
libparted: HFS/HFS+ probe: don't let a corrupt FS evoke failed assertion

* libparted/fs/hfs/probe.c (hfsplus_probe): Add a check on the
search value and reject it if it is negative.
(hfsx_probe): Likewise.
(hfs_and_wrapper_probe): Likewise.
Reported by Flos Lonicerae in http://bugzilla.redhat.com/714758
libparted/fs/hfs/probe.c