15 May
2023
15 May
'23
1:11 p.m.
Zebediah Figura (@zfigura) commented about dlls/msado15/filter.y:
+ } + + /* Like is always followed by a string */ + | TOKEN_COLUMN TOKEN_LIKE T_STRING { + int i = 0; + char *stripped = malloc(strlen($3) + 1); + while(*$3 != '\0') + { + if(*$3 != '*') + { + stripped[i++] = *$3; + } + $3++; + } + TRACE("Stripped: %s, %s\n", debugstr_a($3), debugstr_a(stripped)); + filter_add_string_column(p->recordset, $1, $2, stripped); This doesn't null-terminate "stripped", does it?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/2498#note_32781