mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #445] workbook_close stack-buffer-overflow #350
Labels
No labels
awaiting user feedback
bug
cmake
cmake
docs
feature request
in progress
long term
medium term
medium term
pull-request
question
question
ready to close
short term
under investigation
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/libxlsxwriter#350
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ym-xie on GitHub (May 21, 2024).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/445
Originally assigned to: @jmcnamara on GitHub.
hello, maybe there exist a bug in
workbook_close.Below is an example
The following is asan information
@ym-xie commented on GitHub (May 21, 2024):
It is also worth noting that when criteria are 16, 27, 29, 31, 33, SEGV will result. There may be other criteria to consider
@jmcnamara commented on GitHub (May 21, 2024):
Thanks for the report. That is a bug. There should be validation in the function to check that conditional formats that reference strings actually have a non-NULL string.
The other issues are probably similar. I'll take a look at those too.
@jmcnamara commented on GitHub (May 21, 2024):
It turns out that I did have validation in the code for this but the example abuses the API to use a TEXT criteria for a CELL conditional format.
The documentation for each conditional format type lists the allowable criteria (example). Nevertheless, the library should validate that as well. I'll add a new check.
@jmcnamara commented on GitHub (May 22, 2024):
I've pushed a fix to main that checks that the conditional formatting criteria matches the conditional format type. Your example will now return a
lxw_errorand warning.