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;\