зеркало из https://github.com/github/codeql.git
Merge pull request #15203 from pwntester/patch-3
Ruby: Update Kernel.qll to include `Object.send` aliases
This commit is contained in:
Коммит
ef8ca55d92
|
@ -43,7 +43,9 @@ module Kernel {
|
|||
* ```
|
||||
*/
|
||||
private predicate isPublicKernelMethod(string method) {
|
||||
method in ["class", "clone", "frozen?", "tap", "then", "yield_self", "send"]
|
||||
method in [
|
||||
"class", "clone", "frozen?", "tap", "then", "yield_self", "send", "public_send", "__send__"
|
||||
]
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -167,7 +169,7 @@ module Kernel {
|
|||
* ```
|
||||
*/
|
||||
class SendCallCodeExecution extends CodeExecution::Range, KernelMethodCall {
|
||||
SendCallCodeExecution() { this.getMethodName() = "send" }
|
||||
SendCallCodeExecution() { this.getMethodName() = ["send", "public_send", "__send__"] }
|
||||
|
||||
override DataFlow::Node getCode() { result = this.getArgument(0) }
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче