msxml3: Avoid buffer overflow in BindStatusCallback_GetBindInfo (DPH).
Thomas Faber
thomas.faber at reactos.org
Mon Apr 23 05:08:58 CDT 2018
Signed-off-by: Thomas Faber <thomas.faber at reactos.org>
---
dlls/msxml3/httprequest.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/msxml3/httprequest.c b/dlls/msxml3/httprequest.c
index 40a976438db..07eeb743702 100644
--- a/dlls/msxml3/httprequest.c
+++ b/dlls/msxml3/httprequest.c
@@ -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);
}
--
2.17.0
More information about the wine-devel
mailing list