mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
add transform method that is an alias for to_ruby
This commit is contained in:
@@ -41,8 +41,8 @@ private class YamlParseStep extends AdditionalTaintStep {
|
||||
exists(API::Node parseSuccessors | parseSuccessors = yamlNode() |
|
||||
succ =
|
||||
[
|
||||
parseSuccessors.getMethod("to_ruby").getReturn().asSource(),
|
||||
parseSuccessors.getMethod("to_ruby").getReturn().getAnElement().asSource()
|
||||
parseSuccessors.getMethod(["to_ruby", "transform"]).getReturn().asSource(),
|
||||
parseSuccessors.getMethod(["to_ruby", "transform"]).getReturn().getAnElement().asSource()
|
||||
] and
|
||||
pred = parseSuccessors.asSource()
|
||||
)
|
||||
|
||||
@@ -105,7 +105,7 @@ module UnsafeDeserialization {
|
||||
exists(API::Node toRubyReceiver |
|
||||
toRubyReceiver = yamlNode() and this = toRubyReceiver.asSource()
|
||||
|
|
||||
exists(toRubyReceiver.getMethod("to_ruby"))
|
||||
exists(toRubyReceiver.getMethod(["to_ruby", "transform"]))
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user