=?UTF-8?Q?Michael=20M=C3=BCller=20?=: wininet: Use random names when caching very long urls.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jun 15 08:49:09 CDT 2015


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

Author: Michael Müller <michael at fds-team.de>
Date:   Thu May 28 22:47:20 2015 +0200

wininet: Use random names when caching very long urls.

---

 dlls/wininet/urlcache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/wininet/urlcache.c b/dlls/wininet/urlcache.c
index 276132b..0e5fe3c 100644
--- a/dlls/wininet/urlcache.c
+++ b/dlls/wininet/urlcache.c
@@ -2630,7 +2630,7 @@ static BOOL urlcache_entry_create(const char *url, const char *ext, WCHAR *full_
     if(!InternetCrackUrlA(url, 0, 0, &uc))
         uc.dwUrlPathLength = 0;
 
-    if(!uc.dwUrlPathLength) {
+    if(!uc.dwUrlPathLength || uc.dwUrlPathLength >= sizeof(file_name)) {
         file_name[0] = 0;
     }else {
         char *p, *e;




More information about the wine-cvs mailing list