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
Missing nil check in formattedValue method causes a segmentation fault.
Steps to reproduce the issue:
Create a file and set Styles.CellXfs to nil. We originally saw this issue with a malformed file but can't access the file itself due to company policy.
Call formattedValue on this file.
Segmentation fault is triggered when trying to access Styles.CellXfs.Xf array.
…ax-os#1385)
- Add nil pointer guard in cell format
- Add tests to verify the nil checks in formattedValue
Co-authored-by: Zach Clark <zachmclark@gmail.com>
…ax-os#1385)
- Add nil pointer guard in cell format
- Add tests to verify the nil checks in formattedValue
Co-authored-by: Zach Clark <zachmclark@gmail.com>
Description
Missing nil check in
formattedValue
method causes a segmentation fault.Steps to reproduce the issue:
Styles.CellXfs
tonil
. We originally saw this issue with a malformed file but can't access the file itself due to company policy.formattedValue
on this file.Styles.CellXfs.Xf
array.Excelize version or commit ID:
4998b7b
The text was updated successfully, but these errors were encountered: