mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #459] Read overflows causing corruption, and performance issues #359
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#359
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 @znakeeye on GitHub (Oct 23, 2024).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/459
Please check
utility.c. There you find several of these dangerous loops:It should be
*pin all cases. E.g. Seelxw_name_to_row_2where parsing "A1" would incrementplike 1,000,000 times with some bad luck. Thus, we have a read overflow.Fix:
if (p)withif (*p)while (pwithwhile (*p@jmcnamara commented on GitHub (Oct 24, 2024):
Thanks for the report. Fixed on main.
@znakeeye commented on GitHub (Oct 24, 2024):
Thanks. Any plans for an official 1.1.9 release?
@jmcnamara commented on GitHub (Oct 24, 2024):
If you need one just for this I can do one. Let me know.
@znakeeye commented on GitHub (Oct 24, 2024):
Yes please. Maintaining local patches is not great 🙂
@jmcnamara commented on GitHub (Oct 24, 2024):
The changes are upstream in v1.1.9. Thanks.