25 Oct
2022
25 Oct
'22
4:13 p.m.
Piotr Caban (@piotr) commented about dlls/msvcrt/mbcs.c:
return _mbclen_l(str, NULL); }
+/********************************************************************* + * _mbsinc_l(MSVCRT.@) + */ +unsigned char* CDECL _mbsinc_l(const unsigned char* str, _locale_t locale) +{ + if (!MSVCRT_CHECK_PMT(str)) + return NULL;
I didn't test all C-runtime versions but it looks like the function should crash on str == NULL. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/1159#note_12059