summaryrefslogtreecommitdiffstats
path: root/ChangeLog
Commit message (Collapse)AuthorAgeFilesLines
...
* * array.c (rb_ary_store, rb_ary_splice): not depend on unspecifiednobu2008-06-201-0/+7
| | | | | | | | | behavior at integer overflow. * string.c (str_buf_cat): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_detach_process): store detached process ID in thenobu2008-06-201-0/+5
| | | | | | | thread local storage. moved from lib/open3.rb. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_sub_bang): should preserve replacement pointsmatz2008-06-201-0/+5
| | | | | | since they may be altered in the yielded block. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_memhash): randomize hash to avoid algorithmicakr2008-06-201-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | complexity attacks. (rb_str_hash): use rb_memhash. * include/ruby/intern.h (rb_reset_random_seed): declared. * thread.c (rb_thread_atfork): call rb_reset_random_seed. * inits.c (rb_call_inits): call Init_RandomSeed at first. * random.c (seed_initialized): defined. (fill_random_seed): extracted from random_seed. (make_seed_value): extracted from random_seed. (rb_f_rand): initialize random seed at first. (initial_seed): defined. (Init_RandomSeed): defined. (Init_RandomSeed2): defined. (rb_reset_random_seed): defined. (Init_Random): call Init_RandomSeed2. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (ary_new, rb_ary_initialize, rb_ary_store,shyouhei2008-06-191-0/+11
| | | | | | | | | | | | | | | | | rb_ary_aplice, rb_ary_times): integer overflows should be checked. based on patches from Drew Yao <ayao at apple.com> fixed CVE-2008-2726 * string.c (rb_str_buf_append): fixed unsafe use of alloca, which led memory corruption. based on a patch from Drew Yao <ayao at apple.com> fixed CVE-2008-2726 * sprintf.c (rb_str_format): backported from trunk. * intern.h: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_f_fork): NetBSD 4.0 or later can fork.usa2008-06-191-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/testunit/collector/test_dir.rb: r15825 made it unnecessary to changemame2008-06-191-0/+7
| | | | | | | | | String to Symbol. * test/testunit/collector/test_objectspace.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to RubyGems 1.1.1 r1784 (pre 1.2)drbrain2008-06-191-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c: try to remove false positive of deadlock detection (secondmame2008-06-191-0/+5
| | | | | | | trial). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mathn.rb (Rational::power2): typo fixed. [ruby-core:17293]matz2008-06-191-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (str_gsub): should preserve last successful matchmatz2008-06-191-0/+5
| | | | | | data. [ruby-dev:35182] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * KNOWNBUGS.rb, bootstraptest/pending.rb: move a bug (?) to pending.ko12008-06-191-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * proc.c (proc_new): fix to return Proc object if block is alreadyko12008-06-191-0/+7
| | | | | | | | | in heap. [ruby-core:15711] * bootstraptest/test_proc.rb: add a test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread_win32.c (native_sleep): fix to decrement sleeper count.ko12008-06-191-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/net/http/test_http.rb: compare encodings of two strings beforemame2008-06-191-0/+5
| | | | | | | comparing themself, which suppress too big error output. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/json/ext/parser/parser.rl, ext/json/ext/parser/parser.c: JSONmame2008-06-191-0/+5
| | | | | | | text SHALL be encoded in Unicode. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c, thread_win32.c, vm_core.h: try to remove false positive ofmame2008-06-191-0/+5
| | | | | | | deadlock detection. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extmake): check if compile before showing message.nobu2008-06-191-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/make-snapshot: supported multiple snapshots.nobu2008-06-191-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/pop.rb (Net::POP3#set_all_uids): speedkazu2008-06-191-1/+6
| | | | | | | up. a patch from <m-sumi AT techfirm.co.jp> [ruby-list:45047] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/etc/etc.c (Init_etc): define constant aliases Etc::Passwdmatz2008-06-191-0/+5
| | | | | | and Etc::Group. [ruby-dev:35150] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (str_alloc): specify 'inline' modifier.matz2008-06-191-0/+10
| | | | | | | | | | * string.c (str_alloc): remove cSymbol hack that no longer necessary. * string.c (scan_once): avoid retrieving encoding info unless necessary. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_scan): String#scan should preserve lastmatz2008-06-191-0/+5
| | | | | | successful match data. [ruby-dev:35106] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * missing/acosh.c (atanh): should set ERANGE to errno if parameterusa2008-06-191-0/+5
| | | | | | | | is the boundary case. fixed [ruby-dev:35155] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tkextlib/tile/treeview.rb: cannot configure tags.nagai2008-06-191-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_enumerator.rb: fix to skip "with_memo" test.ko12008-06-191-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_throw): fix "return" process from "lambda".ko12008-06-191-0/+8
| | | | | | | | | * bootstraptest/test_proc.rb: add a test. * bootstraptest/pending.rb: add a pending bug. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/etc/test_etc.rb: avoid infinite loop. [ruby-dev:35158]mame2008-06-181-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (rb_newobj): prohibit call of rb_newobj() during gc.shyouhei2008-06-181-0/+5
| | | | | | | | a patch from Sylvain Joyeux in [ruby-core:12099]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (verbose_setter, opt_W_getter): fixed prototypes.nobu2008-06-181-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typokazu2008-06-181-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * fix ChangeLog.naruse2008-06-181-0/+1092
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (opt_W_getter): use ruby_verbose directly instead of parameterusa2008-06-181-0/+6
| | | | | | | | | because ruby_verbose is not a real variable, so the address of parameter is not collect. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (errmap): add some pipe errors.usa2008-06-181-0/+7
| | | | | | | | | * win32/win32.c (rb_w32_write): set errno when CRT's errno is EINVAL for pipe errors. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (poll_child_status): set EINVAL to errno whenusa2008-06-181-0/+5
| | | | | | | | GetExitCodeProcess() fails with ERROR_INVALID_HANDLE. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_open_file): fs_encoding and fname_encoding isnaruse2008-06-181-1092/+6
| | | | | | | rb_encoding *. fixed [ruby-dev:35151] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_open_file): not rb_enc_get_index but rb_enc_get.naruse2008-06-181-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/win32.h (pipe): now pipe is textmode. although thisusa2008-06-181-0/+6
| | | | | | | | | change is experimental, it will be spec if no compatiblity problem is reported. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (w_object, marshal_dump, r_object0, marshal_load): searchnobu2008-06-181-0/+10
| | | | | | | | | | | | public methods only. [ruby-core:17283] * object.c (convert_type): ditto. * lib/singleton.rb (Singleton#_dump): conversion method should be public. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/etc/etc.c (etc_passwd, etc_group): fixed rdoc. a patch fromnobu2008-06-181-0/+5
| | | | | | | okkez <okkez000 AT gmail.com> in [ruby-dev:35141]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix RubyGems for 1.9, r1780drbrain2008-06-171-0/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update RubyGems to 1.1.1 r1778 (almost 1.2)drbrain2008-06-171-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * KNOWNBUGS.rb, bootstraptest/pending.rb: move pending bug.ko12008-06-171-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c, vm_insnhelper.c: fix escape process with "braek" and "return"ko12008-06-171-0/+7
| | | | | | | | | syntax in "lambda". [ ruby-Bugs-19304 ], [ruby-core:17164] * KNOWNBUGS.rb, bootstraptest/test_proc.rb: add/move solved test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/multi-tk.rb: cannot access class variable from singleton method.nagai2008-06-171-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (Init_Dir): dir_foreach() takes variable argument.usa2008-06-171-2/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/telnet.rb: Fixing Telnet#wairfor() which was broken by changes tojeg22008-06-171-0/+5
| | | | | | | | the Kernel::Integer() method. [ruby-core:17272] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (opt_W_getter): made a hooked variable.nobu2008-06-171-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/euc_jp.c (property_name_to_ctype): core dumped when sizeof(int)mame2008-06-171-0/+9
| | | | | | | | | | | differs from sizeof(long). * enc/shift_jis.c (property_name_to_ctype): ditto. * enc/unicode.c (onigenc_unicode_property_name_to_ctype): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (miniruby$(EXEEXT)): $(PREP) isn't always same asnobu2008-06-171-0/+6
| | | | | | | | miniruby, and tests, debug, etc have no meaning when cross-compiling. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e