Gerald Pfeifer : urlmon: Avoid accessing an uninitialized variable in a TRACE in validate_path.

Alexandre Julliard julliard at winehq.org
Fri Nov 5 13:47:17 CDT 2010


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

Author: Gerald Pfeifer <gerald at pfeifer.com>
Date:   Thu Nov  4 20:38:24 2010 +0100

urlmon: Avoid accessing an uninitialized variable in a TRACE in validate_path.

---

 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 3bbe54f..fe37558 100644
--- a/dlls/urlmon/uri.c
+++ b/dlls/urlmon/uri.c
@@ -3810,7 +3810,7 @@ static HRESULT validate_path(const UriBuilder *builder, parse_data *data, DWORD
 
     if(!valid || (check_len && expected_len != data->path_len)) {
         TRACE("(%p %p %x): Invalid path component %s.\n", builder, data, flags,
-            debugstr_wn(component, expected_len));
+            debugstr_wn(component, check_len ? expected_len : -1) );
         return INET_E_INVALID_URL;
     }
 




More information about the wine-cvs mailing list