diff options
-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; |