+2016-03-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
+
+ * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
+ access where posix_spawn success and pid argument is null.
+ * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
+ success case.
+
2016-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>:
* sysdeps/mach/hurd/i386/c++-types.data: New file.
if (posix_spawn (&pid, argv[1], &actions, NULL, spargv, environ) != 0)
error (EXIT_FAILURE, errno, "posix_spawn");
+ /* Same test but with a NULL pid argument. */
+ if (posix_spawn (NULL, argv[1], &actions, NULL, spargv, environ) != 0)
+ error (EXIT_FAILURE, errno, "posix_spawn");
+
/* Cleanup. */
if (posix_spawn_file_actions_destroy (&actions) != 0)
error (EXIT_FAILURE, errno, "posix_spawn_file_actions_destroy");