mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #482] Bug: UndefinedBehaviorSanitizer found with fuzz tools #377
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#377
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 @tangjm24 on GitHub (Jun 2, 2025).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/482
Originally assigned to: @jmcnamara on GitHub.
I have found several bugs through fuzzing. To avoid cluttering the issues page, I’ve consolidated all the bugs I discovered into this single issue. I hope this is helpful to the developers.
Environment
libucl version: Latest commit [21c11a2](
21c11a2052)System: Ubuntu 22.04.5 LTS (Jammy)
Kernel/Release: 22.04
Bug Reproduction
driver code
compile:
crash.txt
Fix Recommondation
crash info
how to fix?
change
to
@jmcnamara commented on GitHub (Jun 2, 2025):
Please attach the
fuzzer_v1.cfile.Please include this as well, if required.
I appreciate that you are trying to be helpful but a simple reproducible test case would be better. Or even the API and string that causes the crash.
That check is already in place 2 lines previously.
From the context I'd guess that the crash occurs with a defined name like
'!nameso that the secondstrlen(worksheet_name)is zero when checked. That looks like an issue regardless of the fuzzer so I'll push a fix for that.@jmcnamara commented on GitHub (Jun 30, 2025):
Fixed in v1.2.3.