OSDN Git Service

libparted: fix a bug in the nilfs2 probe function
authorJim Meyering <meyering@redhat.com>
Sat, 25 Jun 2011 06:49:58 +0000 (08:49 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 28 Sep 2011 19:19:13 +0000 (21:19 +0200)
commit2147402b83b27a35011cad032d0519c4a0672280
tree8657e37f6ff3b7258d906431c9fee533aaca7b99
parent99f9c6a99b5d702a2c42cbce0fb74d09d88b2b0d
libparted: fix a bug in the nilfs2 probe function

* libparted/fs/nilfs2/nilfs2.c (nilfs2_probe): Reject this partition
if we get a negative sb2 offset.  Passing a negative offset to
ped_geometry_read_alloc would evoke a failed assertion.
Bug introduced by 2010-07-09 commit d463e7de.
* NEWS: (Bug fixes): Mention it.
Reported by Daniel Fandrich in
http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10466/focus=10472
NEWS
libparted/fs/nilfs2/nilfs2.c