[ros-diffs] [fireball] 33328: - Fix a bug resulting in a write to an uninitialized address (coincidently located somewhere in the middle of another heap allocation) and later heapfreeing it. WaitNamedPipeA() was the affected function (results were visible when e.g. starting Office 2003 installer).

fireball at svn.reactos.org fireball at svn.reactos.org
Tue May 6 20:11:41 CEST 2008


Author: fireball
Date: Tue May  6 13:11:41 2008
New Revision: 33328

URL: http://svn.reactos.org/svn/reactos?rev=33328&view=rev
Log:
- Fix a bug resulting in a write to an uninitialized address (coincidently located somewhere in the middle of another heap allocation) and later heapfreeing it. WaitNamedPipeA() was the affected function (results were visible when e.g. starting Office 2003 installer).

Modified:
    trunk/reactos/dll/win32/kernel32/file/npipe.c

Modified: trunk/reactos/dll/win32/kernel32/file/npipe.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/file/npipe.c?rev=33328&r1=33327&r2=33328&view=diff
==============================================================================
--- trunk/reactos/dll/win32/kernel32/file/npipe.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/file/npipe.c [iso-8859-1] Tue May  6 13:11:41 2008
@@ -250,7 +250,7 @@
     UNICODE_STRING NameU;
 
     /* Convert the name to Unicode */
-    Basep8BitStringToLiveUnicodeString(&NameU, lpNamedPipeName);
+    Basep8BitStringToHeapUnicodeString(&NameU, lpNamedPipeName);
 
     /* Call the Unicode API */
     r = WaitNamedPipeW(NameU.Buffer, nTimeOut);



More information about the Ros-diffs mailing list