msxml3: Only allow ASCII characters in number conversion.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b00e2df3e8
commit
a75cc9e626
|
@ -520,7 +520,7 @@ static inline HRESULT variant_from_dt(XDR_DT dt, xmlChar* str, VARIANT* v)
|
||||||
if(*p == '.')
|
if(*p == '.')
|
||||||
{
|
{
|
||||||
p++;
|
p++;
|
||||||
while(isdigitW(*p)) p++;
|
while (*p >= '0' && *p <= '9') p++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -312,7 +312,7 @@ static HRESULT xmlnodelist_get_dispid(IUnknown *iface, BSTR name, DWORD flags, D
|
||||||
WCHAR *ptr;
|
WCHAR *ptr;
|
||||||
int idx = 0;
|
int idx = 0;
|
||||||
|
|
||||||
for(ptr = name; *ptr && isdigitW(*ptr); ptr++)
|
for(ptr = name; *ptr >= '0' && *ptr <= '9'; ptr++)
|
||||||
idx = idx*10 + (*ptr-'0');
|
idx = idx*10 + (*ptr-'0');
|
||||||
if(*ptr)
|
if(*ptr)
|
||||||
return DISP_E_UNKNOWNNAME;
|
return DISP_E_UNKNOWNNAME;
|
||||||
|
|
|
@ -371,7 +371,7 @@ static HRESULT xmlnodemap_get_dispid(IUnknown *iface, BSTR name, DWORD flags, DI
|
||||||
WCHAR *ptr;
|
WCHAR *ptr;
|
||||||
int idx = 0;
|
int idx = 0;
|
||||||
|
|
||||||
for(ptr = name; *ptr && isdigitW(*ptr); ptr++)
|
for(ptr = name; *ptr >= '0' && *ptr <= '9'; ptr++)
|
||||||
idx = idx*10 + (*ptr-'0');
|
idx = idx*10 + (*ptr-'0');
|
||||||
if(*ptr)
|
if(*ptr)
|
||||||
return DISP_E_UNKNOWNNAME;
|
return DISP_E_UNKNOWNNAME;
|
||||||
|
|
|
@ -595,7 +595,7 @@ static HRESULT domselection_get_dispid(IUnknown *iface, BSTR name, DWORD flags,
|
||||||
WCHAR *ptr;
|
WCHAR *ptr;
|
||||||
int idx = 0;
|
int idx = 0;
|
||||||
|
|
||||||
for(ptr = name; *ptr && isdigitW(*ptr); ptr++)
|
for(ptr = name; *ptr >= '0' && *ptr <= '9'; ptr++)
|
||||||
idx = idx*10 + (*ptr-'0');
|
idx = idx*10 + (*ptr-'0');
|
||||||
if(*ptr)
|
if(*ptr)
|
||||||
return DISP_E_UNKNOWNNAME;
|
return DISP_E_UNKNOWNNAME;
|
||||||
|
|
Loading…
Reference in New Issue