Whamcloud - gitweb
Avoid crashing on unaligned pointers from corrupted file systems
authorTheodore Ts'o <tytso@mit.edu>
Sun, 4 Sep 2016 19:06:32 +0000 (15:06 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 4 Sep 2016 19:06:32 +0000 (15:06 -0400)
commit8d7a63921f6ea01d2dcc43667a2d0a74da9842ae
treeabed7a959563e82bbaa2e1c64d1c250574135249
parentf3bc1561c84525e8cb20dd11dd698495b62e6b3c
Avoid crashing on unaligned pointers from corrupted file systems

On platforms that don't permit unaligned pointer dereferences,
corrupted file systems will as used by the regression test suite can
cause e2fsck and debugfs to crash.  Avoid those crashes caused by
corrupted file systems.  With this commit the full set of regression
test suites will pass on the sparc64 platform.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/recovery.c
lib/ext2fs/blknum.c
lib/ext2fs/swapfs.c