ironfede / openmcdf

Microsoft Compound File .net component - pure C# - netstandard 2.0
Mozilla Public License 2.0
297 stars 73 forks source link

DIFAT sector mismatch ignores dispose stream settings #53

Closed ldy985 closed 4 years ago

ldy985 commented 4 years ago

When the exception of "DIFAT sectors count mismatched. Corrupted compound file" is hit, the working stream is disposed regardless of CFSConfiguration.LeaveOpen.

see https://github.com/ironfede/openmcdf/blob/2b3676f793983007c08ca736f67939ac8d429edd/sources/OpenMcdf/CompoundFile.cs#L1305-L1309

ldy985 commented 4 years ago

Thank you for your work!