We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Description formatting.xlsx
Library crash when styling is negative (valid xlsx file attached, opened by any software)
if styleSheet.CellXfs.Xf[s].NumFmtID != nil { <- s is negative numFmtID = *styleSheet.CellXfs.Xf[s].NumFmtID }
Steps to reproduce the issue: valid Xslx file attached, can manually create
$ unzip formatting.xlsx modify xl/worksheets/_rels/sheet1.xml.rels (s="1" -> s="-1") $ zip -r ../formatting.xlsx *
Describe the results you received: Library crash
Describe the results you expected: Library should not crash, should use default formatting
Output of go version:
go version
go version go1.19.2 linux/amd64
Excelize version or commit ID:
2.6.2
Environment details (OS, Microsoft Excel™ version, physical, etc.): Linux
The text was updated successfully, but these errors were encountered:
Fix panic formattedValue when style is negative
43f431d
Fix qax-os#1432 `formattedValue` can crash if `s` is negative, fixed and add UT.
This closes #1432, fix panic formattedValue when style is negative (#…
a57203a
…1433)
This closes qax-os#1432, fix panic formattedValue when style is negat…
b69a802
…ive (qax-os#1433)
11ebd9e
Successfully merging a pull request may close this issue.
Description
formatting.xlsx
Library crash when styling is negative (valid xlsx file attached, opened by any software)
Steps to reproduce the issue:
valid Xslx file attached, can manually create
Describe the results you received:
Library crash
Describe the results you expected:
Library should not crash, should use default formatting
Output of
go version
:Excelize version or commit ID:
Environment details (OS, Microsoft Excel™ version, physical, etc.):
Linux
The text was updated successfully, but these errors were encountered: