You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- [x] a bug report
- [ ] a feature request
- [x] not a usage question
What is the expected behavior?
Reading an Excel 97-2003 document shouldn't throw notices or errors.
What is the current behavior?
Reading an Excel 97-2003 documents isn't possible when the data is corrupted in a certain way.
What are the steps to reproduce?
Legacy .xls documents created with third party libraries might contain corrupt data. In my case xfIndex read from a cell is 0 while there's only one entry within the mapCellXfIndex mapping array at index position 15. Therefore there will be an unchecked array access at pos 0.
Unfortunately I can't provide the file as it contains sensitive customer data. But I found out that, according to the shared strings table (sst), it was originally created by the library "GemBox.Spreadsheet Professional 3.3 for .NET 4.0, Version=33.3.40.1062".
Another guy ran into the same problem but I think no one was looking into it: 432120730
Reading the file with Excel or LibreOffice works without problems.
This problem is the same as #1238, which was resolved by #1239.
For that issue, the fix was to check in one place whether
$this->mapCellXfIndex[$xfIndex] was set before using it.
The sample spreadsheet supplied as a description for this
problem had exactly the same problem in 2 other places in the code.
In addition, there were 7 other places in the code where that
particular item was used unchecked. This fix corrects all 9 locations.
The spreadsheet supplied with the problem is used as the basis
for some new tests, which particularly test column dimensions
and styles, the problems involved in this case.
This is:
What is the expected behavior?
Reading an Excel 97-2003 document shouldn't throw notices or errors.
What is the current behavior?
Reading an Excel 97-2003 documents isn't possible when the data is corrupted in a certain way.
What are the steps to reproduce?
Legacy .xls documents created with third party libraries might contain corrupt data. In my case xfIndex read from a cell is 0 while there's only one entry within the mapCellXfIndex mapping array at index position 15. Therefore there will be an unchecked array access at pos 0.
Unfortunately I can't provide the file as it contains sensitive customer data. But I found out that, according to the shared strings table (sst), it was originally created by the library "GemBox.Spreadsheet Professional 3.3 for .NET 4.0, Version=33.3.40.1062".
Another guy ran into the same problem but I think no one was looking into it: 432120730
Reading the file with Excel or LibreOffice works without problems.
Which versions of PhpSpreadsheet and PHP are affected?
At least the following: 1.6.0, 1.9.0 (current)
The text was updated successfully, but these errors were encountered: