This patch was backported from Ruby 2.7.8. Backported from: <6855779d58> Resolves: CVE-2023-28755
6855779d58