Revision Log - ruby http://src.mouf.net/ruby/log http://src.mouf.net/ruby/rss https://pubsubhubbub.appspot.com/ 2020-02-15T09:12:47 SVN::Web daily 1 1901-01-01T00:00+00:00 /branches/ruby_2_6/process.c /branches/ruby_2_6/test/ruby/test_process.rb /branches/ruby_2_6/version.h @ 67837 http://src.mouf.net/ruby/revision?rev=67837
Restart timer thread even after preparation failed

If the timer thread is left stopped, memory crash or segfault can
happen. [Bug #16624]]]>
nagachika 2020-02-15T09:12:47
/branches/ruby_2_6/test/ruby/test_time_tz.rb /branches/ruby_2_6/time.c /branches/ruby_2_6/version.h @ 67836 http://src.mouf.net/ruby/revision?rev=67836
time.c (find_time_t): fix round-to-zero bug

`find_time_t` did not work correctly for year older than the Epoch
because it used C's integer division (which rounds negative to zero).

For example, `TIme.new(1933)` returned a wrong time whose year is 1922
in Asia/Kuala_Lumpur because there is no 00:00:00 1st Jan. 1933 in the
time zone.

```
$ TZ=Asia/Kuala_Lumpur ruby -e 'p Time.new(1933)'
1932-12-31 00:00:00 +0700
```

This change fixes the issue by using `DIV` macro instead of `/`.
Now `Time.new(1933)` returns a time in 1933.

```
$ TZ=Asia/Kuala_Lumpur ruby -e 'p Time.new(1933)'
1933-01-01 00:20:00 +0720
```

[Bug #16159]

Added a test for [Bug #16159]
]]>
nagachika 2019-12-18T13:41:48
/branches/ruby_2_6/enum.c /branches/ruby_2_6/test/ruby/test_enum.rb /branches/ruby_2_6/version.h @ 67835 http://src.mouf.net/ruby/revision?rev=67835
Fix memory corruption in Enumerable#reverse_each [ruby-dev:50867]
[Bug #16354]
]]>
nagachika 2019-12-15T08:28:52
/branches/ruby_2_6/ext/openssl/ossl_asn1.c /branches/ruby_2_6/test/openssl/test_asn1.rb /branches/ruby_2_6/version.h @ 67834 http://src.mouf.net/ruby/revision?rev=67834
Guard static variable first

* ext/openssl/ossl_asn1.c (Init_ossl_asn1): register the static
variable to grab an internal object, before creating the object.
otherwise the just-created object could get collected during the
global variable list allocation. [Bug #16196]

Slimed down test runtime by stressing openssl.so only [Bug #16196]


Prefer rb_gc_register_mark_object

* ext/openssl/ossl_asn1.c (Init_ossl_asn1): prefer
`rb_gc_register_mark_object`, which is better for constant
objects, over `rb_gc_register_address` for global/static
variables which can be re-assigned at runtime. [Bug #16196]

Skip very time consuming test [Bug #16196]
]]>
nagachika 2019-12-15T08:12:17
/branches/ruby_2_6/gems/bundled_gems /branches/ruby_2_6/version.h @ 67833 http://src.mouf.net/ruby/revision?rev=67833
Update rake-12.3.3.
]]>
nagachika 2019-12-15T07:20:58
/branches/ruby_2_6/marshal.c /branches/ruby_2_6/test/ruby/test_marshal.rb /branches/ruby_2_6/version.h @ 67832 http://src.mouf.net/ruby/revision?rev=67832
marshal.c: check instance variable count

* marshal.c (w_obj_each): ensure that no instance variable was
added while dumping other instance variables. [Bug #15968]

Hoisted out w_ivar_each


marshal.c: check instance variable count

* marshal.c (w_ivar_each): ensure that no instance variable was
removed while dumping other instance variables. [Bug #15968]]]>
nagachika 2019-12-15T07:14:45
/branches/ruby_2_6/object.c /branches/ruby_2_6/spec/ruby/core/module/autoload_spec.rb /branches/ruby_2_6/test/ruby/test_autoload.rb @ 67831 http://src.mouf.net/ruby/revision?rev=67831
Avoid triggering autoload in Module#const_defined?(String)

[Bug #15780]]]>
nagachika 2019-12-09T12:25:34
/branches/ruby_2_6/object.c /branches/ruby_2_6/test/ruby/test_module.rb /branches/ruby_2_6/version.h @ 67830 http://src.mouf.net/ruby/revision?rev=67830
test_module.rb: fix a typo

* test/ruby/test_module.rb (TestModule#test_nested_get): fix a
typo. nested module's name is a qualified path.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

object.c: fix searching nested const paths

* object.c (rb_mod_const_get, rb_mod_const_defined): nested const
paths should not search from toplevel constants.
[ruby-core:92202] [Bug #15758]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e]]>
nagachika 2019-12-09T12:06:38
/branches/ruby_2_5/test/net/ftp/test_ftp.rb /branches/ruby_2_5/version.h @ 67829 http://src.mouf.net/ruby/revision?rev=67829
test_ftp.rb: loosen timeout for Travis osx

https://travis-ci.org/ruby/ruby/jobs/454798071

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e]]>
usa 2019-12-04T06:52:01
/branches/ruby_2_6/ext/-test-/file/fs.c /branches/ruby_2_6/version.h @ 67828 http://src.mouf.net/ruby/revision?rev=67828
atime may not updated unless strictatime is set on macOS Catalina

Cited from mount(8):

```
strictatime
Always update the file access time when reading from a
file. Without this option the filesystem may default to a
less strict update mode, where some access time updates
are skipped for performance reasons. This option could be
ignored if it is not supported by the filesystem.
```]]>
nagachika 2019-11-08T22:51:51
/branches/ruby_2_5/ext/-test-/file/fs.c /branches/ruby_2_5/version.h @ 67827 http://src.mouf.net/ruby/revision?rev=67827
atime may not updated unless strictatime is set on macOS Catalina

Cited from mount(8):

```
strictatime
Always update the file access time when reading from a
file. Without this option the filesystem may default to a
less strict update mode, where some access time updates
are skipped for performance reasons. This option could be
ignored if it is not supported by the filesystem.
```]]>
usa 2019-11-08T08:29:32
/branches/ruby_2_5/version.h @ 67826 http://src.mouf.net/ruby/revision?rev=67826 ]]> usa 2019-10-03T02:27:34 /branches/ruby_2_6/test/socket/test_socket.rb /branches/ruby_2_6/version.h @ 67825 http://src.mouf.net/ruby/revision?rev=67825
Skip POINTOPOINT of IPv4 too instead of IPv6 only

Fix following error on `utun*`:
```
1) Error:
TestSocket#test_udp_server:
Errno::ECONNREFUSED: Connection refused - recvmsg(2)
```]]>
nagachika 2019-10-02T11:18:43
/tags/v2_4_9 @ 67824 http://src.mouf.net/ruby/revision?rev=67824 usa 2019-10-02T05:02:17 /branches/ruby_2_4/version.h @ 67823 http://src.mouf.net/ruby/revision?rev=67823 ]]> usa 2019-10-02T05:01:50 /branches/ruby_2_6/version.h @ 67822 http://src.mouf.net/ruby/revision?rev=67822 nagachika 2019-10-01T22:38:59 /tags/v2_4_8 @ 67821 http://src.mouf.net/ruby/revision?rev=67821 usa 2019-10-01T11:06:27 /branches/ruby_2_4/lib/shell/command-processor.rb /branches/ruby_2_4/test/shell/test_command_processor.rb /branches/ruby_2_4/version.h @ 67820 http://src.mouf.net/ruby/revision?rev=67820
`FileTest.send(command, ...)` allows to call not only FileTest-related
methods but also any method that belongs to Kernel, Object, etc.
patched by <mame@ruby-lang.org>
]]>
usa 2019-10-01T11:06:17
/branches/ruby_2_4/lib/webrick/httpresponse.rb /branches/ruby_2_4/test/webrick/test_httpresponse.rb /branches/ruby_2_4/version.h @ 67819 http://src.mouf.net/ruby/revision?rev=67819
WEBrick: prevent response splitting and header injection

This is a follow up to d9d4a28.
The commit prevented CRLR, but did not address an isolated CR or an
isolated LF.

Co-Authored-By: NARUSE, Yui <naruse@airemix.jp>
]]>
usa 2019-10-01T11:05:56
/branches/ruby_2_4/lib/webrick/httpauth/digestauth.rb /branches/ruby_2_4/test/webrick/test_httpauth.rb /branches/ruby_2_4/version.h @ 67818 http://src.mouf.net/ruby/revision?rev=67818
Loop with String#scan without creating substrings

Create the substrings necessary parts only, instead of cutting the
rest of the buffer. Also removed a useless, probable typo, regexp.
]]>
usa 2019-10-01T11:05:22