Whamcloud - gitweb
e2fsck: initialize variable before first use in fast commit replay
authorHarshad Shirwadkar <harshadshirwadkar@gmail.com>
Tue, 23 Feb 2021 17:41:56 +0000 (09:41 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 23 Feb 2021 17:58:16 +0000 (12:58 -0500)
commit5ba3e1644c44572a9822aaa417cb3da69778d216
treebb8b8d7159b399bddaa17363fe8fbffc7d29fa08
parent11797844f48882506e1ca0b92e52b036391f3b32
e2fsck: initialize variable before first use in fast commit replay

Initialize ext2fs_ex variable in ext4_fc_replay_scan() before first
use.  Also make sure ext2fs_decode_extent() completely overwrites the
extent structure passed to it as argument to prevent potential future
bugs for the users of the function.

Signed-off-by: Harshad Shirwadkar <harshadshirwadkar@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/journal.c
lib/ext2fs/extent.c