mshtml: Fix potential 1 byte 0 overwrite.
This commit is contained in:
parent
5bec7d4bbf
commit
4603f4edfa
|
@ -848,7 +848,7 @@ static HRESULT WINAPI ResProtocolInfo_ParseUrl(IInternetProtocolInfo *iface, LPC
|
|||
return E_INVALIDARG;
|
||||
|
||||
len = ptr - (pwzUrl + sizeof(wszRes)/sizeof(WCHAR));
|
||||
if(len > sizeof(file_part)/sizeof(WCHAR)) {
|
||||
if(len >= sizeof(file_part)/sizeof(WCHAR)) {
|
||||
FIXME("Too long URL\n");
|
||||
return MK_E_SYNTAX;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue