]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
e2fsck: fix reading fscrypt_symlink_data.len
authorEric Biggers <ebiggers@google.com>
Sat, 3 Mar 2018 00:59:16 +0000 (16:59 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 3 Mar 2018 20:28:19 +0000 (15:28 -0500)
commit6471c19d8edc66ef85c03f83502fc673e7313f74
treee929a37916bca64be07f682f173496038949638a
parent198a2d0a77d1c33790855c7827da6f1520db103e
e2fsck: fix reading fscrypt_symlink_data.len

The ciphertext length field stored at the beginning of encrypted symlink
targets is 16-bit.  But e2fsck_pass1_check_symlink() is reading it as
32-bit.  This was apparently left over from an earlier on-disk format
that was not merged.  Fix it.

This bug caused a small proportion of encrypted symlinks with 4092-byte
targets to be considered invalid by e2fsck, but otherwise had no effect.

Fixes: 62ad24802c6e ("e2fsck: handle encrypted directories which are indexed using htree")
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/pass1.c