Skip to content

Commit 040e566

Browse files
committed
Ruby: add getAValueReachingRhs
1 parent 17dd5cd commit 040e566

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ruby/ql/lib/codeql/ruby/ApiGraphs.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ module API {
4848
*/
4949
DataFlow::Node getARhs() { Impl::def(this, result) }
5050

51+
/**
52+
* Gets a data-flow node that may interprocedurally flow to the value escaping into this API component.
53+
*/
54+
DataFlow::Node getAValueReachingRhs() { result = Impl::trackDefNode(this.getARhs()) }
55+
5156
/**
5257
* Gets a call to a method on the receiver represented by this API component.
5358
*/

0 commit comments

Comments
 (0)