In most cases, ExcelReaderFactory.CreateBinaryReader throws an ExcelReaderException when encountering an invalid input. However, it can throw several other exception types when opening files from the attached archive. These are:
- ArgumentOutOfRangeException
- FormatException
- InvalidOperationException
You can run the following code to reproduce this (path should contain the path to one of the extracted files):
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
using (var file = File.OpenRead(path))
{
ExcelReaderFactory.CreateBinaryReader(file);
}
Found via SharpFuzz.