OSDN Git Service

libext2fs: enforce the block group descriptor size in ext2fs_open()
authorTheodore Ts'o <tytso@mit.edu>
Mon, 30 Jul 2012 21:40:15 +0000 (17:40 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 30 Jul 2012 21:40:15 +0000 (17:40 -0400)
commit8718cb66c85e9b6344dee892edf5bb9a77e6c5c7
tree47e5e01cdcdb28ce86d272fb1c33db82bc8e9716
parentf3ce48a4b6e6a030fa4481532ba04c1a966173bb
libext2fs: enforce the block group descriptor size in ext2fs_open()

Since various parts of the library depend on the value of s_desc_size,
check to make sure it is the correct, expected value based on the file
system features.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/ext2_err.et.in
lib/ext2fs/openfs.c