Quantcast
Channel: Excel Data Reader - Read Excel files in .NET
Viewing all articles
Browse latest Browse all 448

Closed Issue: Corrupt XLS file goes into infinite loop [12556]

$
0
0
If I try to open a corrupt file, it goes into infinite loop, and then OutOfMemoryException. The only way is to kill the process.

```
FileStream stream = File.Open("c:\\temp\\corrupt.xls", FileMode.Open, FileAccess.Read);
IExcelDataReader excelReader = ExcelReaderFactory.CreateBinaryReader(stream);
```

2nd line will go into infinite loop.

corrupt.xls is attached.

Appreciated any help. Please let me know if need more information. Thanks.
Comments: Resolved with changeset 86978: I've added a trap for the fat table reading zero for the next sector. I don't think this is allowed anyway, and this stops the infinite loop issue

Viewing all articles
Browse latest Browse all 448

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>