Skip to content

Commit c7bba39

Browse files
committed
[NTFS] When reading $I30 attribute fails, stop the rename operation.
This makes the function return the error instead of continuing and performing use-after-frees operations. This is likely to be a forgotten return! CID 1434254, 1434268
1 parent 1551d2b commit c7bba39

File tree

1 file changed

+1
-0
lines changed
  • drivers/filesystems/ntfs

1 file changed

+1
-0
lines changed

drivers/filesystems/ntfs/mft.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1662,6 +1662,7 @@ UpdateFileNameRecord(PDEVICE_EXTENSION Vcb,
16621662
ExFreePoolWithTag(IndexRecord, TAG_NTFS);
16631663
ReleaseAttributeContext(IndexRootCtx);
16641664
ExFreeToNPagedLookasideList(&Vcb->FileRecLookasideList, MftRecord);
1665+
return Status;
16651666
}
16661667

16671668
IndexRoot = (PINDEX_ROOT_ATTRIBUTE)IndexRecord;

0 commit comments

Comments
 (0)