Thomas Mullaly : urlmon: Fixed invalid read and write errors (Valgrind).

Alexandre Julliard julliard at winehq.org
Tue Feb 15 11:29:25 CST 2011


Module: wine
Branch: master
Commit: 1703368e26d852b8bdc8b127b9329ef84dc13242
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1703368e26d852b8bdc8b127b9329ef84dc13242

Author: Thomas Mullaly <tmullaly at codeweavers.com>
Date:   Mon Feb 14 19:39:17 2011 -0500

urlmon: Fixed invalid read and write errors (Valgrind).

---

 dlls/urlmon/uri.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/urlmon/uri.c b/dlls/urlmon/uri.c
index a425212..0a92dad 100644
--- a/dlls/urlmon/uri.c
+++ b/dlls/urlmon/uri.c
@@ -6008,7 +6008,7 @@ static HRESULT combine_uri(Uri *base, Uri *relative, DWORD flags, IUri **result,
                 DWORD new_len = remove_dot_segments(path+offset,path_len-offset);
 
                 if(new_len != path_len) {
-                    WCHAR *tmp = heap_realloc(path, (path_offset+new_len+1)*sizeof(WCHAR));
+                    WCHAR *tmp = heap_realloc(path, (offset+new_len+1)*sizeof(WCHAR));
                     if(!tmp) {
                         heap_free(path);
                         *result = NULL;




More information about the wine-cvs mailing list