mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
Merge pull request #7824 from github/hmac/constantize
This commit is contained in:
@@ -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 |
|
||||
5
ruby/ql/test/library-tests/frameworks/ActiveSupport.ql
Normal file
5
ruby/ql/test/library-tests/frameworks/ActiveSupport.ql
Normal file
@@ -0,0 +1,5 @@
|
||||
import codeql.ruby.frameworks.ActiveSupport
|
||||
|
||||
query DataFlow::Node constantizeCalls(ActiveSupport::CoreExtensions::String::Constantize c) {
|
||||
result = c.getCode()
|
||||
}
|
||||
3
ruby/ql/test/library-tests/frameworks/active_support.rb
Normal file
3
ruby/ql/test/library-tests/frameworks/active_support.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
"Foo::Bar".constantize
|
||||
|
||||
a.constantize
|
||||
Reference in New Issue
Block a user