Fix potential heap corruption. Sometimes called g_free() on string

2002-12-16  Tor Lillqvist  <tml@iki.fi>

	* glib/gspawn-win32.c (do_spawn): Fix potential heap
	corruption. Sometimes called g_free() on string literal.
This commit is contained in:
Tor Lillqvist 2002-12-16 05:20:15 +00:00 committed by Tor Lillqvist
parent 9ba4dfda92
commit 0e64bf5b37
8 changed files with 37 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-12-16 Tor Lillqvist <tml@iki.fi>
* glib/gspawn-win32.c (do_spawn): Fix potential heap
corruption. Sometimes called g_free() on string literal.
Sat Dec 14 21:24:04 2002 Owen Taylor <otaylor@redhat.com>
* glib/gutils.c (g_get_any_init): HP-UX 10 xshares the

View File

@ -1,3 +1,8 @@
2002-12-16 Tor Lillqvist <tml@iki.fi>
* glib/gspawn-win32.c (do_spawn): Fix potential heap
corruption. Sometimes called g_free() on string literal.
Sat Dec 14 21:24:04 2002 Owen Taylor <otaylor@redhat.com>
* glib/gutils.c (g_get_any_init): HP-UX 10 xshares the

View File

@ -1,3 +1,8 @@
2002-12-16 Tor Lillqvist <tml@iki.fi>
* glib/gspawn-win32.c (do_spawn): Fix potential heap
corruption. Sometimes called g_free() on string literal.
Sat Dec 14 21:24:04 2002 Owen Taylor <otaylor@redhat.com>
* glib/gutils.c (g_get_any_init): HP-UX 10 xshares the

View File

@ -1,3 +1,8 @@
2002-12-16 Tor Lillqvist <tml@iki.fi>
* glib/gspawn-win32.c (do_spawn): Fix potential heap
corruption. Sometimes called g_free() on string literal.
Sat Dec 14 21:24:04 2002 Owen Taylor <otaylor@redhat.com>
* glib/gutils.c (g_get_any_init): HP-UX 10 xshares the

View File

@ -1,3 +1,8 @@
2002-12-16 Tor Lillqvist <tml@iki.fi>
* glib/gspawn-win32.c (do_spawn): Fix potential heap
corruption. Sometimes called g_free() on string literal.
Sat Dec 14 21:24:04 2002 Owen Taylor <otaylor@redhat.com>
* glib/gutils.c (g_get_any_init): HP-UX 10 xshares the

View File

@ -1,3 +1,8 @@
2002-12-16 Tor Lillqvist <tml@iki.fi>
* glib/gspawn-win32.c (do_spawn): Fix potential heap
corruption. Sometimes called g_free() on string literal.
Sat Dec 14 21:24:04 2002 Owen Taylor <otaylor@redhat.com>
* glib/gutils.c (g_get_any_init): HP-UX 10 xshares the

View File

@ -1,3 +1,8 @@
2002-12-16 Tor Lillqvist <tml@iki.fi>
* glib/gspawn-win32.c (do_spawn): Fix potential heap
corruption. Sometimes called g_free() on string literal.
Sat Dec 14 21:24:04 2002 Owen Taylor <otaylor@redhat.com>
* glib/gutils.c (g_get_any_init): HP-UX 10 xshares the

View File

@ -603,9 +603,10 @@ do_spawn (gboolean dont_wait,
}
if (working_directory && *working_directory)
/* The g_strdup() to lose the constness */
new_argv[ARG_WORKING_DIRECTORY] = g_strdup (working_directory);
else
new_argv[ARG_WORKING_DIRECTORY] = "-";
new_argv[ARG_WORKING_DIRECTORY] = g_strdup ("-");
if (close_descriptors)
new_argv[ARG_CLOSE_DESCRIPTORS] = "y";