59985 Commits
Author SHA1 Message Date
NAKAMURA Usaku 1f4d455848 Fix previous commit v2_7_8 2023-03-30 21:34:08 +09:00
NAKAMURA Usaku 153bdddfc2 Limit header length 2023-03-30 20:08:27 +09:00
git 6439ebc476 * 2023-03-30 [ci skip] 2023-03-30 10:48:39 +00:00
Nobuyoshi Nakada e3f18f7d2e Make RFC2822 regexp linear
https://hackerone.com/reports/1485501
2023-03-30 19:48:27 +09:00
Nobuyoshi Nakada be9026a7b4 Test for quadratic backtracking on invalid time
https://hackerone.com/reports/1485501
2023-03-30 19:48:27 +09:00
Nobuyoshi Nakada 2cb830602f Fix quadratic backtracking on invalid time
https://hackerone.com/reports/1485501
2023-03-30 19:48:27 +09:00
Hiroshi SHIBATA 332135b9a9 Ubuntu 18.04 in GHA is retired 2023-03-29 10:57:28 +09:00
Nobuyoshi Nakada 33c0889ca3 Historical timezones of Lisbon in tzdata are unstable 2023-03-29 10:57:28 +09:00
Takashi Kokubun ab2fabf34d Skip test_europe_lisbon on macOS
until we figure out why it's failing.
2023-03-29 10:57:28 +09:00
Nobuyoshi Nakada cc705648a7 Removed fetch-depth
Only the last commit is used, unless creating the ChangeLog file.
2023-03-29 10:57:28 +09:00
卜部昌平 a57ffec6c0 .github: use actions/checkout@v2 again 2023-03-29 10:57:28 +09:00
Kazuhiro NISHIYAMA c942a3cffe Use --depth on pull request
`--shallow-since=yesterday` for COMMIT_NUMBER_OF_DAY of `tool/actions-commit-info.sh`.
COMMIT_NUMBER_OF_DAY is mainly for master branch.
And `--shallow-since=yesterday` may fail on pull request.
So this revert to `--depth` on pull request.
2023-03-29 10:57:28 +09:00
git f95f5fda8a * 2023-03-29 [ci skip] 2023-03-29 01:17:36 +00:00
Hiroshi SHIBATA 6fa7e5e05b Added assert_linear_performance for URI tests 2023-03-29 10:17:23 +09:00
Hiroshi SHIBATA 14f025a738 Merge URI-0.10.0.2 for bundler 2023-03-29 10:17:23 +09:00
Hiroshi SHIBATA 6855779d58 Merge URI-0.10.0.2 2023-03-29 10:17:23 +09:00
NAKAMURA Usaku 36cadad643 merge revision(s) 58cc3c9f: [Backport #19187]
[Bug #19187] Fix for tzdata-2022g

	---
	 test/ruby/test_time_tz.rb | 21 +++++++++++++++------
	 1 file changed, 15 insertions(+), 6 deletions(-)
2022-12-08 12:33:58 +09:00
NAKAMURA Usaku d21f98531f Bump teeny 2022-12-08 12:33:42 +09:00
NAKAMURA Usaku 168ec2b1e5 Use %printer directive for Bison 3.8 (used release flow)
This is backport of fa05697e48
v2_7_7
2022-11-24 21:42:08 +09:00
NAKAMURA Usaku ee8dc8a2f3 Fix GitHub Actions error 2022-11-24 20:43:04 +09:00
Kazuki Yamaguchi 9308e32aa6 Merge openssl-2.1.4
The changes can be found at:

  https://github.com/ruby/openssl/compare/v2.1.3...v2.1.4
2022-11-24 20:06:00 +09:00
NAKAMURA Usaku 9eee81bcd0 Bump version 2022-11-24 19:42:05 +09:00
git ca07082a76 * 2022-11-24 [ci skip] 2022-11-24 02:21:03 +00:00
Nobuyoshi Nakada fa7fab95b9 Removed unnecessary RLIMIT_AS
Even without this limit, these assertions almost certainly cause a
NoMemoryError by removing the fix in 72ad8595f2.
2022-11-24 11:20:51 +09:00
nagachika 233634fbdc merge revision(s) 4f1e0bfacd:
Followed up CVE-2022-39253 for bundler examples

	---
	 spec/bundler/cache/git_spec.rb           | 3 +++
	 spec/bundler/install/gemfile/git_spec.rb | 9 +++++++++
	 spec/bundler/update/git_spec.rb          | 3 +++
	 3 files changed, 15 insertions(+)
2022-11-24 11:20:51 +09:00
Hiroshi SHIBATA 7f1163e9a5 Use ubuntu-20.04 instead of latest, because Ruby 2.7 didn't support openssl3 on Ubuntu 22.04 2022-11-24 11:20:51 +09:00
nagachika 39f6a33e23 merge revision(s) 36f297e621:
Use valid tokens as cookie names

	---
	 spec/ruby/library/cgi/cookie/name_spec.rb  | 12 ++++++------
	 spec/ruby/library/cgi/cookie/parse_spec.rb | 10 +++++-----
	 2 files changed, 11 insertions(+), 11 deletions(-)
2022-11-24 11:20:51 +09:00
nagachika 25df68ae91 merge revision(s) dae843f6b7502f921a7e66f39e3714a39d860181,86096a91d55f72620e0f8ca8634da5fa342dc35b:
Bypass git submodule add/update with git config
	 protocol.file.allow=always option.

	Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
	---
	 test/rubygems/test_gem_source_git.rb | 5 +++++
	 1 file changed, 5 insertions(+)

	[rubygems/rubygems] Use [] instead of double-quotes

	---
	 test/rubygems/test_gem_source_git.rb | 2 +-
	 1 file changed, 1 insertion(+), 1 deletion(-)
2022-11-24 11:20:51 +09:00
Takashi Kokubun f33522baac Upgrade zlib_version on AppVeyor
They removed https://zlib.net/zlib1212.zip because
https://zlib.net/zlib1213.zip was released :thinking_face:

Fix CI failures like:
https://ci.appveyor.com/project/ruby/ruby/builds/45064876/job/bb9biogolh0u2595
2022-11-24 11:20:51 +09:00
Hiroshi SHIBATA 7cf697179d Merge CGI-0.1.0.2 2022-11-24 11:20:51 +09:00
git 7b413c1db3 * 2022-10-01 [ci skip] 2022-10-01 15:59:05 +09:00
Yuta Saito 022aefb450 Initialize Objective-C classes before fork() for macOS 13
Since macOS 13, CFString family API used in
`rb_str_append_normalized_ospath` may internally use Objective-C classes
(`NSTaggedPointerString` and `NSPlaceholderMutableString`) for small strings.

On the other hand, Objective-C classes should not be used for the first
time in a `fork()`'ed but not `exec()`'ed process. Violations for this rule
can result deadlock during class initialization, so Objective-C runtime
conservatively crashes on such cases by default.

Therefore, we need to use CFString API to initialize Objective-C classes
used internally *before* `fork()`.

For more details, see https://bugs.ruby-lang.org/issues/18912
2022-10-01 15:58:54 +09:00
Nobuyoshi Nakada 99735a8b29 [Bug #19005] dynamic_lookup linker option in external libraries
The warning against `-undefined dynamic_lookup` is just a warning yet,
and many gems seem to pay no attention to warnings.  Until it fails
actually, keep it as a migration path, except for standard extension
libraries and bundled extension gems.
2022-10-01 15:58:54 +09:00
Nobuyoshi Nakada 9188c5dd6d -undefined dynamic_lookup is obsolete 2022-10-01 15:58:54 +09:00
git 6b099328af * 2022-09-20 [ci skip] 2022-09-20 18:46:48 +09:00
Hiroshi SHIBATA 6ff627e57e update ubuntu 18.04 for github actions 2022-09-20 18:46:34 +09:00
Hiroshi SHIBATA 13354c02a6 zlib-1.2.11 is removed at zlib.net 2022-09-20 18:46:34 +09:00
Nobuyoshi Nakada 302e366800 The tzdata 2022c removed Amsterdam Mean Time 2022-09-20 18:46:34 +09:00
Hiroshi SHIBATA 4c7ae84081 Use autoreconf -i instead of autoconf 2022-09-20 18:46:34 +09:00
git a62cfce75f * 2022-09-16 [ci skip] 2022-09-16 15:11:21 +09:00
Hiroshi SHIBATAandYuta Saito 31bc55dc90 Backport https://github.com/ruby/ruby/pull/6193
Co-authored-by: Yuta Saito <kateinoigakukun@gmail.com>
2022-09-16 15:11:08 +09:00
NAKAMURA Usaku c9c2245c0a Fix dtoa buffer overrun v2_7_6 2022-04-12 20:25:48 +09:00
git 389723d854 * 2022-04-07 [ci skip] 2022-04-07 22:52:52 +09:00
NAKAMURA Usaku 334ca2dc06 merge revision(s) 496591de96: [Backport #18578]
st.c: Do not clear entries_bound when calling Hash#shift for empty
     hash

    tab->entries_bound is used to check if the bins are full in
    rebuild_table_if_necessary.

    Hash#shift against an empty hash assigned 0 to tab->entries_bound, but
    didn't clear the bins. Thus, the table is not rebuilt even when the bins
    are full. Attempting to add a new element into full-bin hash gets stuck.

    This change stops clearing tab->entries_bound in Hash#shift.
    [Bug #18578]
    ---
     st.c                   |  1 -
     test/ruby/test_hash.rb | 13 +++++++++++++
     2 files changed, 13 insertions(+), 1 deletion(-)
2022-03-19 22:50:51 +09:00
NAKAMURA Usaku 19fec939a6 merge revision(s) c79d2e5474: [Backport #18562]
Fix TAG_THROW through require [Bug #18562]

    Previously this was being incorrectly swapped with TAG_RAISE in the next
    line. This would end up checking the T_IMEMO throw_data to the exception
    handling (which calls Module#===). This happened to not break existing
    tests because Module#=== returned false when klass is NULL.

    This commit handles throw from require correctly by jumping to the tag
    retaining the TAG_THROW state.
    ---
     load.c                      |  2 +-
     test/ruby/test_exception.rb | 21 +++++++++++++++++++++
     2 files changed, 22 insertions(+), 1 deletion(-)
2022-03-19 22:45:51 +09:00
NAKAMURA Usaku 7eaec9a6b3 merge revision(s) b555e659c4: [Backport #18388]
Do not use `fcopyfile` if appending to non-empty file [Bug #18388]

    `fcopyfile` appends `src` to `to` and then truncates `to` to it's
    original size.
    ---
     io.c                 |  7 +++++++
     test/ruby/test_io.rb | 12 ++++++++++++
     2 files changed, 19 insertions(+)
2022-03-19 22:41:16 +09:00
NAKAMURA Usaku 5da2a3e316 merge revision(s) 7ff1bf317887c0d7b21e91ad548d07b9f05c540c,e89d80702bd98a8276243a7fcaa2a158b3bfb659: [Backport #18516]
An alias can suppress method redefinition warning

    ---
     test/ruby/test_alias.rb | 11 +++++++++++
     1 file changed, 11 insertions(+)

    Fix memory leak at the same named alias [Bug #18516]

    When aliasing a method to the same name method, set a separate bit
    flag on that method definition, instead of the reference count
    increment.  Although this kind of alias has no actual effect at
    runtime, is used as the hack to suppress the method re-definition
    warning.
    ---
     method.h                |  1 +
     test/ruby/test_alias.rb | 18 ++++++++++++++++++
     vm_method.c             |  9 ++++++++-
     3 files changed, 27 insertions(+), 1 deletion(-)
2022-03-19 22:34:37 +09:00
NAKAMURA Usaku 2d886af0a5 merge revision(s) 6a6227e016: [Backport #18517]
Shifting zero always results in zero [Bug #18517]

	---
	 numeric.c | 2 ++
	 1 file changed, 2 insertions(+)
2022-03-19 22:27:18 +09:00
NAKAMURA Usaku 81f5453bd8 merge revision(s) 5c7af72304d0ad33cd3f21b24a4bc44e8acd5b2c,d650b17686d49c2ce8e6a87039861154e93d4621: [Backport #18497]
Assuming EXIT_SUCCESS equals 0 is not portable

    ---
     test/ruby/test_fiber.rb | 6 +++---
     1 file changed, 3 insertions(+), 3 deletions(-)

    `rb_fiber_terminate` must not return [Bug #18497]

    In a forked process from a fiber, the fiber becomes the only
    fiber, `fiber_switch` does nothing as there is no other fibers,
    `rb_fiber_terminate` does not terminate the fiber.  In that case,
    reaches the end of `fiber_entry` finaly, which is declared as
    "COROUTINE" and should never return.
    ---
     cont.c                     |  3 ++-
     eval_intern.h              |  2 +-
     test/fiber/test_process.rb | 15 +++++++++++++++
     test/ruby/test_fiber.rb    |  5 +++++
     4 files changed, 23 insertions(+), 2 deletions(-)

    note that only backported a part of above patch because of incompatibility
    of ruby_2_7.
2022-03-19 22:23:08 +09:00
NAKAMURA Usaku ea9b0fe5d3 merge revision(s) ae5458f228: [Backport #18475]
thread.c: Convert TAG_BREAK to a normal exception at thread top-level

    [Bug #18475]
    ---
     test/ruby/test_enum.rb | 11 +++++++++++
     thread.c               |  3 +++
     2 files changed, 14 insertions(+)
2022-03-19 22:15:40 +09:00