msxml3: Avoid buffer overflow in BindStatusCallback_GetBindInfo (DPH).
Signed-off-by: Thomas Faber <thomas.faber@reactos.org> Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ee7756fdfd
commit
a64403904d
|
@ -397,7 +397,7 @@ static HRESULT WINAPI BindStatusCallback_GetBindInfo(IBindStatusCallback *iface,
|
|||
pbindinfo->dwBindVerb = This->request->verb;
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue