fix MSI buffer overflow

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

 



ChangeLog:
* fix MSI buffer overflow
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 );

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

  Powered by Linux