matz
b8b6c4894a
* enumerator.c (enum_each_cons): typo in RDoc fixed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-20 19:41:29 +00:00
matz
09f4a8643c
* ext/bigdecimal/lib/bigdecimal/jacobian.rb (Jacobian::dfdxi):
...
typo fixed (raize -> raise). [ruby-list:45101]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-20 19:39:36 +00:00
shyouhei
a889f3405f
* tool/make-snapshot: do not use sha256sum; use BASERUBY instead
...
* common.mk (dist): use tool/make-snapshot instead
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-20 16:02:21 +00:00
akr
7ba5c4e83b
* process.c (Init_process): Process::Status#to_int removed.
...
(PST2INT): defined.
(pst_to_s): use PST2INT.
(pst_inspect): ditto.
(pst_equal): ditto.
(pst_bitand): ditto.
(pst_rshift): ditto.
(pst_wifstopped): ditto.
(pst_wstopsig): ditto.
(pst_wifsignaled): ditto.
(pst_wtermsig): ditto.
(pst_wifexited): ditto.
(pst_wexitstatus): ditto.
(pst_success_p): ditto.
(pst_wcoredump): ditto.
(rb_f_system): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-20 14:00:35 +00:00
nobu
e1a45b10b6
* array.c (rb_ary_store, rb_ary_splice): not depend on unspecified
...
behavior at integer overflow.
* string.c (str_buf_cat): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-20 06:42:07 +00:00
nobu
72dd5fdc47
* array.c (rb_ary_store, rb_ary_splice): not depend on unspecified
...
behavior at integer overflow.
* string.c (str_buf_cat): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-20 06:40:10 +00:00
nobu
a54cbe65a9
* process.c (rb_detach_process): store detached process ID in the
...
thread local storage. moved from lib/open3.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-20 03:40:02 +00:00
nobu
79bb49b61b
* random.c (Init_RandomSeed2): should be void.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-20 03:29:19 +00:00
nobu
feb400081b
* tool/make-snapshot: fixed typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-20 03:19:38 +00:00
matz
6b33d77c4b
* string.c (rb_str_sub_bang): should preserve replacement points
...
since they may be altered in the yielded block.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-20 03:14:23 +00:00
akr
04739ba617
* string.c (rb_memhash): randomize hash to avoid algorithmic
...
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: svn+ssh://ci.ruby-lang.org/ruby/trunk@17465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-20 02:46:17 +00:00
shyouhei
3af6dda231
* array.c (ary_new, rb_ary_initialize, rb_ary_store,
...
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: svn+ssh://ci.ruby-lang.org/ruby/trunk@17460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 23:12:46 +00:00
usa
a556543f74
* process.c (rb_f_fork): NetBSD 4.0 or later can fork.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 18:27:14 +00:00
mame
56dda0e605
* test/testunit/collector/test_dir.rb: r15825 made it unnecessary to change
...
String to Symbol.
* test/testunit/collector/test_objectspace.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 18:20:30 +00:00
drbrain
08837d081d
Update to RubyGems 1.1.1 r1784 (pre 1.2)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 18:15:26 +00:00
mame
4394ffe521
* thread.c: try to remove false positive of deadlock detection (second
...
trial).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 18:02:40 +00:00
matz
e76afc29d8
* lib/mathn.rb (Rational::power2): typo fixed. [ruby-core:17293]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 17:17:29 +00:00
matz
5336cbdfd3
* string.c (str_gsub): should preserve last successful match
...
data. [ruby-dev:35182]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 17:11:55 +00:00
ko1
e929f49e56
* KNOWNBUGS.rb, bootstraptest/pending.rb: move a bug (?) to pending.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 16:08:16 +00:00
ko1
e7dac48a91
* proc.c (proc_new): fix to return Proc object if block is already
...
in heap. [ruby-core:15711]
* bootstraptest/test_proc.rb: add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 15:43:25 +00:00
ko1
af94c81302
* thread_win32.c (native_sleep): fix to decrement sleeper count.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 15:19:38 +00:00
mame
8d4f4e25e5
* test/net/http/test_http.rb: compare encodings of two strings before
...
comparing themself, which suppress too big error output.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 14:49:39 +00:00
mame
da3be0f3d3
* ext/json/ext/parser/parser.rl, ext/json/ext/parser/parser.c: JSON
...
text SHALL be encoded in Unicode.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 14:47:04 +00:00
mame
4b645dc8f3
* thread.c, thread_win32.c, vm_core.h: try to remove false positive of
...
deadlock detection.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 14:18:46 +00:00
akr
b44d0b98d8
add a test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 13:26:37 +00:00
nobu
8aa74a17ef
* ext/extmk.rb (extmake): check if compile before showing message.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 12:43:57 +00:00
nobu
88a374f59f
* ext/extmk.rb (extmake): check if compile before showing message.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 12:38:10 +00:00
nobu
0a3b487504
* tool/make-snapshot: supported multiple snapshots.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 12:35:35 +00:00
kazu
2bcb0a1a35
* lib/net/pop.rb (Net::POP3#set_all_uids): speed
...
up. a patch from <m-sumi AT techfirm.co.jp> [ruby-list:45047]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 11:42:05 +00:00
matz
350e6ed84b
* ext/etc/etc.c (Init_etc): define constant aliases Etc::Passwd
...
and Etc::Group. [ruby-dev:35150]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 08:45:25 +00:00
matz
c3ab4a4b1b
* string.c (str_alloc): specify 'inline' modifier.
...
* string.c (str_alloc): remove cSymbol hack that no longer
necessary.
* string.c (scan_once): avoid retrieving encoding info unless
necessary.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 08:39:03 +00:00
matz
768380583a
* string.c (rb_str_scan): String#scan should preserve last
...
successful match data. [ruby-dev:35106]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 08:25:50 +00:00
usa
363b0bddde
* missing/acosh.c (atanh): should set ERANGE to errno if parameter
...
is the boundary case. fixed [ruby-dev:35155]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 07:51:46 +00:00
nagai
6bb934c482
* ext/tk/lib/tkextlib/tile/treeview.rb: cannot configure tags.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 07:08:06 +00:00
ko1
1bc6479a88
* test/ruby/test_enumerator.rb: fix to skip "with_memo" test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 02:49:28 +00:00
ko1
c3e619c83d
* vm_insnhelper.c (vm_throw): fix "return" process from "lambda".
...
* bootstraptest/test_proc.rb: add a test.
* bootstraptest/pending.rb: add a pending bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 02:46:02 +00:00
mame
33e5cfee7b
* test/etc/test_etc.rb: avoid infinite loop. [ruby-dev:35158]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-18 15:34:46 +00:00
shyouhei
87d053f000
* gc.c (rb_newobj): prohibit call of rb_newobj() during gc.
...
a patch from Sylvain Joyeux in [ruby-core:12099].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-18 14:09:33 +00:00
nobu
29ad22694f
* ruby.c (verbose_setter, opt_W_getter): fixed prototypes.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-18 12:08:16 +00:00
kazu
80243ab386
fix typo
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-18 11:36:59 +00:00
kazu
19e22ae8f4
* test/ruby/test_rubyoptions.rb: use character class instead of alternation
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-18 11:36:42 +00:00
usa
6f7e284257
* test/ruby/test_unicode_escape.rb (test_basic): windows' echo support.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-18 11:28:27 +00:00
naruse
3dd2370e04
* fix ChangeLog.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-18 10:40:05 +00:00
usa
dccf0183e9
* test/ruby/test_shebang.rb (test_shebang): on windows path separetor is '\'.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-18 10:23:25 +00:00
usa
2c66adba64
* ruby.c (opt_W_getter): use ruby_verbose directly instead of parameter
...
because ruby_verbose is not a real variable, so the address of
parameter is not collect.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-18 10:22:06 +00:00
usa
18abca0e68
* test/ruby/test_io.rb (test_copy_stream_dst_rbuf): set binmode.
...
* test/ruby/test_io.rb (make_tempfile): set binmode.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-18 09:45:41 +00:00
usa
ad24701cce
* win32/win32.c (errmap): add some pipe errors.
...
* win32/win32.c (rb_w32_write): set errno when CRT's errno is EINVAL
for pipe errors.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-18 09:32:03 +00:00
usa
32c63d1f35
* win32/win32.c (poll_child_status): set EINVAL to errno when
...
GetExitCodeProcess() fails with ERROR_INVALID_HANDLE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-18 09:10:04 +00:00
usa
6874320d20
* test/ruby/test_argf.rb: support NO_SAFE_RENAME platforms.
...
* test/ruby/test_argf.rb: now tempfiles are binmode'ed to test tell/pos/etc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-18 07:28:24 +00:00
naruse
58d694fcdb
* io.c (rb_open_file): fs_encoding and fname_encoding is
...
rb_encoding *.
fixed [ruby-dev:35151]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-18 06:07:38 +00:00