Fix HTTP response splitting in CGI. Fix ReDos vulnerability in URI. Fix ReDos vulnerability in Time. Make RDoc soft dependency in IRB. Rebased from latest Ruby 3.1 present in Fedora 37, commit: 4048f893da1d56ed65667e7f15405224653c83e2 Resolves: RHEL-5584 Resolves: CVE-2021-33621 Resolves: CVE-2023-28755 Resolves: CVE-2023-36617 Resolves: CVE-2023-28756 Resolves: RHEL-5615
24 lines
756 B
Diff
24 lines
756 B
Diff
From bffadcd6d46ccfccade79ce0efb60ced8eac4483 Mon Sep 17 00:00:00 2001
|
|
From: Peter Zhu <peter@peterzhu.ca>
|
|
Date: Thu, 6 Apr 2023 13:35:25 -0400
|
|
Subject: [PATCH] Add guard to compaction test in WeakMap
|
|
|
|
Some platforms don't support compaction, so we should skip this test.
|
|
---
|
|
test/ruby/test_weakmap.rb | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/test/ruby/test_weakmap.rb b/test/ruby/test_weakmap.rb
|
|
index c72e7310db101..7fc956dfae474 100644
|
|
--- a/test/ruby/test_weakmap.rb
|
|
+++ b/test/ruby/test_weakmap.rb
|
|
@@ -178,6 +178,8 @@ def test_no_memory_leak
|
|
end
|
|
|
|
def test_compaction_bug_19529
|
|
+ omit "compaction is not supported on this platform" unless GC.respond_to?(:compact)
|
|
+
|
|
obj = Object.new
|
|
100.times do |i|
|
|
GC.compact
|