diff options
author | Theodore Ts'o <tytso@mit.edu> | 2009-01-02 18:14:42 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-01-02 18:14:42 -0500 |
commit | e35d548b59e24af9f7fc18396e8880df96d1bc51 (patch) | |
tree | e55f7bac0a6a77a17de3d0e2c362c0142fdbd36a /e2fsck/jfs_user.h | |
parent | dd04d05f702be151d6a7312da2b64147d2751de1 (diff) | |
download | e2fsprogs-e35d548b59e24af9f7fc18396e8880df96d1bc51.tar.gz |
e2fsck: Fix journal replay for block sizes greater than 8k
E2fsck was using a fixed-size 8k buffer for replaying blocks from the
journal. So attempts to replay a journal on filesystems greater than
8k would cause e2fsck to crash with a segfault.
Thanks to Miao Xie <miaox@cn.fujitsu.com> for reporting this problem.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'e2fsck/jfs_user.h')
-rw-r--r-- | e2fsck/jfs_user.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/e2fsck/jfs_user.h b/e2fsck/jfs_user.h index 0e4f9518..60cc682b 100644 --- a/e2fsck/jfs_user.h +++ b/e2fsck/jfs_user.h @@ -15,7 +15,6 @@ #include "e2fsck.h" struct buffer_head { - char b_data[8192]; e2fsck_t b_ctx; io_channel b_io; int b_size; @@ -23,6 +22,7 @@ struct buffer_head { int b_dirty; int b_uptodate; int b_err; + char b_data[1024]; }; struct inode { |