fix MSI buffer overflow
Mike McCormack
mike at codeweavers.com
Wed Oct 29 19:52:56 CST 2003
ChangeLog:
* fix MSI buffer overflow
-------------- next part --------------
Index: dlls/msi/table.c
===================================================================
RCS file: /home/wine/wine/dlls/msi/table.c,v
retrieving revision 1.3
diff -u -r1.3 table.c
--- dlls/msi/table.c 8 Sep 2003 19:38:46 -0000 1.3
+++ dlls/msi/table.c 28 Oct 2003 12:18:10 -0000
@@ -451,7 +457,7 @@
static LPWSTR strdupW( LPCWSTR str )
{
- UINT len = lstrlenW( str );
+ UINT len = lstrlenW( str ) + 1;
LPWSTR ret = HeapAlloc( GetProcessHeap(), 0, len*sizeof (WCHAR) );
if( ret )
lstrcpyW( ret, str );
More information about the wine-patches
mailing list