aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * string.c (rb_str_capitalize_bang): check length before upcasenobu2003-03-262-0/+6
| | | | | | | first character. (ruby-bugs:PR#697) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* commit miss.nobu2003-03-261-1/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (dln_find_1): break if path list end, even for too longnobu2003-03-262-1/+8
| | | | | | | path names. (ruby-bugs-ja:PR#412) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-03-26eban2003-03-261-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (avalue_splat): new function to do unary * (splat)matz2003-03-269-56/+113
| | | | | | | | | | | | | | | | | | | operator. * eval.c (avalue_to_svalue,svalue_to_avalue,svalue_to_mrhs): do not use implicit "to_ary" conversion. * ext/curses/curses.c (GetWINDOW,GetMOUSE): add taint check. * ext/curses/curses.c (curses_init_screen): ditto. * ext/curses/curses.c (window_initialize): ditto. * gc.c (os_each_obj): prohibit ObjectSpace#each_object in safe mode ($SAFE >= 4). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* backoutnobu2003-03-261-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (trap): return "DEFAULT" and "IGNORE" respectively formatz2003-03-253-6/+20
| | | | | | | previous sighandler SIG_DFL and SIG_IGN. [ruby-talk:67860] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-03-25eban2003-03-251-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_yield_0): call avalue_to_mrhs() to assign blockmatz2003-03-253-2/+12
| | | | | | | | | parameter |a|. [ruby-dev:19897] * ruby.c (ruby_set_argv): freeze argument strings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_initialize): should check rb_secure(4).matz2003-03-256-2/+34
| | | | | | | | | | | * dir.c (dir_s_getwd): should check rb_secure(4). * object.c (rb_obj_infect): function version of OBJ_INFECT(). * eval.c (rb_secure_update): new function to check object update. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/strscan/strscan.c: should infect also return values of #inspect.aamine2003-03-252-19/+25
| | | | | | | * ext/strscan/strscan.c: use snprintf() instead of sprintf(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* security enhancement of dl library (need test).matz2003-03-249-158/+175
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Added rb_secure(4). (Thanks to Minero Aoki)ttate2003-03-244-1/+23
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update NotImplementError to NotImplementedError.matz2003-03-236-11/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typos.akr2003-03-231-76/+77
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_fread): may lose data on nonblocking read.matz2003-03-234-12/+16
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (block_append): warn unused lteral.nobu2003-03-232-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/jcode.rb (tr!, delete!, szueeze!): add empty string checking.eban2003-03-232-1/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-03-23nobu2003-03-231-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (rb_gc_call_finalizer_at_exit): use free() if dfree is -1.nobu2003-03-232-1/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (make_time_t): try search_time_t if mktime/timegm is failed.akr2003-03-222-30/+27
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb, lib/jcode.rb, ext/tk/lib/tk.rb: reorder characterakr2003-03-224-13/+18
| | | | | | | class /[\]\[]/ to /[\[\]]/ to readability. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri/common.rb: `[', `]', `-' in chracterakr2003-03-222-2/+2
| | | | | | | class in regexp to avoid warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb, lib/uri/common.rb: `[', `]', `-' in chracterakr2003-03-213-4/+9
| | | | | | | class in regexp to avoid warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * regex.c (re_compile_pattern): fix previous change.akr2003-03-2114-46/+56
| | | | | | | | | | | * instruby.rb, ext/extmk.rb, ext/tk/lib/tk.rb, lib/benchmark.rb, lib/cgi.rb, lib/debug.rb, lib/getoptlong.rb, lib/jcode.rb, lib/optparse.rb, lib/time.rb, lib/date/format.rb, lib/irb/ruby-lex.rb: escape `[', `]', `-' in chracter class in regexp to avoid warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-03-21eban2003-03-211-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * regex.c (re_compile_pattern): give warning for unescaped squarematz2003-03-213-2/+21
| | | | | | | brackets and minus in character class. [ruby-dev:19868] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (bmcall): missing type.nobu2003-03-212-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sprintf.c (rb_f_sprintf): copy sign bits only if value ismatz2003-03-202-1/+9
| | | | | | | negative. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * missing.h: include <stdarg.h> or <varargs.h> if HAVE_VSNPRINTFmatz2003-03-202-0/+10
| | | | | | | is not defined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* *** empty log message ***nobu2003-03-201-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser#order!): follow recent changenobu2003-03-202-1/+6
| | | | | | | of proc argument. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-03-20nobu2003-03-201-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (flo_to_s): change format specifier to "%.15g" tomatz2003-03-202-1/+6
| | | | | | | avoid unnecessary 9s (e.g. 99.59999999999999). (ruby-bugs-ja PR#406) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (stmt, primary): get rid of SEGV at empty or invalidnobu2003-03-202-16/+36
| | | | | | | | | condition. (ruby-bugs-ja:PR#410) * parse.y (cond_negative): negate condition node when NODE_NOT. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (load_dyna): clear ruby_errinfo. (ruby-bugs-ja PR#409)matz2003-03-2012-516/+685
| | | | | | | | | | | | | | | | | | | | | | | | | | | * io.c (read_all): make str empty if given. (ruby-bugs-ja PR#408) * io.c (io_read): ditto. * io.c (rb_io_sysread): ditto. * range.c: do not override min and max. * sprintf.c (remove_sign_bits): octal left most digit for negative numbers may be '3'. (ruby-bugs-ja PR#407) * sprintf.c (rb_f_sprintf): should prefix sign bits if bignum is negative, using sign_bits(). * eval.c (avalue_to_mrhs): split argument passing and assignment conversion. * eval.c (svalue_to_mrhs): ditto. * eval.c (avalue_to_svalue): avalue_to_svalue([[1,2]]) should be [[1,2]], not [1,2] to wrap-around. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (bmcall): add volatile to avoid GC problem.akr2003-03-202-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/tracer.rb (trace_func): save and recover Thread.critical state.nahi2003-03-192-3/+9
| | | | | | | Fixed by Fukumoto Atsushi <fukumoto@imasy.or.jp> [ruby-dev:19830] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test for previous change.akr2003-03-161-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb (object_address_group): use to_s instead of nameakr2003-03-162-1/+6
| | | | | | | to get name of class. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (prep_stdio): set binmode only if the file descriptoreban2003-03-123-5/+12
| | | | | | | is not connected to a terminal on Cygwin. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-03-11nobu2003-03-111-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb: Digest string wrongly included '\n' when user name is too ↵aamine2003-03-112-2/+8
| | | | | | long (ruby-bugs-ja:PR#404). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: speeding up by avoiding extra flush. (suggested by Brian ↵aamine2003-03-112-4/+11
| | | | | | Candler <B.Candler@pobox.com>) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (massign): remove unnecessary array unpacking; it shouldmatz2003-03-103-31/+52
| | | | | | | | | | | | | | | | be handled before massign() by svalue_to_mrhs(). * eval.c (svalue_to_mrhs): '*a = v' value conversion to avalue (i.e. [1] => [[1]], [1,2] => [1,2]). * eval.c (rb_eval): use svalue_to_mrhs. * eval.c (rb_yield_0): ditto. * eval.c (proc_invoke): break from "Proc#yield" is legal. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-03-10nobu2003-03-101-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_find_file): need world writable directory check formatz2003-03-104-10/+24
| | | | | | | | | | relative paths too. * file.c (rb_find_file): world writable directory check if $SAFE >= 1 (was $SAFE >= 2). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/pop.rb: do not dispatch LIST when a mailbox is empty.aamine2003-03-092-74/+110
| | | | | | | | | | * lib/net/pop.rb: merge the 'STAT' patch from Frank S.Fejes <frank@oopdreams.com>, with modifications (listed below). * lib/net/pop.rb: new method Net::POP#mail_size. * lib/net/pop.rb: new method Net::POP#bytes. * lib/net/pop.rb: new method Net::POPCommand#stat. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (mkdir, mkdir_p): revert.eban2003-03-093-3/+9
| | | | | | | * instruby.rb (umask): umask 0022, not 0. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (mkdir, mkdir_p): set mode to 0755.eban2003-03-094-6/+18
| | | | | | | * Makefile.in (fake.rb): set ALT_SEPARATOR to the default value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e