diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-07-01 06:47:47 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-07-01 06:47:47 +0000 |
commit | 87750a6e313f894194f9475e4df4f6022be12c97 (patch) | |
tree | 6673e3628521d804dc732a9cc8c636781a110d6c | |
parent | d525aa044104e16362bc9115ec89e312ea7d896e (diff) |
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_4@796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | parse.y | 4 | ||||
-rw-r--r-- | re.c | 4 |
3 files changed, 14 insertions, 2 deletions
@@ -1,3 +1,11 @@ +Sat Jul 1 03:25:56 2000 Yukihiro Matsumoto <matz@netlab.co.jp> + + * parse.y (call_args): command_call can be the last argument of + call_args. It had to be the only argument. + + * re.c (rb_reg_s_quote): should not dump core even for unsane mbc + string. + Thu Jun 29 18:57:05 2000 Koga Youichirou <y-koga@mms.mt.nec.co.jp> * ruby.c (proc_options): mktemp() vulnerability removed. @@ -875,6 +875,10 @@ call_args : command_call { $$ = $1; } + | args ',' command_call + { + $$ = list_append($1, $3); + } | args opt_block_arg { $$ = arg_blk_pass($1, $2); @@ -982,11 +982,11 @@ rb_reg_s_quote(argc, argv) tmp = ALLOCA_N(char, len*2); t = tmp; - for (; s != send; s++) { + for (; s < send; s++) { if (ismbchar(*s)) { size_t n = mbclen(*s); - while (n--) + while (n-- && s < send) *t++ = *s++; s--; continue; |