Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading 1Table stream in the following file causes ArgumentOutOfRangeException #76

Closed
hughbe opened this issue Nov 25, 2020 · 3 comments

Comments

@hughbe
Copy link
Contributor

hughbe commented Nov 25, 2020

image

mime001.doc.zip

@Sonic-The-Hedgehog-LNK1123
Copy link
Contributor

I don't know if you have realized this, but the file you provided is badly corrupted.

From the programs I tried, the sample application for OpenMCDF was in fact able to read more data from the file than other programs:

  • 7-zip wasn't able to open the file at all.
  • MiTeC's Structured Storage Viewer couldn't find any streams within the file.
  • Microsoft Word 2010 reported the file was corrupted and couldn't open it at all.

Word's "Open and Repair" command was unable to repair the file and reported the same error than opening it normally.

@hughbe
Copy link
Contributor Author

hughbe commented Feb 18, 2021

Yup I am aware! Its just that we shouldn't throw in block copy, but rather validate the file

@ironfede
Copy link
Owner

Hi @hughbe , as stated in #75 there's a NoValidation option that allows to be set in order to "try" to get data from corrupted files. If it's blanked out, OpenMcdf should throw a CFCorruptedFileException in order to stop before operating on data.
Thank you and sorry for delayed responses,
Best Regards
Federico

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants