From c7bba39afc813953a5540eeea27381419e7d1ed5 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sat, 14 Apr 2018 11:39:33 +0200 Subject: [PATCH] [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 515abf7a4fa..24f28e0936c 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; -- 2.17.1