Commit 95649404 authored by Michael Müller's avatar Michael Müller Committed by Alexandre Julliard

wininet: Use random names when caching very long urls.

parent 060d8a46
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment