5 Dec
2024
5 Dec
'24
7:28 p.m.
Rémi Bernon (@rbernon) commented about dlls/windows.web/json_value.c:
+ *json_value_type = JsonValueType_Array; + } + else if (json[0] == '{' && json[json_len - 1] == '}') + { + *json_value_type = JsonValueType_Object; + } + else + { + double result = 0; + WCHAR *end; + + errno = 0; + result = wcstod( json, &end ); + + if (errno == ERANGE) return WEB_E_INVALID_JSON_NUMBER; + if (result || ( !errno && end != json ))
if (!errno && end == json + json_len)
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/6966#note_89879