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:22:08 +00:00 committed by Tor Lillqvist
parent be29f0e43e
commit 969394d016
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.
Sun Dec 15 19:51:58 2002 Owen Taylor <otaylor@redhat.com>
* m4macros/glib-gettext.m4: AC_SUBST() DATADIRNAME, not

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.
Sun Dec 15 19:51:58 2002 Owen Taylor <otaylor@redhat.com>
* m4macros/glib-gettext.m4: AC_SUBST() DATADIRNAME, not

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.
Sun Dec 15 19:51:58 2002 Owen Taylor <otaylor@redhat.com>
* m4macros/glib-gettext.m4: AC_SUBST() DATADIRNAME, not

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.
Sun Dec 15 19:51:58 2002 Owen Taylor <otaylor@redhat.com>
* m4macros/glib-gettext.m4: AC_SUBST() DATADIRNAME, not

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.
Sun Dec 15 19:51:58 2002 Owen Taylor <otaylor@redhat.com>
* m4macros/glib-gettext.m4: AC_SUBST() DATADIRNAME, not

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.
Sun Dec 15 19:51:58 2002 Owen Taylor <otaylor@redhat.com>
* m4macros/glib-gettext.m4: AC_SUBST() DATADIRNAME, not

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.
Sun Dec 15 19:51:58 2002 Owen Taylor <otaylor@redhat.com>
* m4macros/glib-gettext.m4: AC_SUBST() DATADIRNAME, not

View File

@ -606,9 +606,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";