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:34:33 UTC 2026

Modified Files:
        pkgsrc/lang/ruby: rubyversion.mk
        pkgsrc/lang/ruby33: distinfo
        pkgsrc/lang/ruby33/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.

* GHSA-34m4-m9fh-gqp5: Heap buffer overflow in case conversion of strings:
  Ruby has a one-byte heap-based buffer overflow in the case conversion of
  strings.  Changing the case of a crafted string may allow remote code
  execution.  We are aware of PoCs that prove this flaw can be used to
  trigger RCE in some scenarios.

* GHSA-7x2q-68qv-6p8x: Double free in regular expression compilation:
  Ruby has a double free in its regular expression engine.  Compiling a
  crafted regular expression pattern may allow remote code execution in
  applications that compile attacker-controlled patterns.  We are aware of
  PoCs that prove this flaw can be used to trigger RCE in some scenarios.

* GHSA-87fm-7w84-j2px: Integer overflow in case conversion of strings:
  Ruby has an integer overflow in the case conversion of strings, which
  causes a heap-based buffer overflow.  Changing the case of a crafted
  string may allow remote code execution.  We are aware of PoCs that prove
  this flaw can be used to trigger RCE in some scenarios.

* GHSA-wpqw-5qxg-m68r: Out-of-bounds read in case-insensitive regular
  expression matching:
  Ruby has an out-of-bounds read in its regular expression engine.  Matching
  against a crafted regular expression pattern may allow remote code
  execution in applications that use attacker-controlled patterns.  We are
  aware of PoCs that prove this flaw can lead to memory corruption in an
  attacker-controlled way.

* GHSA-3p8q-wmhx-vm2w: Heap buffer overflow in regular expression
  compilation:
  Ruby has an integer overflow in its regular expression engine, which
  causes a heap-based buffer overflow.  Compiling a crafted regular
  expression pattern may allow remote code execution in applications that
  compile attacker-controlled patterns.  We are aware of PoCs that prove
  this flaw can be used to trigger RCE in some scenarios.

* GHSA-7whj-cfh7-xgm4: Heap buffer overflow in Regexp#to_s:
  Ruby has a heap-based buffer overflow in Regexp#to_s. Converting a crafted
  regular expression to a string may allow information disclosure or remote
  code execution in applications that compile attacker-controlled patterns.
  We are aware of PoCs that prove this flaw can be used to trigger RCE in
  some scenarios.

* GHSA-pvgc-g7gj-pv6h: Out-of-bounds read in case-insensitive backreference
  matching:
  Ruby has an out-of-bounds read in its regular expression engine.  Matching
  a crafted string may disclose memory contents or crash the process.

What's Changed

* Bug #20403: TestResolvDNS#test_query_ipv4_address_truncated_tcp_fallback
  can flake if TCP port is in use

* JIT: Reject --{y,z}jit-exec-mem-size values that overflow the u32
  reservation size by st0012 · Pull Request #19720

* Fix memoization for the /(...){0}/ case by makenowjust · Pull Request
  #13169

* Bug #21671: Rails CI raises Assertion Failed:
  rbimpl_rstring_getmem:RB_TYPE_P(str, RUBY_T_STRING): actual type: 26 with
  "-DENABLE_PATH_CHECK=0 -DRUBY_DEBUG=1" enabled

* Bug #22461: Use-after-free in String formatting with wide character
  encodings

* Bug #22517: Some String methods return a UTF-16/32 string without room for
  its terminator

* Bug #21304: heap-use-after-free of Array#hash via mutating hash method

* 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

* Check the result of compile_length_tree() at every call site by mame ·
  Pull Request #19505

* Skip whitespace in rb_memory_view_parse_item_format fill pass by
  fuzzyrichie · Pull Request #19807

* Bug #22537: IO#gets(nil, limit) stops right after a 0xFF byte

* Bug #22458: Time#strftime out-of-bound access

* 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.335 -r1.336 pkgsrc/lang/ruby/rubyversion.mk
cvs rdiff -u -r1.21 -r1.22 pkgsrc/lang/ruby33/distinfo
cvs rdiff -u -r1.3 -r1.4 pkgsrc/lang/ruby33/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.335 pkgsrc/lang/ruby/rubyversion.mk:1.336
--- pkgsrc/lang/ruby/rubyversion.mk:1.335       Sun Oct 25 14:35:55 2026
+++ pkgsrc/lang/ruby/rubyversion.mk     Fri Nov 20 14:34:33 2026
@@ -1,4 +1,4 @@
-# $NetBSD: rubyversion.mk,v 1.335 2026/10/25 14:35:55 taca Exp $
+# $NetBSD: rubyversion.mk,v 1.336 2026/11/20 14:34:33 taca Exp $
 #
 
 # This file determines which Ruby version is used as a dependency for
@@ -212,7 +212,7 @@ RUBY_VERSION_REQD?= ${PKGNAME_REQD:C/rub
 .endif
 
 # current supported Ruby's version
-RUBY33_VERSION=                3.3.13
+RUBY33_VERSION=                3.3.14
 RUBY34_VERSION=                3.4.12
 RUBY40_VERSION=                4.0.9
 

Index: pkgsrc/lang/ruby33/distinfo
diff -u pkgsrc/lang/ruby33/distinfo:1.21 pkgsrc/lang/ruby33/distinfo:1.22
--- pkgsrc/lang/ruby33/distinfo:1.21    Sun Oct 25 14:35:56 2026
+++ pkgsrc/lang/ruby33/distinfo Fri Nov 20 14:34:33 2026
@@ -1,10 +1,10 @@
-$NetBSD: distinfo,v 1.21 2026/10/25 14:35:56 taca Exp $
+$NetBSD: distinfo,v 1.22 2026/11/20 14:34:33 taca Exp $
 
-BLAKE2s (ruby-3.3.13.tar.xz) = 167e653ccd74fb36883eafc63d8f53a406c7ad84248e840a31bcd398ed6cf804
-SHA512 (ruby-3.3.13.tar.xz) = 906e270e2629b44e469265e08d693f996b467a3fc165fbdb9b8f6f7b37effe4fdae9d4968e72a809d1381e35279cb10b6630d40fac31a634981deb4c30ff325c
-Size (ruby-3.3.13.tar.xz) = 15878972 bytes
+BLAKE2s (ruby-3.3.14.tar.xz) = ff0391113d1ae5afb24f845513bef6c4fd98311a8442ab337cf0f78566b58380
+SHA512 (ruby-3.3.14.tar.xz) = 5d690fdb53a0e2f9c0d9c536d037c199e4ea57a41849845c13724059129a895474f7cba4c9c071f3a1ec7aae81ad7560888a64525b24347eca1f2c7e15d0ff9b
+Size (ruby-3.3.14.tar.xz) = 16025548 bytes
 SHA1 (patch-common.mk) = c23eed58427b2fd4ba8fdb3692f609701a666c6d
-SHA1 (patch-configure) = 031792cb999e3624236f8afc3363492b437e35d7
+SHA1 (patch-configure) = 1b18d1bb70646ee4eb1303261ade5bfa6b7d2225
 SHA1 (patch-ext_openssl_openssl__missing.h) = 3f8d79736fd14806dfaf76e333eec63ff3ff5890
 SHA1 (patch-include_ruby_internal_static__assert.h) = 7d5c3ae7ff674b9b34639924fcf08237164de9f8
 SHA1 (patch-lib_mkmf.rb) = 4a3cd18548dbdf43a13695d4e76f817c0347e335

Index: pkgsrc/lang/ruby33/patches/patch-configure
diff -u pkgsrc/lang/ruby33/patches/patch-configure:1.3 pkgsrc/lang/ruby33/patches/patch-configure:1.4
--- pkgsrc/lang/ruby33/patches/patch-configure:1.3      Sat Jul 26 06:25:23 2025
+++ pkgsrc/lang/ruby33/patches/patch-configure  Fri Nov 20 14:34:33 2026
@@ -1,13 +1,13 @@
-$NetBSD: patch-configure,v 1.3 2025/07/26 06:25:23 taca Exp $
+$NetBSD: patch-configure,v 1.4 2026/11/20 14:34:33 taca Exp $
 
 * Ignore VCS.
 * Retain _XOPEN_SOURCE, fixes eventmachine.
 * Explictly stop display with color.
 * Remove bogus MJIT disabling on SunOS.
 
---- configure.orig     2023-12-11 07:06:05.000000000 +0000
+--- configure.orig     2026-11-18 21:52:33.000000000 +0000
 +++ configure
-@@ -8639,7 +8639,7 @@ else $as_nop
+@@ -8862,7 +8862,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; }
-@@ -10705,6 +10705,7 @@ fi
+@@ -11043,6 +11043,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}"
-@@ -12604,18 +12605,6 @@ then :
+@@ -13032,18 +13033,6 @@ then :
       CPPFLAGS="$CPPFLAGS ${rb_opt}" ;;
  esac
        done
@@ -43,7 +43,7 @@ $NetBSD: patch-configure,v 1.3 2025/07/2
  
  fi
  
-@@ -25357,7 +25350,9 @@ else
+@@ -26054,7 +26043,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>
-@@ -31805,8 +31802,10 @@ fi
+@@ -32758,8 +32749,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 :
  
-@@ -31899,9 +31898,10 @@ esac
+@@ -32854,9 +32847,10 @@ esac
         ;; #(
    darwin*) :
  
@@ -79,7 +79,7 @@ $NetBSD: patch-configure,v 1.3 2025/07/2
        if test "$load_relative" = yes
  then :
  
-@@ -32117,7 +32122,7 @@ then :
+@@ -33080,7 +33074,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${rpathflag}"
      LIBRUBYARG_SHARED="$LIBRUBY_RPATHFLAGS $LIBRUBYARG_SHARED"
-@@ -34246,7 +34251,7 @@ guard=INCLUDE_RUBY_CONFIG_H
+@@ -35228,7 +35222,7 @@ guard=INCLUDE_RUBY_CONFIG_H
  (
    if test "x$CONFIGURE_TTY" = xyes
  then :
 -  color=--color
 +  color=--color=never
- else $as_nop
-   color=
- fi
-@@ -35485,21 +35490,7 @@ which seems to be undefined.  Please mak
+ else case e in #(
+   e) color= ;;
+ esac
+@@ -36477,22 +36471,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