fs/ntfs3: Check if more than chunk-size bytes are written
authorAndrew Ballance <andrewjballance@gmail.com>
Wed, 15 May 2024 12:38:33 +0000 (07:38 -0500)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Tue, 3 Sep 2024 13:58:39 +0000 (16:58 +0300)
commit9931122d04c6d431b2c11b5bb7b10f28584067f0
tree8f1235ef22ecf0f22dfd4cc948f206348e22cd0d
parent556bdf27c2dd5c74a9caacbe524b943a6cd42d99
fs/ntfs3: Check if more than chunk-size bytes are written

A incorrectly formatted chunk may decompress into
more than LZNT_CHUNK_SIZE bytes and a index out of bounds
will occur in s_max_off.

Signed-off-by: Andrew Ballance <andrewjballance@gmail.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/lznt.c