Bug 526619 – make test-report crash

* glib/gtester.c: Allocate enough space for argv. Patch by
         Hiroyuki Ikezoe


svn path=/trunk/; revision=6832
This commit is contained in:
Matthias Clasen 2008-04-08 02:22:37 +00:00
parent f0ba12f19f
commit a5aadf0914
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2008-04-07 Matthias Clasen <mclasen@redhat.com>
Bug 526619 make test-report crash
* glib/gtester.c: Allocate enough space for argv. Patch by
Hiroyuki Ikezoe
2008-04-04 Matthias Clasen <mclasen@redhat.com>
* glib/gmain.c: Make the fix for bug 448943 work.

View File

@ -317,7 +317,7 @@ launch_test_binary (const char *binary,
argc++;
/* setup argv */
argv = g_malloc ((argc + 1) * sizeof(gchar *));
argv = g_malloc ((argc + 2) * sizeof(gchar *));
argv[i++] = binary;
for (slist = subtest_args; slist; slist = slist->next)
argv[i++] = (gchar*) slist->data;