summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/openssl] test/openssl/test_asn1.rb: remove pend for unsupported ↵Kazuki Yamaguchi2022-12-231-8/+3
| | | | | | | | | | | | LibreSSL versions Commit https://github.com/ruby/openssl/commit/af895bc5596b ("asn1: avoid truncating OID in OpenSSL::ASN1::ObjectId#oid", 2016-12-15) added this test case. The OBJ_obj2txt() issue was fixed by LibreSSL 2.5.1 (released in 2017) and is no longer relevant today. https://github.com/ruby/openssl/commit/6a188f1a29
* [ruby/openssl] test/openssl/test_asn1.rb: skip failing tests on LibreSSL 3.6.0Kazuki Yamaguchi2022-12-231-3/+6
| | | | | | | | | | | | | LibreSSL 3.6.0 expects the seconds part in UTCTime and GeneralizedTime to be always present. LibreSSL 3.6.0 release note [1] says: > - The ASN.1 time parser has been refactored and rewritten using CBS. > It has been made stricter in that it now enforces the rules from > RFC 5280. [1] https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.6.0-relnotes.txt https://github.com/ruby/openssl/commit/bbc540fe83
* [ruby/openssl] Suppress deprecation warnings by OpenSSL 3Nobuyoshi Nakada2022-12-231-0/+1
| | | | https://github.com/ruby/openssl/commit/91657a7924
* [ruby/openssl] Constify when building with OpenSSL 3Nobuyoshi Nakada2022-12-237-28/+34
| | | | https://github.com/ruby/openssl/commit/c0023822fe
* [ruby/openssl] Check for functions with argumentsNobuyoshi Nakada2022-12-231-44/+44
| | | | https://github.com/ruby/openssl/commit/b67aaf925d
* [ruby/openssl] pkey/ec: fix ossl_raise() calls using cEC_POINT instead of ↵Joe Truba2022-12-231-5/+5
| | | | | | eEC_POINT https://github.com/ruby/openssl/commit/b2e9f5e132
* [ruby/openssl] raise when EC_POINT_cmp or EC_GROUP_cmp error instead of ↵Joe Truba2022-12-231-7/+11
| | | | | | returning true https://github.com/ruby/openssl/commit/e1e8f3cebe
* Update bundled gems list at fe2bcd352899cd402091c2815846d1 [ci skip]git2022-12-231-3/+3
|
* Check `added` for the second sub! properlyTakashi Kokubun2022-12-221-1/+1
| | | | | | Even if the first sub! modifies `news`, when `added` is empty, it always ended up skipping `File.write("NEWS.md", news)` because of the `next`. This commit fixes the problem.
* Bump ossf/scorecard-action from 2.0.6 to 2.1.2dependabot[bot]2022-12-231-1/+1
| | | | | | | | | | | | | | | Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.0.6 to 2.1.2. - [Release notes](https://github.com/ossf/scorecard-action/releases) - [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md) - [Commits](https://github.com/ossf/scorecard-action/compare/99c53751e09b9529366343771cc321ec74e9bd3d...e38b1902ae4f44df626f11ba0734b14fb91f8f86) --- updated-dependencies: - dependency-name: ossf/scorecard-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
* debug.gem v1.7.1Koichi Sasada2022-12-231-1/+1
|
* Bump necojackarc/auto-request-review from 0.8.0 to 0.10.0 (#7002)dependabot[bot]2022-12-221-1/+1
| | | | | | | | | | | | | | | | | Bumps [necojackarc/auto-request-review](https://github.com/necojackarc/auto-request-review) from 0.8.0 to 0.10.0. - [Release notes](https://github.com/necojackarc/auto-request-review/releases) - [Commits](https://github.com/necojackarc/auto-request-review/compare/b5e81876454003a4ccb9b89cb205c67d77d7035b...5f91f424cabb3211c669e49e79da8363f7df395b) --- updated-dependencies: - dependency-name: necojackarc/auto-request-review dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Hide RubyVM::Shape's interface as much as possible [ci skip]Takashi Kokubun2022-12-221-0/+9
| | | | | | | | | | | RubyVM::Shape is usually not available (you need SHAPE_DEBUG macro, which is not defined by default). So it seems confusing to leave RubyVM::Shape in the document. This hides only method definitions because, well, I can't find a way to hide things defined by rb_define_const or rb_struct_define_under. I gave up making the C-based documentation right. You should define things in Ruby instead.
* Document the public interface of YJIT [ci skip]Takashi Kokubun2022-12-222-6/+8
|
* Polish the public docs for MJIT [ci skip]Takashi Kokubun2022-12-223-2/+8
| | | | | Now every private interface is cleaned up, and the public interface is documented.
* Avoid calling it a stdlib [ci skip]Takashi Kokubun2022-12-221-1/+1
| | | | It technically is, but it's probably just confusing for most people.
* Clean intermediate source file in `TestMJIT#test_jit_failure` (#6994)Nobuyoshi Nakada2022-12-221-6/+8
|
* Always issue deprecation warning when calling Regexp.new with 3rd positional ↵Jeremy Evans2022-12-225-63/+87
| | | | | | | | | | | | | | argument Previously, only certain values of the 3rd argument triggered a deprecation warning. First step for fix for bug #18797. Support for the 3rd argument will be removed after the release of Ruby 3.2. Fix minor fallout discovered by the tests. Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
* Remove MJIT's private constants from docs [ci skip]Takashi Kokubun2022-12-224-4/+4
|
* Remove mjit.md from public documentation [ci skip]Takashi Kokubun2022-12-221-0/+0
| | | | | | It's for CRuby developers. Not meant to be a documentation for users. Creating a directory seems like the easiest way to exclude this from doc/.document.
* Update MJIT documentation [ci skip]Takashi Kokubun2022-12-221-43/+4
|
* Fix typo in array.cPeter Zhu2022-12-221-1/+1
| | | | We should be using the size of RArray and not RString for arrays.
* [DOC] IO#read doesn't always read in binary modeAlan Wu2022-12-221-5/+3
| | | | | | | | | | | | When `maxlen` is `nil`, it uses the data mode of the stream. For example in the following: ```ruby File.binwrite("a.txt", "\r\n\r") p File.open("a.txt", "rt").read # "\n\n" p File.open("a.txt", "rt").read(3) # "\r\n\r" ``` Note, this newline translation is _not_ specific to Windows.
* [DOC] encodings.rdoc: universal_newline reacts to \rAlan Wu2022-12-221-5/+6
| | | | It wasn't clear that the mode also translates "\r" to "\n".
* addr2line.c: Support DW_FORM_rnglistxYusuke Endoh2022-12-231-6/+19
|
* addr2line.c: Implement DW_AT_*_baseYusuke Endoh2022-12-231-1/+113
| | | | | ... and add code to parse the sections of .debug_addr_base and .debug_rnglists_base.
* addr2line.c: Support DW_FORM_strx* formsYusuke Endoh2022-12-231-5/+19
|
* addr2line.c: Support DW_FORM_addrx* formsYusuke Endoh2022-12-231-11/+26
| | | | ... and add VAL_addr value type
* addr2line.c: Keep .debug_str_offsets and .debug_addr sections as wellYusuke Endoh2022-12-231-1/+9
| | | | clang generates DWARF with the sections
* Fix buffer overrun with auto-compact for shapesPeter Zhu2022-12-221-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following script crashes: ```ruby GC.auto_compact = true GC.stress = true class Foo def initialize @a = @b = @c = 0 end def add_ivars @d = @e = @f = 0 end end ary = 1_000.times.map { Foo.new } ary.each { |f| f.add_ivars } ``` This is because in rb_grow_iv_list, it first calls rb_ensure_iv_list_size to allocate the buffer (and also unsets the embed bit) then rb_shape_transition_shape_capa to get the new shape. However, auto-compact can trigger in rb_shape_transition_shape_capa which would re-embed the object since it doesn't have the new shape yet. This causes a crash as the object is now embedded but has a non-embed shape which would cause the object to have a buffer overrun.
* addr2line.c: Fix another indexing bugYusuke Endoh2022-12-221-1/+1
|
* addr2line.c: Fix indexing bugYusuke Endoh2022-12-221-1/+1
|
* Refactor `reg_extract_args` to return regexp if givenNobuyoshi Nakada2022-12-221-12/+9
|
* addr2info.c: Make it work with --enable-yjitYusuke Endoh2022-12-221-1/+3
| | | | | | | | | | | Background: GCC 12 generates DWARF 5 with .debug_rnglists, while rustc generates DWARF 4 with .debug_ranges. The previous logic always used .debug_rnglists if there is the section. However, we need to refer .debug_ranges for DWARF 4. This change keeps DWARF version of the current compilation unit and use a proper section depending on the version.
* addr2line.c: Support "Line Number Program Header" in DWARF 5Yusuke Endoh2022-12-221-40/+119
|
* addr2line.c: Keep .debug_line_str section as wellYusuke Endoh2022-12-221-6/+9
| | | | | | ... and properly support DW_FORM_line_strp. This is a prepartion to support DWARF 5.
* Update default gems list at fe7190a8c19bb56ca0aefed368402a [ci skip]git2022-12-221-1/+1
|
* [ruby/optparse] Bump version to 0.3.1Hiroshi SHIBATA2022-12-221-1/+1
| | | | https://github.com/ruby/optparse/commit/2a1e157ae1
* NEWS.md: Update power_assert versionKazuki Tsujimoto2022-12-221-1/+1
|
* Share argument parsing in `Regexp#initialize` and `Regexp.linear_time?`Nobuyoshi Nakada2022-12-222-20/+44
|
* Put RubyVM::MJIT::Compiler under ruby_vm directory (#6989)Takashi Kokubun2022-12-217-8/+8
| | | [Misc #19250]
* Adjust style [ci skip]Nobuyoshi Nakada2022-12-221-6/+13
|
* Fix link [ci skip]Kazuhiro NISHIYAMA2022-12-221-1/+1
|
* Revert "Update bundled gems list at 2022-12-22"Takashi Kokubun2022-12-211-1/+1
| | | | This reverts commit 89a66f20d8701f30f3d9952ae62a02fdefcd166b.
* Clarify NEWS entry for Bug #16889Jeremy Evans2022-12-211-2/+2
|
* Make sure TracePoint#binding returns nil for c_call/c_return eventsJeremy Evans2022-12-212-25/+50
| | | | This makes sure the method returns nil for these events, as described in NEWS, even if the TracePoint could create a binding.
* [DOC] Update TracePoint.allow_reentry docszverok2022-12-221-1/+50
| | | | | Adjust call-seq to mention block, and add examples and explanations.
* Update documentation about Time#deconstruct_keysKazuki Tsujimoto2022-12-221-1/+3
|
* [DOC] Fix the paragraph about PRNG updateNobuyoshi Nakada2022-12-221-3/+3
|
* Added the missing word with 1e1d7047fccHiroshi SHIBATA2022-12-221-1/+1
|