diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-03-31 03:02:12 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-03-31 03:02:12 +0300 |
commit | f5ed5550433a5fedd128542680a94a2c9407919e (patch) | |
tree | 1223599a644fdbfe2583b5c207a33a565e62e662 /config/initializers | |
parent | 1153e17b2d34c50834251038269ac11f18219bdf (diff) |
Add latest changes from gitlab-org/security/gitlab@14-9-stable-ee
Diffstat (limited to 'config/initializers')
-rw-r--r-- | config/initializers/rdoc_segfault_patch.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/config/initializers/rdoc_segfault_patch.rb b/config/initializers/rdoc_segfault_patch.rb new file mode 100644 index 00000000000..2494d7ef421 --- /dev/null +++ b/config/initializers/rdoc_segfault_patch.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +# Monkey patch of RDoc to prevent Ruby segfault due to +# stack buffer overflow Ruby bug - +# https://bugs.ruby-lang.org/issues/16376 +# +# Safe to remove once GitLab upgrades to Ruby 3.0 +# or once the fix is backported to 2.7.x and +# GitLab upgrades. +# https://gitlab.com/gitlab-org/gitlab/-/issues/351179 +class RDoc::Markup::ToHtml + def parseable?(_) + false + end +end + +class RDoc::Markup::Verbatim + def ruby? + false + end +end |