1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* process.c (rb_exec_fillarg): check use_shell field before accessing

a union field.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2012-06-05 20:29:15 +00:00
parent 1c4e6066be
commit a4ef2bbdd1
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Wed Jun 6 05:27:54 2012 Tanaka Akira <akr@fsij.org>
* process.c (rb_exec_fillarg): check use_shell field before accessing
a union field.
Wed Jun 6 04:58:44 2012 Tanaka Akira <akr@fsij.org>
* process.c (rb_spawn_process): prog variable is not used for Unix.

View file

@ -1830,7 +1830,7 @@ rb_exec_fillarg(VALUE prog, int argc, VALUE *argv, VALUE env, VALUE opthash, str
e->invoke.cmd.argv_buf = argv_buf;
}
if (e->invoke.cmd.argv_buf) {
if (!e->use_shell) {
char *p, *ep, *null=NULL;
VALUE argv_str;
argv_str = hide_obj(rb_str_buf_new(sizeof(char*) * (argc + 2)));