]> err.no Git - util-linux/commit
fsck.cramfs: segfault with INCLUDE_FS_TESTS and no -x option
authorKarel Zak <kzak@redhat.com>
Wed, 4 Feb 2009 22:36:39 +0000 (23:36 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 4 Feb 2009 22:36:39 +0000 (23:36 +0100)
commita6f72ab47ed750148a2373a0ffed5c9ec77c1dd5
tree61d808f071b0a50974ce289542926d0589d9d029
parent3ff2557c92398a611e42ad6b428c78e9c5c120ed
fsck.cramfs: segfault with INCLUDE_FS_TESTS and no -x option

The current implementation causes a segmentation fault if
INCLUDE_FS_TESTS is defined, but the -x option is not specified.

The error is caused by the extract_dir variable being null.

Reported-by: Roy Peled <the.roy.peled@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/fsck.cramfs.c