pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang



Module Name:    pkgsrc
Committed By:   taca
Date:           Fri Nov 20 14:39:48 UTC 2026

Modified Files:
        pkgsrc/lang/ruby: rubyversion.mk
        pkgsrc/lang/ruby34: distinfo
        pkgsrc/lang/ruby34/patches: patch-configure

Log Message:
lang/ruby33: update to 3.3.14

3.3.14 (2026-11-18)

This release fixes seven vulnerabilities have been discovered in Ruby's
regular expression engine and in the case conversion of strings.

Please refer
<https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/>
in detail.

What's Changed

* Bug #22477: rb_ec_clear_vm_stack() can still clear the VM stack before
  ec->cfp = NULL on aarch64
* Bug #22479: File.realdirpath returns a wrong path when GC runs while it
  resolves a relative symlink
* Bug #22476: rb_profile_frames() called from a signal handler segfaults
  while vm_make_env_each() is escaping a chain of frames
* Bug #22416: Respect timezone abbreviation encodings in Time#strftime
* Bug #22436: Array#zip with a method_missing-based argument leaks a stale
  block handler (segfault when the next C-called method yields)
* Bug #22449: Out-of-bounds in Array#sample when array modified
* Bug #22450: Jump value attaches block in incorrect place under parse.y
* Bug #22456: IO#close hangs forever when another thread is writing to the
  IO from a trap handler (please backport ba68343d3a to 3.4)
* JIT: Reject --{y,z}jit-exec-mem-size values that overflow the u32
  reservation size by st0012 · Pull Request #19720
* Bug #22451: Coderange may be set incorrectly when concatenating a string
  into itself
* Bug #20655: Calling continuation triggers ensure function of rb_ensure
* Bug #22458: Time#strftime out-of-bound access
* Bug #22461: Use-after-free in String formatting with wide character
  encodings
* Bug #22471: Thread#name= on a terminated thread may dump core
* Bug #22467: IO#readpartial can raise EFAULT during GC.compact in another
  thread
* Bug #22480: Ruby's release tarballs are not POSIX compliant since 2018
* Bug #22491: The number of captures may change depending on the encoding of
  the target string
* Bug #22389: Hang on GC.compact
* Feature #22238: String#tr to take a Hash for multi-character replacements
* Bug #22382: IO#write of a shareable String from multiple Ractors causes
  use-after-free
* Bug #22535: Release mode segfault due to half-initialized error in
  singleton_method
* Bug #22504: Empty keyword hash mishandled when calling a Method proc
  through the C API
* Bug #22512: Overflow in st_init_existing_table_with_size /
  Hash.new(capacity:)
* Bug #22495: UTF-32 strings with a byte 0x80 or more in the most
  significant position are reported as valid
* Bug #22518: String#unpack("m") computes the buffer size with an
  overflowing multiplication
* Bug #22517: Some String methods return a UTF-16/32 string without room for
  its terminator
* Bug #21142: Lazy enumerator .each_with_index ignores .take(0) before it
* Bug #22496: Lazy enumerator .each_with_index no longer executes block
* Bug #22540: Process.spawn leaves the env, umask, and redirections applied
  in the parent on Windows when chdir: fails
* Bug #22492: String#rindex misses a match with a leading .* in multiline
  mode
* Bug #22494: Regexp search misses a match when an assertion precedes a
  leading .*
* Bug #22537: IO#gets(nil, limit) stops right after a 0xFF byte
* Fix memoization for the /(...){0}/ case by makenowjust · Pull Request
  #13169
* Bug #21304: heap-use-after-free of Array#hash via mutating hash method
* Ensure safe handling of hexdump width. by ioquatix · Pull Request #16593
* Bug #21974: Cannot inspect RubyVM::AST for CDECL
* Bug #22333: Assertion Failed: ary_resize_capa:RARRAY_LEN(ary) <= capacity
* Bug #22410: IO#external_encoding / IO#internal_encoding segfault on an
  uninitialized IO
* Bug #22409: ASan UAF and Assertion Failed: gc_validate_pc:CFP_PC(cfp) >=
  iseq_encoded: PC not set when allocating, breaking tracing
* Bug #22543: Segmentation fault when compiling CONST ||= value, CONST &&=
  value or CONST += value under # shareable_constant_value: literal (Prism
  compiler)
* Skip whitespace in rb_memory_view_parse_item_format fill pass by
  fuzzyrichie · Pull Request #19807
* Bug #22557: parse.y segmentation fault parsing malformed nested case
* Check the result of compile_length_tree() at every call site by mame ·
  Pull Request #19505
* Bug #22597: Regexp named capture names with invalid source encoding
* Bug #22599: parse.y rejects valid retry after a class / class << self
  definition inside rescue (Invalid retry after ensure)
* Bug #22433: IO#sysread and IO#pread are inconsistent for length 0 and
  negative numbers


To generate a diff of this commit:
cvs rdiff -u -r1.336 -r1.337 pkgsrc/lang/ruby/rubyversion.mk
cvs rdiff -u -r1.21 -r1.22 pkgsrc/lang/ruby34/distinfo
cvs rdiff -u -r1.3 -r1.4 pkgsrc/lang/ruby34/patches/patch-configure

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/ruby/rubyversion.mk
diff -u pkgsrc/lang/ruby/rubyversion.mk:1.336 pkgsrc/lang/ruby/rubyversion.mk:1.337
--- pkgsrc/lang/ruby/rubyversion.mk:1.336       Fri Nov 20 14:34:33 2026
+++ pkgsrc/lang/ruby/rubyversion.mk     Fri Nov 20 14:39:47 2026
@@ -1,4 +1,4 @@
-# $NetBSD: rubyversion.mk,v 1.336 2026/11/20 14:34:33 taca Exp $
+# $NetBSD: rubyversion.mk,v 1.337 2026/11/20 14:39:47 taca Exp $
 #
 
 # This file determines which Ruby version is used as a dependency for
@@ -213,7 +213,7 @@ RUBY_VERSION_REQD?= ${PKGNAME_REQD:C/rub
 
 # current supported Ruby's version
 RUBY33_VERSION=                3.3.14
-RUBY34_VERSION=                3.4.12
+RUBY34_VERSION=                3.4.13
 RUBY40_VERSION=                4.0.9
 
 # current API compatible version; used for version of shared library

Index: pkgsrc/lang/ruby34/distinfo
diff -u pkgsrc/lang/ruby34/distinfo:1.21 pkgsrc/lang/ruby34/distinfo:1.22
--- pkgsrc/lang/ruby34/distinfo:1.21    Sun Oct 25 14:32:43 2026
+++ pkgsrc/lang/ruby34/distinfo Fri Nov 20 14:39:48 2026
@@ -1,10 +1,10 @@
-$NetBSD: distinfo,v 1.21 2026/10/25 14:32:43 taca Exp $
+$NetBSD: distinfo,v 1.22 2026/11/20 14:39:48 taca Exp $
 
-BLAKE2s (ruby-3.4.12.tar.xz) = b4f95d70cf152504fc5569b4d3385bafd8e307c2cfc0dcce000fafc532ee77ee
-SHA512 (ruby-3.4.12.tar.xz) = 7866ed652921f9f0d601e1e323d29fddee3506cfd89e258cab7601786bffec8a17245468d517d246ecfa7fa9a982b73cfff0aaf6534444753e8b6add297bfbd3
-Size (ruby-3.4.12.tar.xz) = 16732860 bytes
+BLAKE2s (ruby-3.4.13.tar.xz) = fce6d10e3f8cbfb347304631468fae5551b20e94752f4c2b0d52fd1464749d27
+SHA512 (ruby-3.4.13.tar.xz) = 6a2df57f072ea341ce219d2d2c6a719dda976ad53d51f1c344d623bd64a4449642b49a9c81311daf367c19d42a11e2d92ac8bb343ff8bf0697247cc09b4b6eae
+Size (ruby-3.4.13.tar.xz) = 16860020 bytes
 SHA1 (patch-common.mk) = c23eed58427b2fd4ba8fdb3692f609701a666c6d
-SHA1 (patch-configure) = ff1b1e659ddc7cb1d62a71e1447df55f1f7b07c2
+SHA1 (patch-configure) = b1efaaf6a445fcda35a3d13c8cb2f1349a8e1a0f
 SHA1 (patch-ext_openssl_openssl__missing.h) = 3f8d79736fd14806dfaf76e333eec63ff3ff5890
 SHA1 (patch-include_ruby_internal_static__assert.h) = 7d5c3ae7ff674b9b34639924fcf08237164de9f8
 SHA1 (patch-lib_mkmf.rb) = ea66bc4e42d2b15edfcd8ceefa9b94d07a3cdd0f

Index: pkgsrc/lang/ruby34/patches/patch-configure
diff -u pkgsrc/lang/ruby34/patches/patch-configure:1.3 pkgsrc/lang/ruby34/patches/patch-configure:1.4
--- pkgsrc/lang/ruby34/patches/patch-configure:1.3      Sat Jul 26 06:17:00 2025
+++ pkgsrc/lang/ruby34/patches/patch-configure  Fri Nov 20 14:39:48 2026
@@ -1,13 +1,13 @@
-$NetBSD: patch-configure,v 1.3 2025/07/26 06:17:00 taca Exp $
+$NetBSD: patch-configure,v 1.4 2026/11/20 14:39:48 taca Exp $
 
 * Ignore VCS.
 * Retain _XOPEN_SOURCE, fixes eventmachine.
 * Explictly stop display with color.
 * Remove bogus MJIT disabling on SunOS.
 
---- configure.orig     2024-12-12 01:10:15.000000000 +0000
+--- configure.orig     2026-11-18 22:10:00.000000000 +0000
 +++ configure
-@@ -8722,7 +8722,7 @@ else $as_nop
+@@ -8882,7 +8882,7 @@ else case e in #(
  then :
  
        case "$target_os" in #(
@@ -16,7 +16,7 @@ $NetBSD: patch-configure,v 1.3 2025/07/2
  
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for real target cpu" >&5
  printf %s "checking for real target cpu... " >&6; }
-@@ -10843,6 +10843,7 @@ fi
+@@ -11062,6 +11062,7 @@ fi
        stack_protector=no
       ;; #(
    *) :
@@ -24,7 +24,7 @@ $NetBSD: patch-configure,v 1.3 2025/07/2
       ;;
  esac
      if test -z "${stack_protector+set}"
-@@ -12802,18 +12803,6 @@ then :
+@@ -13101,18 +13102,6 @@ then :
       CPPFLAGS="$CPPFLAGS ${rb_opt}" ;;
  esac
        done
@@ -43,7 +43,7 @@ $NetBSD: patch-configure,v 1.3 2025/07/2
  
  fi
  
-@@ -25598,7 +25591,9 @@ else
+@@ -26143,7 +26132,9 @@ then :
  #include <stdlib.h>
  #include <stddef.h>
  #ifndef alloca
@@ -54,7 +54,7 @@ $NetBSD: patch-configure,v 1.3 2025/07/2
  #  define alloca __builtin_alloca
  # elif defined _MSC_VER
  #  include <malloc.h>
-@@ -32235,8 +32232,10 @@ fi
+@@ -33034,8 +33025,10 @@ fi
         ;; #(
    freebsd*|dragonfly*) :
  
@@ -66,7 +66,7 @@ $NetBSD: patch-configure,v 1.3 2025/07/2
        if test "$rb_cv_binary_elf" != "yes"
  then :
  
-@@ -32329,9 +32328,10 @@ esac
+@@ -33130,9 +33123,10 @@ esac
         ;; #(
    darwin*) :
  
@@ -79,7 +79,7 @@ $NetBSD: patch-configure,v 1.3 2025/07/2
        if test "$load_relative" = yes
  then :
  
-@@ -32545,7 +32550,7 @@ then :
+@@ -33354,7 +33348,7 @@ then :
  esac
      rpathflag=`IFS="$PATH_SEPARATOR"
          echo x "$rpathflag" |
@@ -88,16 +88,16 @@ $NetBSD: patch-configure,v 1.3 2025/07/2
      `
      LIBRUBY_RPATHFLAGS="${LIBRUBY_RPATHFLAGS:+$LIBRUBY_RPATHFLAGS }${rpathflag}"
      LIBRUBYARG_SHARED="${LIBRUBY_RPATHFLAGS:+$LIBRUBY_RPATHFLAGS }$LIBRUBYARG_SHARED"
-@@ -34717,7 +34722,7 @@ guard=INCLUDE_RUBY_CONFIG_H
+@@ -35599,7 +35593,7 @@ guard=INCLUDE_RUBY_CONFIG_H
  (
    if test "x$CONFIGURE_TTY" = xyes
  then :
 -  color=--color
 +  color=--color=never
- else $as_nop
-   color=
- fi
-@@ -35956,21 +35961,7 @@ which seems to be undefined.  Please mak
+ else case e in #(
+   e) color= ;;
+ esac
+@@ -36848,22 +36842,7 @@ which seems to be undefined.  Please mak
      "Makefile":F)
      tmpmk=confmk$$.tmp
      {
@@ -111,10 +111,11 @@ $NetBSD: patch-configure,v 1.3 2025/07/2
 -
 -          VCS='$(GIT)'
 -
--else $as_nop
--
+-else case e in #(
+-  e)
            VCS='echo cannot'
--
+-       ;;
+-esac
 -fi
        case "$VCS" in #(
    '$(GIT)'|git) :



Home | Main Index | Thread Index | Old Index