From a5aadf091463fb9d36e25d90a9b05b02c9be1b08 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 8 Apr 2008 02:22:37 +0000 Subject: [PATCH] =?utf8?q?=20=20=20=20=20=20=20=20Bug=20526619=20=E2=80=93?= =?utf8?q?=20make=20test-report=20crash?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * glib/gtester.c: Allocate enough space for argv. Patch by Hiroyuki Ikezoe svn path=/trunk/; revision=6832 --- ChangeLog | 7 +++++++ glib/gtester.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1210250a..3c6cca7e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-04-07 Matthias Clasen + + Bug 526619 – make test-report crash + + * glib/gtester.c: Allocate enough space for argv. Patch by + Hiroyuki Ikezoe + 2008-04-04 Matthias Clasen * glib/gmain.c: Make the fix for bug 448943 work. diff --git a/glib/gtester.c b/glib/gtester.c index 03549d9c..ecc9f77f 100644 --- a/glib/gtester.c +++ b/glib/gtester.c @@ -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; -- 2.34.1