[ruby/json] Force ensure_valid_encoding to be inlined.
And move the encoding convertion logic in another function with NOINLINE.
The overwelming majority of strings are correctly encoded, so we want to inline the very cheap check, however we don't want to...
[ruby/openssl] x509store, ssl: check for error of CRYPTO_set_ex_data()
This can technically fail because it internally performs allocations. Also confirmed by the man page [1].
[1] (among other functions on this page) https://docs.openssl.org/3.5/man3/BIO_get_ex_new_index...
[ruby/openssl] pkcs7: fix error check of PKCS7_RECIP_INFO_set()
This function actually returns a value <=0 on error, but it is not documented as such. Example from OpenSSL code [1] and implementation [2] indicate as such.
[1] https://github.com/openssl/openssl/blob/4b8ddae690d6449005e474bfdfe73106d4d6c5ea/crypto/pkcs7/pk7_lib.c#L578...
[ruby/openssl] x509cert: check for error of X509_set_serialNumber()
This function may return 0 on error [1].
[1] https://manpages.debian.org/stretch/libssl-doc/X509_set_serialNumber.3ssl.en.html
https://github.com/ruby/openssl/commit/c6caa4f1c1
[ruby/openssl] x509name: check for error of X509_NAME_cmp()
These functions may return -2 to indicate an error according to the manual [1]. This can also be confirmed when looking at the code as it may call into i2d_X509_NAME() which can fail [2]. In such cases, the failure is reinterpreted as a "less than" comparison...
[DOC] Update bundled gems list at 35e7f2c2f4840de027e5ebb6e7a5f9
Bump the github-actions group across 1 directory with 2 updates
Bumps the github-actions group with 2 updates in the / directory: msys2/setup-msys2 and taiki-e/install-action....
Force binary encoding before matching in source_encoding_spec
After the syntax_suggest sync at 23ea206a58d, raw source bytes leak into SyntaxError output, which breaks the regex match on CI machines running under LC_ALL=C where ruby_exe returns a US-ASCII string....
Make NEWS.md release-link footer idempotent
Seed available_footnotes from the existing release-tag link defs in the file before overlaying freshly fetched URLs, so gems whose Octokit fetches are skipped this run keep their URLs instead of being stranded at their old positions. With every used ref backed by a footnote, the...
[Tests] Add test cases for String#getbyte and String#setbyte
Cover behavior documented in rdoc but not asserted in test/ruby/test_string.rb:
View all revisions | View revisions
Also available in: Atom