mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 06:06:09 -06:00
worksheet: fix buffer overflow in table formula expansion
This commit is contained in:
parent
69e5c5e1ce
commit
a18ee6498d
1 changed files with 3 additions and 1 deletions
|
|
@ -1717,9 +1717,11 @@ _expand_table_formula(const char *formula)
|
|||
|
||||
ptr = formula;
|
||||
|
||||
while (*ptr++) {
|
||||
while (*ptr) {
|
||||
if (*ptr == '@')
|
||||
ref_count++;
|
||||
|
||||
ptr++;
|
||||
}
|
||||
|
||||
if (ref_count == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue