Merge pull request #7824 from github/hmac/constantize

This commit is contained in:
Harry Maclean
2022-02-09 08:30:21 +13:00
committed by GitHub
5 changed files with 48 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
| active_support.rb:1:1:1:22 | call to constantize | active_support.rb:1:1:1:10 | "Foo::Bar" |
| active_support.rb:3:1:3:13 | call to constantize | active_support.rb:3:1:3:1 | call to a |

View File

@@ -0,0 +1,5 @@
import codeql.ruby.frameworks.ActiveSupport
query DataFlow::Node constantizeCalls(ActiveSupport::CoreExtensions::String::Constantize c) {
result = c.getCode()
}

View File

@@ -0,0 +1,3 @@
"Foo::Bar".constantize
a.constantize