-
- Downloads
Merge branch '24570-use-re2-for-user-supplied-regexp-9-3' into 'security-9-3'
24570 use re2 for user supplied regexp 9 3 See merge request !2129
Showing
- Gemfile 3 additions, 0 deletionsGemfile
- Gemfile.lock 2 additions, 0 deletionsGemfile.lock
- lib/gitlab/ci/trace/stream.rb 2 additions, 2 deletionslib/gitlab/ci/trace/stream.rb
- lib/gitlab/route_map.rb 6 additions, 2 deletionslib/gitlab/route_map.rb
- lib/gitlab/untrusted_regexp.rb 53 additions, 0 deletionslib/gitlab/untrusted_regexp.rb
- spec/lib/gitlab/ci/trace/stream_spec.rb 7 additions, 0 deletionsspec/lib/gitlab/ci/trace/stream_spec.rb
- spec/lib/gitlab/route_map_spec.rb 13 additions, 0 deletionsspec/lib/gitlab/route_map_spec.rb
- spec/lib/gitlab/untrusted_regexp_spec.rb 80 additions, 0 deletionsspec/lib/gitlab/untrusted_regexp_spec.rb
- spec/support/malicious_regexp_shared_examples.rb 8 additions, 0 deletionsspec/support/malicious_regexp_shared_examples.rb
Loading
| @@ -163,6 +163,9 @@ gem 'rainbow', '~> 2.2' | Loading
| @@ -163,6 +163,9 @@ gem 'rainbow', '~> 2.2' |
# GitLab settings | # GitLab settings | ||
gem 'settingslogic', '~> 2.0.9' | gem 'settingslogic', '~> 2.0.9' | ||
# Linear-time regex library for untrusted regular expressions | |||
gem 're2', '~> 1.0.0' | |||
# Misc | # Misc | ||
gem 'version_sorter', '~> 2.1.0' | gem 'version_sorter', '~> 2.1.0' | ||
Loading
| Loading
|
lib/gitlab/untrusted_regexp.rb
0 → 100644
spec/lib/gitlab/untrusted_regexp_spec.rb
0 → 100644
Please register or sign in to comment