[PATCH] msvcrt: Avoid null pointer access exceptions.
9 Sep
9 Sep
9:03 a.m.
Hi Haidong, On 9/9/21 10:46 AM, Haidong Yu wrote:
@@ -2854,6 +2854,8 @@ size_t CDECL wcslen(const wchar_t *str) */ wchar_t* CDECL wcsstr(const wchar_t *str, const wchar_t *sub) { + if (!str) return NULL; + It doesn't match with native. The function is supposed to crash on NULL str.
Thanks, Piotr
1646
Age (days ago)
1646
Last active (days ago)
1 comments
2 participants
participants (2)
-
Haidong Yu -
Piotr Caban