Our process crashed on a call to Aspose, after analyzing a certain customer file.
This short code causes Aspose.Cells to consume over 4GB of memory and crash:
var bytes = Encoding.ASCII.GetBytes(
"<html><body><table style=\"width:20pt'u6:str\"></table></body></html>"
);
using (var mem = new MemoryStream())
{
mem.Write(bytes, 0, bytes.Length);
mem.Flush();
mem.Seek(0, SeekOrigin.Begin);
new Aspose.Cells.Workbook(mem);
}
I am not sure how the customer generated this specific file. The Generator meta tag in the original file indicated that it was generated by Microsoft Excel 10.
I would like Aspose to either report an error on such files (if they are invalid) or process them successfully. The customer’s file was named something.xls. Excel successfully rendered the file after displaying a warning about unexpected format.