mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
fs/ntfs3: Delete duplicate condition in ntfs_read_mft()
There were two patches which addressed the same bug and added the same condition: commit6db620863f
("fs/ntfs3: Validate data run offset") commit887bfc5460
("fs/ntfs3: Fix slab-out-of-bounds read in run_unpack") Delete one condition. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
This commit is contained in:
parent
d49436c344
commit
658015167a
1 changed files with 0 additions and 6 deletions
|
@ -381,12 +381,6 @@ attr_unpack_run:
|
|||
|
||||
t64 = le64_to_cpu(attr->nres.svcn);
|
||||
|
||||
/* offset to packed runs is out-of-bounds */
|
||||
if (roff > asize) {
|
||||
err = -EINVAL;
|
||||
goto out;
|
||||
}
|
||||
|
||||
err = run_unpack_ex(run, sbi, ino, t64, le64_to_cpu(attr->nres.evcn),
|
||||
t64, Add2Ptr(attr, roff), asize - roff);
|
||||
if (err < 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue