30 May
2023
30 May
'23
4:05 p.m.
Nikolay Sivov (@nsivov) commented about dlls/xmllite/writer.c:
+ return WC_E_NAMECHARACTER; + + p = pwszName; + while (*p) + { + if (*p == ':') + { + p++; + continue; + } + + if (!is_ncnamechar(*p)) + return WC_E_NAMECHARACTER; + + p++; + } This could use the same sequence to validate NCName that the reader is using. My understanding is that WriteName() does not accept qualified names, but you don't have such tests.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/2928#note_34138