Author: miguel
Date: 2006-11-18 14:02:51 -0500 (Sat, 18 Nov 2006)
New Revision: 68130
Modified:
trunk/mono/mono/io-layer/ChangeLog
trunk/mono/mono/io-layer/processes.c
Log:
2006-11-17 Miguel de Icaza <[EMAIL PROTECTED]>
* processes.c (ShellExecuteEx): Check error after CreateProcess,
thanks to Dick for pointing this out.
Modified: trunk/mono/mono/io-layer/ChangeLog
===================================================================
--- trunk/mono/mono/io-layer/ChangeLog 2006-11-18 19:02:03 UTC (rev 68129)
+++ trunk/mono/mono/io-layer/ChangeLog 2006-11-18 19:02:51 UTC (rev 68130)
@@ -1,3 +1,13 @@
+2006-11-17 Dick Porter <[EMAIL PROTECTED]>
+
+ * processes.c: Fix const correctness and typos that caused memory
+ corruption.
+
+2006-11-17 Miguel de Icaza <[EMAIL PROTECTED]>
+
+ * processes.c (ShellExecuteEx): Check error after CreateProcess,
+ thanks to Dick for pointing this out.
+
2006-11-16 Miguel de Icaza <[EMAIL PROTECTED]>
* processes.c (ShellExecuteEx): If we fail to create a process in
Modified: trunk/mono/mono/io-layer/processes.c
===================================================================
--- trunk/mono/mono/io-layer/processes.c 2006-11-18 19:02:03 UTC (rev
68129)
+++ trunk/mono/mono/io-layer/processes.c 2006-11-18 19:02:51 UTC (rev
68130)
@@ -399,6 +399,11 @@
ret = CreateProcess (NULL, args, NULL, NULL, TRUE,
CREATE_UNICODE_ENVIRONMENT, NULL,
sei->lpDirectory, NULL, &process_info);
+ g_free (args);
+ if (!ret){
+ SetLastError (ERROR_INVALID_DATA);
+ return FALSE;
+ }
}
if (sei->fMask & SEE_MASK_NOCLOSEPROCESS) {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches