mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
mshtml: Fix potential 1 byte 0 overwrite.
This commit is contained in:
parent
5bec7d4bbf
commit
4603f4edfa
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue