Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ruby/ql/lib/codeql/ruby/frameworks/ActiveSupport.qll
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ module ActiveSupport {
* `Object#try!` behaves similarly but raises `NoMethodError` if the
* receiver is not `nil` and does not respond to the method.
*/
class TryCallCodeExecution extends CodeExecution::Range, DataFlow::CallNode {
class TryCallCodeExecution extends CodeExecution::Range instanceof DataFlow::CallNode {
TryCallCodeExecution() {
this.asExpr().getExpr() instanceof UnknownMethodCall and
this.getMethodName() = ["try", "try!"]
}

override DataFlow::Node getCode() { result = this.getArgument(0) }
override DataFlow::Node getCode() { result = super.getArgument(0) }

override predicate runsArbitraryCode() { none() }
}
Expand Down