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

System.ArgumentOutOfRangeException take 2 #39

Closed
Numpsy opened this issue Jan 9, 2019 · 1 comment
Closed

System.ArgumentOutOfRangeException take 2 #39

Numpsy opened this issue Jan 9, 2019 · 1 comment

Comments

@Numpsy
Copy link
Contributor

Numpsy commented Jan 9, 2019

If you try to load the attached corrupt_doc.zip with the current OpenMCDF source (containing the previous OutOfRange fixes), you get an ArgumentOutOfRangeException with the call stack

Result StackTrace:	
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at OpenMcdf.StreamView.Read(Byte[] buffer, Int32 offset, Int32 count)
   at OpenMcdf.StreamView.ReadInt32()
   at OpenMcdf.CompoundFile.GetNormalSectorChain(Int32 secID)
   at OpenMcdf.CompoundFile.LoadDirectories()
   at OpenMcdf.CompoundFile.Load(Stream stream)
   at OpenMcdf.CompoundFile..ctor(Stream stream)
   
Result Message:	
System.ArgumentOutOfRangeException : Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

(The test file was generated by SharpFuzz)

@Numpsy
Copy link
Contributor Author

Numpsy commented May 10, 2019

Think this one is sorted now.

@Numpsy Numpsy closed this as completed May 10, 2019
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

1 participant