https://git.reactos.org/?p=reactos.git;a=commitdiff;h=4805f0cd73a28451c1346…
commit 4805f0cd73a28451c134625653cc3e1bb5911fb3
Author: Victor Martinez <vicmarcal(a)gmail.com>
AuthorDate: Sat Aug 17 15:52:19 2019 +0300
Commit: Victor Perevertkin <victor(a)perevertkin.ru>
CommitDate: Sat Aug 17 16:49:11 2019 +0300
[UDFS] Don't access OldInIcb after being freed
CORE-11199
---
drivers/filesystems/udfs/udf_info/udf_info.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/filesystems/udfs/udf_info/udf_info.cpp
b/drivers/filesystems/udfs/udf_info/udf_info.cpp
index 38576beab29..6778cf78fb2 100644
--- a/drivers/filesystems/udfs/udf_info/udf_info.cpp
+++ b/drivers/filesystems/udfs/udf_info/udf_info.cpp
@@ -1719,8 +1719,8 @@ UDFWriteFile__(
}
}
if(OldInIcb) {
- MyFreePool__(OldInIcb);
UDFWriteExtent(Vcb, &(Dloc->DataLoc), 0, (uint32)OldLen, FALSE,
OldInIcb, &_WrittenBytes);
+ MyFreePool__(OldInIcb);
}
if((int64)OldLen != Dloc->DataLoc.Length) {
// restore file size