[PATCH] msvcrt: Avoid null pointer access exceptions.

Piotr Caban piotr.caban at gmail.com
Thu Sep 9 04:03:18 CDT 2021


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



More information about the wine-devel mailing list