Skip to content

Commit

Permalink
(Multiple languages) Use slightly clearer wording
Browse files Browse the repository at this point in the history
  • Loading branch information
owen-mc committed Jan 20, 2025
1 parent 7ff9fcb commit da86668
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Unfortunately this will only give the expression in the argument, not the values
and DataFlow::localFlow(DataFlow::exprNode(src), DataFlow::exprNode(call.getArgument(0)))
select src
Then we can make the source more specific, for example an access to a public parameter. This query finds instances where a public parameter is used to open a file:
To restrict sources to only an access to a public parameter, rather than arbitrary expressions, we can modify this query as follows:

.. code-block:: ql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Unfortunately, this only gives the expression in the argument, not the values wh
DataFlow::localFlow(DataFlow::exprNode(src), DataFlow::exprNode(call.getArgument(0)))
select src
Then we can make the source more specific, for example an access to a parameter. This query finds where a public parameter is passed to ``os.Open(..)``:
To restrict sources to only parameters, rather than arbitrary expressions, we can modify this query as follows:

.. code-block:: ql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Unfortunately, this only gives the expression in the argument, not the values wh
DataFlow::localFlow(DataFlow::exprNode(src), DataFlow::exprNode(call.getArgument(0)))
select src
Then we can make the source more specific, for example an access to a public parameter. This query finds where a public parameter is passed to ``new FileReader(..)``:
To restrict sources to only an access to a public parameter, rather than arbitrary expressions, we can modify this query as follows:

.. code-block:: ql
Expand Down

0 comments on commit da86668

Please sign in to comment.