Whamcloud - gitweb
libblkid: Add error checking to devicemapper code to avoid segfaults
authorTheodore Ts'o <tytso@mit.edu>
Wed, 27 Feb 2008 03:24:42 +0000 (22:24 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 27 Feb 2008 03:24:42 +0000 (22:24 -0500)
commit1f1ee1948525632736e8135d797db116d2a34c8d
tree67e8733f8b02a01e74b478f74f9179167b6c1d01
parentdcc91e1053c357efca35e0d5674aa78989ee44bf
libblkid: Add error checking to devicemapper code to avoid segfaults

If a device mapper volume disappears while libblkid code is running,
it is possible for the devicemapper code to return errors, and since
libblkid wasn't checking for error returns, it would dereference a
null pointer and crash.  Add error checking to prevent this.

Addresses-RedHat-Bugzilla: #433857

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/blkid/devname.c