This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.28.9000-348-gf5ec0ea

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  f5ec0ea9eaf9753188a0bfa391b101ea8d5efc2b (commit)
      from  8cebd4ffe67bf94508809ea0caa02a4f1d52e8b1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------;a=commitdiff;h=f5ec0ea9eaf9753188a0bfa391b101ea8d5efc2b

commit f5ec0ea9eaf9753188a0bfa391b101ea8d5efc2b
Author: Adhemerval Zanella <>
Date:   Mon Dec 3 18:20:26 2018 -0200

    posix: Fix segfault in maybe_script_execute
    This patch is essentially 28669f86f6 adjusted for the generic
    Checked on x86_64-linux-gnu with Linux spawni.c removed.  The only
    failure is posix/tst-spawn3, which is expected.
    	[BZ #23913]
    	* sysdeps/posix/spawni.c (maybe_script_execute):
    	Increment size of new_argv by one.

diff --git a/ChangeLog b/ChangeLog
index d5e7e3d..c094c90 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2018-12-03  Adhemerval Zanella  <>
+	[BZ #23913]
+	* sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
+	new_argv by one.
 2018-12-03  Carlos O'Donell  <>
 	[BZ #23923]
diff --git a/sysdeps/posix/spawni.c b/sysdeps/posix/spawni.c
index c42fbd5..c02171c 100644
--- a/sysdeps/posix/spawni.c
+++ b/sysdeps/posix/spawni.c
@@ -68,7 +68,7 @@ maybe_script_execute (struct posix_spawn_args *args)
       ptrdiff_t argc = args->argc;
       /* Construct an argument list for the shell.  */
-      char *new_argv[argc + 1];
+      char *new_argv[argc + 2];
       new_argv[0] = (char *) _PATH_BSHELL;
       new_argv[1] = (char *) args->file;
       if (argc > 1)


Summary of changes:
 ChangeLog              |    6 ++++++
 sysdeps/posix/spawni.c |    2 +-
 2 files changed, 7 insertions(+), 1 deletions(-)

GNU C Library master sources

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]