[UDFS] Avoid double free in UDFLoadLogicalVolInt. Patch by Víctor Martínez Calvo. CID 1322300 CORE-11181 #resolve

#comment Thanks!

svn path=/trunk/; revision=71272
This commit is contained in:
Mark Jansen 2016-05-07 11:50:03 +00:00
parent 5994ce5887
commit 2c3a40046f

View file

@ -1316,12 +1316,12 @@ exit_with_err:
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