Marcus Meissner : mshtml: Fix potential 1 byte 0 overwrite.
Alexandre Julliard
julliard at winehq.org
Thu Mar 20 09:48:26 CDT 2008
Module: wine
Branch: master
Commit: 4603f4edfa6095294950dc4dd5a76692b32254c0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4603f4edfa6095294950dc4dd5a76692b32254c0
Author: Marcus Meissner <meissner at suse.de>
Date: Thu Mar 20 11:08:23 2008 +0100
mshtml: Fix potential 1 byte 0 overwrite.
---
dlls/mshtml/protocol.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/mshtml/protocol.c b/dlls/mshtml/protocol.c
index 6419d73..e338369 100644
--- a/dlls/mshtml/protocol.c
+++ b/dlls/mshtml/protocol.c
@@ -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;
}
More information about the wine-cvs
mailing list