76005 Commits

Author SHA1 Message Date
Hiroshi SHIBATA
5483bfc1ae
Bump up to 3.2.11 v3_2_11 2026-03-27 06:53:23 +09:00
Hiroshi SHIBATA
8a7c126dde
Sync the latest version of backport tools 2026-03-24 15:36:13 +09:00
Hiroshi SHIBATA
7cdea3bd49 Merge zlib-3.0.1 2026-03-10 15:58:49 +09:00
Nobuyoshi Nakada
357d601e8b [Bug #21629] Initialize struct RString 2026-01-22 18:02:29 +09:00
Hiroshi SHIBATA
2051ac34b7
merge revision(s) d209e6f1c0a93ad3ce1cc64dd165a6b67672614d: [Backport #21715]
search_nonascii(): Replace UB pointer cast with memcpy

	Casting a pointer to create an unaligned one is undefined behavior in C
	standards. Use memcpy to express the unaligned load instead to play by
	the rules.

	Practically, this yields the same binary output in many situations
	while fixing the crash in [Bug #21715].
2026-01-19 11:23:42 +09:00
Hiroshi SHIBATA
a3a6d25788
Bump up to 3.2.10 v3_2_10 2026-01-14 09:56:38 +09:00
Hiroshi SHIBATA
e8e2fe6b5b Skip some broken tests with mingw platform 2026-01-13 16:23:44 +09:00
Nobuyoshi Nakada
c293be8316 Win32: OpenSSL 1.1 DLLs are no longer used
We are already using OpenSSL 3.3 and have no possibility to use system
provided DLLs.
2026-01-13 16:23:44 +09:00
MSP-Greg
a5dcb5fdbb mingw.yml - fixup to use ucrt, logging 2026-01-13 16:23:44 +09:00
Hiroshi SHIBATA
bbed9bf417 Use macos-15-intel instead of macos-13 2026-01-13 16:23:44 +09:00
Nobuyoshi Nakada
3254d2be91 Use IO.popen instead of IO.foreach with pipe 2026-01-13 16:23:44 +09:00
Pierrick Bouvier
8f8f8d12b9 [win32] nm use full options
Fix compilation error when using MSYS2 environment.
Credits to MSYS2 Ruby package using this patch.
2026-01-13 16:23:44 +09:00
NAITOH Jun
d2edfe55e0 Bump rexml to v3.4.4 for Ruby 3.2 (CVE-2025-58767)
This update addresses CVE-2025-58767 (GHSA-c2f4-jgmc-q2r5).
2025-10-17 10:32:30 +09:00
Kazuki Yamaguchi
c38243e2c4 [ruby/openssl] ssl: remove OpenSSL::X509::V_FLAG_CRL_CHECK_ALL from the default store
With OpenSSL 3.6.0, it causes nearly every certificate verification to
fail with the message "certificate verify failed (unable to get
certificate CRL)" because the CRLs are typically unavailable in the
default store used by OpenSSL::SSL::SSLContext#set_params.

OpenSSL::X509::V_FLAG_CRL_CHECK_ALL is a flag that extends the CRL
checking to all certificates in the chain. In OpenSSL < 3.6.0, the flag
alone has no effect, and OpenSSL::X509::V_FLAG_CRL_CHECK must also be
set to enable CRL checking.

In OpenSSL 3.6.0, OpenSSL::X509::V_FLAG_CRL_CHECK_ALL now implies
OpenSSL::X509::V_FLAG_CRL_CHECK. This is inconsistent with the man page
and may be fixed in a future OpenSSL 3.6.x release, but this flag is not
needed and should not be set by default.

Fixes https://github.com/ruby/openssl/issues/949

https://github.com/ruby/openssl/commit/e8481cd687
2025-10-09 14:00:36 +09:00
Takashi Kokubun
a7e80e0966
post_push.yml: Backport commit-mail to ruby_3_2 (#14783) 2025-10-08 14:23:34 -07:00
Takashi Kokubun
b8802ae5a0
Backport fetch_changesets to ruby_3_2 (#14774) 2025-10-08 01:10:14 -07:00
Takashi Kokubun
6dbf3d9313
Backport post_push.yml workflow to ruby_3_2 (#14771) 2025-10-07 21:42:24 -07:00
Hiroshi SHIBATA
6d19422887 Fix tests to verify basic authentication 2025-10-07 19:54:25 +09:00
Hiroshi SHIBATA
f9b2ebc9ab Truncate x-oauth-basic strings from tests of rubygems 2025-10-07 19:54:25 +09:00
Hiroshi SHIBATA
2c01a34978 Merge URI-0.12.5 2025-10-07 19:54:25 +09:00
TSUYUSATO Kitsune
94aabd3415 Correct castings to use OnigDistance 2025-08-01 10:16:55 +09:00
TSUYUSATO Kitsune
0eb1ed4f26 Add castings to prevent warnings 2025-08-01 10:16:55 +09:00
TSUYUSATO Kitsune
ae966df907 Port a Oniguruma patch: Integer overflow in onig_search_gpos()
778a43dd56

It differs from the Oniguruma patch in that it dosen't use `onigenc_get_prev_char_head()`
because this function's signature has been changed by Oniguruma and the change is not ported
in Onigmo for now. This patch respects the current Onigmo implementation.

Co-Authored-By: K.Kosako <kkos@users.noreply.github.com>
2025-08-01 10:16:55 +09:00
TSUYUSATO Kitsune
f16262e544 Port a Oniguruma patch: Integer overflow in backward_search_range() and onig_search_gpos()
bfc36d3d81

Co-Authored-By: K.Kosako <kkos@users.noreply.github.com>
2025-08-01 10:16:55 +09:00
TSUYUSATO Kitsune
b2da5f3188 Port a Oniguruma patch: Integer overflow in forward_search_range()
db64ef3189

Co-Authored-By: K.Kosako <kkos@users.noreply.github.com>
2025-08-01 10:16:55 +09:00
Hiroshi SHIBATA
8f611e0c46
bump teeny v3_2_9 2025-07-24 17:27:18 +09:00
Hiroshi SHIBATA
2417ed9275 Update dependencies 2025-07-24 14:39:20 +09:00
Nobuyoshi Nakada
b2cd6d71bb Cast up int instruction code to VALUE
Fix Visual C warnings:
```
iseq.c(3793): warning C4312: 'type cast': conversion from 'int' to 'void *' of greater size
iseq.c(3794): warning C4312: 'type cast': conversion from 'int' to 'void *' of greater size
```
2025-07-24 14:39:20 +09:00
Nobuyoshi Nakada
2509297258 Separate __has_attribute from defined(__has_attribute)
Fix Visual C warnings:
```
regenc.h(121): warning C4067: unexpected tokens following preprocessor directive - expected a newline
```
2025-07-24 14:39:20 +09:00
Nobuyoshi Nakada
e26e8423b5 Suppress gcc 15 unterminated-string-initialization warnings 2025-07-24 14:39:20 +09:00
Nobuyoshi Nakada
7e6bbc40c8 [ruby/io-wait] Run have_func with the header providing the declarations
https://github.com/ruby/io-wait/commit/48309d7877
2025-07-24 12:21:34 +09:00
Nobuyoshi Nakada
5c74f2a79b [ruby/json] Run have_func with the header providing the declarations
https://github.com/ruby/json/commit/95fb084027
2025-07-24 12:21:34 +09:00
Nobuyoshi Nakada
f82b9d8d7b [ruby/strscan] Run have_func with the header providing the declarations
https://github.com/ruby/strscan/commit/18c0a59b65
2025-07-24 12:21:34 +09:00
Nobuyoshi Nakada
eba9fa20b5 [ruby/strscan] Update extconf.rb
(https://github.com/ruby/strscan/pull/158)

- `have_func` includes "ruby.h" by default.
- include "ruby/re.h" where `rb_reg_onig_match` is declared.

https://github.com/ruby/strscan/commit/1ac96f47e9
2025-07-24 12:21:34 +09:00
Hiroshi SHIBATA
9f00b8872d Bump up resolv-0.2.3 for Ruby 3.2 2025-07-09 06:18:51 +09:00
Nobuyoshi Nakada
bd7d210d1c Win: Suppress false warnings from Visual C 17.14.1
https://developercommunity.visualstudio.com/t/warning-C5287:-operands-are-different-e/10877942?

It is not able to silence "operands are different enum types"
warnings, even using an explicit cast, as the message says.
2025-06-25 14:33:23 +09:00
Hiroshi SHIBATA
8eadf30cf4 Removed unnecessary winsdk version 2025-06-25 13:28:38 +09:00
Nobuyoshi Nakada
051e5f54cc [Bug #21255] Win32: Do not export __declspec(selectany) symbols
```
x64-vcruntime140-ruby350.def : error LNK2001: unresolved external symbol Avx2WmemEnabledWeakValue
```
2025-06-25 13:28:38 +09:00
Nobuyoshi Nakada
d946d65cea
Detect clock_gettime and clock_getres for winpthreads 2025-06-06 08:33:30 +09:00
Hiroshi SHIBATA
cce19c9c25 Fixed cache key of vcpkg installed artifacts 2025-05-28 10:38:11 +09:00
Hiroshi SHIBATA
7e3c817469 Don't store download cache of vcpkg 2025-05-28 10:38:11 +09:00
Hiroshi SHIBATA
161aede142 Disabled TRAP cache of CodeQL 2025-05-23 07:39:44 +09:00
Hiroshi SHIBATA
5862be0e89 Skip failing tests with mingw platform
https://github.com/ruby/ruby/actions/runs/15159221855/job/42621232822?pr=13397

```
  1)
  File.atime returns the last access time for the named file with microseconds FAILED
  Expected 0 == 123456
  to be truthy but was false
  D:/a/ruby/ruby/src/spec/ruby/core/file/atime_spec.rb:26:in `block (3 levels) in <top (required)>'
  D:/a/ruby/ruby/src/spec/ruby/core/file/atime_spec.rb:3:in `<top (required)>'

  2)
  File.ctime returns the change time for the named file (the time at which directory information about the file was changed, not the file itself) with microseconds. FAILED
  Expected 0 > 0
  to be truthy but was false
  D:/a/ruby/ruby/src/spec/ruby/core/file/ctime_spec.rb:21:in `block (3 levels) in <top (required)>'
  D:/a/ruby/ruby/src/spec/ruby/core/file/ctime_spec.rb:3:in `<top (required)>'

  3)
  File.utime sets the access and modification time of each file FAILED
  Expected 2025-05-21 10:30:54 +0000
  to be within 2025-05-21 10:30:54 +0000 +/- 0.0001
  D:/a/ruby/ruby/src/spec/ruby/core/file/utime_spec.rb:25:in `block (2 levels) in <top (required)>'
  D:/a/ruby/ruby/src/spec/ruby/core/file/utime_spec.rb:3:in `<top (required)>'

  4)
  File.mtime returns the modification Time of the file with microseconds FAILED
  Expected 0 == 123456
  to be truthy but was false
  D:/a/ruby/ruby/src/spec/ruby/core/file/mtime_spec.rb:25:in `block (3 levels) in <top (required)>'
  D:/a/ruby/ruby/src/spec/ruby/core/file/mtime_spec.rb:3:in `<top (required)>'
```

It may be fixed with 7aea269b89.
But Ruby 3.2 is now security maintenance status. We can't backport it.
2025-05-22 18:32:10 +09:00
Nobuyoshi Nakada
b7aca78cee [ruby/io-console] Use gperf 3.1 to generate ANSI-C code
https://github.com/ruby/io-console/commit/3798aae42d
2025-05-22 18:32:10 +09:00
Nobuyoshi Nakada
c239069d07 Fix redefinition of clock_gettime and clock_getres
winpthreads-git 12.0.0.r720 provides `clock_gettime` and
`clock_getres` as inline functions.
2025-05-22 18:32:10 +09:00
Hiroshi SHIBATA
395e5de8d4 Update the latest version of ruby/setup-ruby 2025-05-22 18:32:10 +09:00
Hiroshi SHIBATA
f91480d7a6
merge revision(s) 719486a642f0e282b02b958069b8b39b85b3aa1e: [Backport #21286]
Fix C23 (GCC 15) WIN32 compatibility for rb_define_* functions

	Fixes [Bug #21286]
2025-05-13 11:22:38 +09:00
nick evans
b133b39705 Bump net-imap to v0.3.9 for Ruby 3.2 (CVE-2025-43857)
This update addresses CVE-2025-43857 (GHSA-j3g3-5qv5-52mj).
2025-05-01 20:33:38 +09:00
Hiroshi SHIBATA
d274682728 Use system vcpkg command for windows-2022 image 2025-05-01 14:19:08 +09:00
Hiroshi SHIBATA
9597813f9d Bump up the latest version of actions 2025-05-01 14:19:08 +09:00