summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix format specifiers for `size_t`Nobuyoshi Nakada2022-10-261-1/+1
|
* Improve Cirrus notification metadata [ci skip]Takashi Kokubun2022-10-251-3/+5
|
* CI skip should not be notified [ci skip]Takashi Kokubun2022-10-251-0/+1
|
* Add NEWS entries about MJIT [ci skip]Takashi Kokubun2022-10-251-0/+8
|
* Start notifying Cirrus CI failuresTakashi Kokubun2022-10-251-0/+29
| | | | | | | | | It looks like Cirrus doesn't natively support notifications and they recomment to use GitHub Actions for it. https://cirrus-ci.org/guide/notifications/ Because I don't know what the payload looks like, I just added a basic payload and dumped GitHub context so that we could improve it later.
* [win32] Only include base windows typesJosh Cooper2022-10-261-1/+1
| | | | | | esent.h is the header for MS essential storage engine (JET) which is not needed in ruby. basetsd.h has existed since _MSC_VER >= 1200 (VS 6.0) and is the preferred header to use for WCHAR.
* Use ruby/action-slack@v3.0.0 and ref_name (#6633)Takashi Kokubun2022-10-2512-24/+24
| | | | | | | | | | It's moved from k0kubun to ruby org. Also, we don't need JavaScript eval to generate branch if we use github.ref_name, so v3.0.0 is a version that doesn't use eval. Co-Authored-By: Nobuyoshi Nakada <nobu@ruby-lang.org> Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
* Update default gems list at d6d9b5130e5545e978fc9763e9419b [ci skip]git2022-10-251-0/+1
|
* [ruby/erb] Version 3.0.0 Takashi Kokubun2022-10-251-1/+1
|
* Bundler: update docs for gemfile(5) manpageTakuya Noguchi2022-10-252-22/+43
| | | | | | | | - Add mswin/mswin64 to platforms - Use TruffleRuby as example instead of Rubinius Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com> Co-authored-by: André Arko <andre@arko.net>
* [ruby/irb] Make sure Encoding's defaults are restored Stan Lo2022-10-251-2/+5
|
* [ruby/erb] url_encode: use CGI.escapeURIComponentJean Boussier2022-10-252-4/+4
| | | | | | | | | | | (https://github.com/ruby/erb/pull/23) Ref: https://github.com/ruby/cgi/pull/26 This native implementation is much faster and available in `cgi 0.3.3`. https://github.com/ruby/erb/commit/2d90e9b010
* YJIT: GC and recompile all code pages (#6406)Takashi Kokubun2022-10-2512-32/+454
| | | | | when it fails to allocate a new page. Co-authored-by: Alan Wu <alansi.xingwu@shopify.com>
* Prevent potential buffer overrun in onigmoYusuke Endoh2022-10-253-3/+17
| | | | | | | | | | A code pattern `p + enclen(enc, p, pend)` may lead to a buffer overrun if incomplete bytes of a UTF-8 character is placed at the end of a string. Because this pattern is used in several places in onigmo, this change fixes the issue in the side of `enclen`: the function should not return a number that is larger than `pend - p`. Co-Authored-By: Nobuyoshi Nakada <nobu@ruby-lang.org>
* [ruby/tmpdir] Ignore empty environment variablesNobuyoshi Nakada2022-10-252-2/+16
| | | | | | Fixes https://github.com/ruby/tmpdir/pull/17 https://github.com/ruby/tmpdir/commit/a79c727a5d
* [ruby/tmpdir] Found or raise Nobuyoshi Nakada2022-10-251-4/+2
|
* [ruby/tmpdir] Update supported and testing ruby versions Nobuyoshi Nakada2022-10-251-1/+1
|
* [ruby/tmpdir] Make `Dir.tmpdir` more idiomatic and functionalPeter Vandenberk2022-10-251-4/+2
| | | | | | | | | | Use `Enumerable#find` to iterate over the candidates, not `Enumerable.each`. (this makes the code more functional, and - IMO - slightly more idiomatic, as it avoids setting the "global" (by which I mean: non-local) `tmp` variable from inside the block) https://github.com/ruby/tmpdir/commit/d1f20ad694
* [rubygems/rubygems] Bump rb-sys in ↵dependabot[bot]2022-10-252-7/+7
| | | | | | | | | | | | | | | | | | | /test/rubygems/test_gem_ext_cargo_builder/custom_name Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.31 to 0.9.34. - [Release notes](https://github.com/oxidize-rb/rb-sys/releases) - [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.31...v0.9.34) --- updated-dependencies: - dependency-name: rb-sys dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> https://github.com/rubygems/rubygems/commit/6af714b02c
* [ruby/tmpdir] Fix typo Nobuyoshi Nakada2022-10-251-1/+1
|
* [ruby/tmpdir] [DOC] Improve documentationNobuyoshi Nakada2022-10-251-1/+9
| | | | https://github.com/ruby/tmpdir/commit/b9c880f2b6
* sync_default_gems.rb: Ignore unmergeable files [ci skip]Nobuyoshi Nakada2022-10-251-1/+1
|
* Prevent buffer overrun in regparse.cYusuke Endoh2022-10-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A regexp that ends with an escape following an incomplete UTF-8 char might cause buffer overrun. Found by OSS-Fuzz. ``` $ valgrind ./miniruby -e 'Regexp.new("\\u2d73\\0\\0\\0\\0 \\\xE6".b)' ==296213== Memcheck, a memory error detector ==296213== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==296213== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info ==296213== Command: ./miniruby -e Regexp.new("\\\\u2d73\\\\0\\\\0\\\\0\\\\0\ \ \ \ \ \ \ \ \ \ \\\\\\xE6".b) ==296213== ==296213== Warning: client switching stacks? SP change: 0x1ffe8020e0 --> 0x1ffeffff10 ==296213== to suppress, use: --max-stackframe=8379952 or greater ==296213== Invalid read of size 1 ==296213== at 0x484EA10: memmove (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==296213== by 0x339568: memcpy (string_fortified.h:29) ==296213== by 0x339568: onig_strcpy (regparse.c:271) ==296213== by 0x339568: onig_node_str_cat (regparse.c:1413) ==296213== by 0x33CBA0: parse_exp (regparse.c:6198) ==296213== by 0x33EDE4: parse_branch (regparse.c:6511) ==296213== by 0x33EEA2: parse_subexp (regparse.c:6544) ==296213== by 0x34019C: parse_regexp (regparse.c:6593) ==296213== by 0x34019C: onig_parse_make_tree (regparse.c:6638) ==296213== by 0x32782D: onig_compile_ruby (regcomp.c:5779) ==296213== by 0x313EFA: onig_new_with_source (re.c:876) ==296213== by 0x313EFA: make_regexp (re.c:900) ==296213== by 0x313EFA: rb_reg_initialize (re.c:3136) ==296213== by 0x318555: rb_reg_initialize_str (re.c:3170) ==296213== by 0x318555: rb_reg_init_str (re.c:3205) ==296213== by 0x31A669: rb_reg_initialize_m (re.c:3856) ==296213== by 0x3E5165: vm_call0_cfunc_with_frame (vm_eval.c:150) ==296213== by 0x3E5165: vm_call0_cfunc (vm_eval.c:164) ==296213== by 0x3E5165: vm_call0_body (vm_eval.c:210) ==296213== by 0x3E89BD: vm_call0_cc (vm_eval.c:87) ==296213== by 0x3E89BD: rb_call0 (vm_eval.c:551) ==296213== Address 0x9d45b10 is 0 bytes after a block of size 32 alloc'd ==296213== at 0x4844899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==296213== by 0x20FA7B: objspace_xmalloc0 (gc.c:12146) ==296213== by 0x35F8C9: str_buf_cat4.part.0 (string.c:3132) ==296213== by 0x31359D: unescape_escaped_nonascii (re.c:2690) ==296213== by 0x313A9D: unescape_nonascii (re.c:2869) ==296213== by 0x313A9D: rb_reg_preprocess (re.c:2992) ==296213== by 0x313DFC: rb_reg_initialize (re.c:3109) ==296213== by 0x318555: rb_reg_initialize_str (re.c:3170) ==296213== by 0x318555: rb_reg_init_str (re.c:3205) ==296213== by 0x31A669: rb_reg_initialize_m (re.c:3856) ==296213== by 0x3E5165: vm_call0_cfunc_with_frame (vm_eval.c:150) ==296213== by 0x3E5165: vm_call0_cfunc (vm_eval.c:164) ==296213== by 0x3E5165: vm_call0_body (vm_eval.c:210) ==296213== by 0x3E89BD: vm_call0_cc (vm_eval.c:87) ==296213== by 0x3E89BD: rb_call0 (vm_eval.c:551) ==296213== by 0x3E957B: rb_call (vm_eval.c:877) ==296213== by 0x3E957B: rb_funcallv_kw (vm_eval.c:1074) ==296213== by 0x2A4123: rb_class_new_instance_pass_kw (object.c:1991) ==296213== ==296213== ==296213== HEAP SUMMARY: ==296213== in use at exit: 35,476,538 bytes in 9,489 blocks ==296213== total heap usage: 14,893 allocs, 5,404 frees, 37,517,821 bytes allocated ==296213== ==296213== LEAK SUMMARY: ==296213== definitely lost: 316,081 bytes in 2,989 blocks ==296213== indirectly lost: 136,808 bytes in 2,361 blocks ==296213== possibly lost: 1,048,624 bytes in 3 blocks ==296213== still reachable: 33,975,025 bytes in 4,136 blocks ==296213== suppressed: 0 bytes in 0 blocks ==296213== Rerun with --leak-check=full to see details of leaked memory ==296213== ==296213== For lists of detected and suppressed errors, rerun with: -s ==296213== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0) ```
* Use CXX14 to allow constexpr with non-return statementsNick Hengeveld2022-10-241-1/+1
| | | | Co-authored-by: Daniel Colson <composerinteralia@github.com>
* [rubygems/rubygems] Bump rb-sysdependabot[bot]2022-10-242-7/+7
| | | | | | | | | | | | | | | | | Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.31 to 0.9.34. - [Release notes](https://github.com/oxidize-rb/rb-sys/releases) - [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.31...v0.9.34) --- updated-dependencies: - dependency-name: rb-sys dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> https://github.com/rubygems/rubygems/commit/1882ad876f
* Remove iv_index_tbl_entryJohn Hawthorn2022-10-243-16/+0
|
* [ruby/irb] Restore standard input/output encodings after input method tests Stan Lo2022-10-241-0/+12
|
* YJIT: Lazily enable YJIT after prelude (#6597)Takashi Kokubun2022-10-244-21/+29
| | | | | | | * YJIT: Lazily enable YJIT after prelude * Update dependencies * Use a bit field for opt->yjit
* [DOC] Revert previous merge (#6624)Burdette Lamar2022-10-241-260/+188
| | | Revert previous merge
* Split tests for `Array#shuffle` and `Array#sample`Nobuyoshi Nakada2022-10-241-1/+21
|
* [DOC] Add note about method names (#6620)Burdette Lamar2022-10-241-0/+13
|
* [ruby/irb] Add a test case to cover rdoc unintalled scenario st00122022-10-241-0/+31
|
* [ruby/irb] Move require out of repeated execution pathst00122022-10-241-6/+6
| | | | | | | | | | | | SHOW_DOC_DIALOG will be called repeatedly whenever the corresponding key is pressed, but we only need to require rdoc once. So ideally the require can be put outside of the proc. And because when rdoc is not available the entire proc will be nonfunctional, we can stop registering the SHOW_DOC_DIALOG if we failed to require rdoc. https://github.com/ruby/irb/commit/b1278b7320
* [ruby/irb] Add tests for RelineInputMethod st00122022-10-241-0/+58
|
* Strip trailing spaces [ci skip]Nobuyoshi Nakada2022-10-241-0/+1
|
* * remove trailing spaces. [ci skip]git2022-10-241-1/+1
|
* Update bundled gems list at 2022-10-24git2022-10-242-2/+2
|
* Refactor timeout-setting code to a functionYusuke Endoh2022-10-241-13/+12
|
* Refactor timeout-related code in re.c a littleYusuke Endoh2022-10-241-9/+9
|
* Fix error when commit hash is removed [ci skip]Nobuyoshi Nakada2022-10-241-1/+1
|
* Fix per-instance Regexp timeout (#6621)Yusuke Endoh2022-10-243-10/+74
| | | | | | | | | | Fix per-instance Regexp timeout This makes it follow what was decided in [Bug #19055]: * `Regexp.new(str, timeout: nil)` should respect the global timeout * `Regexp.new(str, timeout: huge_val)` should use the maximum value that can be represented in the internal representation * `Regexp.new(str, timeout: 0 or negative value)` should raise an error
* Set timestamp path for the target path to TARGET_SO_DIR_TIMESTAMPNobuyoshi Nakada2022-10-241-3/+6
|
* Make the timestamp path correspond to the bundled target pathNobuyoshi Nakada2022-10-241-2/+7
| | | | | | | So different timestamps for different paths will be used. Extentions paths in bundled gems contain `ruby_version`, which includes the ABI version, and the same timestamp file for different paths resulted in build failures when it changed.
* Adjust indents [ci skip]Nobuyoshi Nakada2022-10-241-37/+34
|
* Reuse RBOOL macro in rb_ivar_defined functionS-H-GAMELINKS2022-10-241-6/+1
|
* Update default gems list at c5f5403f6ed9e62f2a1002417e61c9 [ci skip]git2022-10-241-1/+1
|
* [ruby/net-http] Bump version to 0.3.0 Hiroshi SHIBATA2022-10-241-1/+1
|
* Skip `File.atime`/`File.mtime` tests randomly failing on TravisNobuyoshi Nakada2022-10-242-9/+11
| | | | | | Not only powerpc64le, also s390x and arm32 seem failing too. These failures are probably caused by filesystem settings on Travis, but unrelated to CPUs.
* Adjust indents [ci skip]Nobuyoshi Nakada2022-10-241-13/+13
|
* Fix argument & Remove enumS-H-GAMELINKS2022-10-231-9/+3
|