Commit a6440390 authored by Thomas Faber's avatar Thomas Faber Committed by Alexandre Julliard

msxml3: Avoid buffer overflow in BindStatusCallback_GetBindInfo (DPH).

parent ee7756fd
...@@ -397,7 +397,7 @@ static HRESULT WINAPI BindStatusCallback_GetBindInfo(IBindStatusCallback *iface, ...@@ -397,7 +397,7 @@ static HRESULT WINAPI BindStatusCallback_GetBindInfo(IBindStatusCallback *iface,
pbindinfo->dwBindVerb = This->request->verb; pbindinfo->dwBindVerb = This->request->verb;
if (This->request->verb == BINDVERB_CUSTOM) if (This->request->verb == BINDVERB_CUSTOM)
{ {
pbindinfo->szCustomVerb = CoTaskMemAlloc(SysStringByteLen(This->request->custom)); pbindinfo->szCustomVerb = CoTaskMemAlloc(SysStringByteLen(This->request->custom)+sizeof(WCHAR));
strcpyW(pbindinfo->szCustomVerb, This->request->custom); strcpyW(pbindinfo->szCustomVerb, This->request->custom);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment