Fix buffer length calculation in InitializeGenericSF()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Fix for heap corruption in "KPN CDfoongids 2002" setup (VISE
installer).

Changelog:

	dlls/shell32	: shlfolder.c
	Fix buffer length calculation in InitializeGenericSF()

Rein.
-- 
Rein Klazes
rklazes@xs4all.nl
--- wine/dlls/shell32/shlfolder.c	Wed Jul  3 07:08:51 2002
+++ mywine/dlls/shell32/shlfolder.c	Tue Jul  9 10:18:24 2002
@@ -503,7 +503,7 @@
 	        sPos = sNewPath;
 	    }
 	    _ILSimpleGetText(pidlFolder, sPos, MAX_PATH - (sPos - sNewPath));
-	    if(!((sf->sPathRoot = SHAlloc(strlen(sNewPath+1))))) return E_OUTOFMEMORY;
+	    if(!((sf->sPathRoot = SHAlloc(strlen(sNewPath)+1)))) return E_OUTOFMEMORY;
 	    strcpy(sf->sPathRoot, sNewPath);
 	    TRACE("-- %s\n", sNewPath);
 	}

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux