Author: mjansen
Date: Sat May 7 11:50:03 2016
New Revision: 71272
URL:
http://svn.reactos.org/svn/reactos?rev=71272&view=rev
Log:
[UDFS] Avoid double free in UDFLoadLogicalVolInt. Patch by Víctor Martínez Calvo. CID
1322300 CORE-11181 #resolve
#comment Thanks!
Modified:
trunk/reactos/drivers/filesystems/udfs/udf_info/mount.cpp
Modified: trunk/reactos/drivers/filesystems/udfs/udf_info/mount.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/udfs/u…
==============================================================================
--- trunk/reactos/drivers/filesystems/udfs/udf_info/mount.cpp [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/udfs/udf_info/mount.cpp [iso-8859-1] Sat May 7
11:50:03 2016
@@ -1316,12 +1316,12 @@
last_loc = loc;
loc = Vcb->LVid->nextIntegrityExt;
Vcb->LVid = NULL;
- MyFreePool__(Buf);
lvid_count++;
if(lvid_count > UDF_MAX_LVID_CHAIN_LENGTH) {
RC = STATUS_DISK_CORRUPT_ERROR;
goto exit_with_err;
}
+ MyFreePool__(Buf);
continue;
}
// process last LVID