From c8e364cc2805059142f16d27397dd6e7ab0ccc11 Mon Sep 17 00:00:00 2001 From: ocean Date: Thu, 23 Feb 2006 04:24:39 +0000 Subject: [PATCH] * eval.c (SETUP_ARGS0): fixed memory corruption. [ruby-dev:28360] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ eval.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index acf017f056..eddd7caad0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Feb 23 13:23:03 2006 Hirokazu Yamamoto + + * eval.c (SETUP_ARGS0): fixed memory corruption. [ruby-dev:28360] + Wed Feb 22 21:16:55 2006 Tanaka Akira * lib/pathname.rb (Pathname#each_filename): use split_names properly. diff --git a/eval.c b/eval.c index 536e5abddc..284a27102c 100644 --- a/eval.c +++ b/eval.c @@ -2103,7 +2103,7 @@ copy_node_scope(NODE *node, NODE *rval) if (argc > 0) {\ int i;\ n = anode;\ - argv = TMP_ALLOC(argc);\ + argv = TMP_ALLOC(argc+extra);\ for (i=0;ind_head);\ n=n->nd_next;\