Closed wxie7 closed 3 months ago
Thanks for the report. That is omission/bug. I'll add a fix.
I've pushed a fix for this to main. There is now a new error code called LXW_ERROR_SHEETNAME_IS_BLANK
for this condition.
Should verify in advance that name
is NULL?
Should verify in advance that
name
is NULL?
My initial thought was that the end user should check for NULL and that workbook_validate_sheet_name()
should validate the name and not the string. However, most libxlsxwriter functions check for NULL
so I've added a LXW_ERROR_NULL_PARAMETER_IGNORED
error as well.
I've force pushed that change to main.
hello, maybe there exist a bug in workbook_validate_sheet_name. When
sheetname
is an empty string (""
), theworkbook_validate_sheet_name
function does not check if the string length is 0, leading to a buffer overflow.The following is the relevant code, the crash occurs at workbook.c:workbook_validate_sheet_name.