https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c7bba39afc813953a5540…
commit c7bba39afc813953a5540eeea27381419e7d1ed5
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Sat Apr 14 11:39:33 2018 +0200
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Sat Apr 14 11:43:57 2018 +0200
[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
---
drivers/filesystems/ntfs/mft.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/filesystems/ntfs/mft.c b/drivers/filesystems/ntfs/mft.c
index 515abf7a4f..24f28e0936 100644
--- a/drivers/filesystems/ntfs/mft.c
+++ b/drivers/filesystems/ntfs/mft.c
@@ -1662,6 +1662,7 @@ UpdateFileNameRecord(PDEVICE_EXTENSION Vcb,
ExFreePoolWithTag(IndexRecord, TAG_NTFS);
ReleaseAttributeContext(IndexRootCtx);
ExFreeToNPagedLookasideList(&Vcb->FileRecLookasideList, MftRecord);
+ return Status;
}
IndexRoot = (PINDEX_ROOT_ATTRIBUTE)IndexRecord;