Skip to content

Commit

Permalink
Rust: Simplify QL slightly.
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffw0 committed Jan 23, 2025
1 parent 4214c83 commit 613a165
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rust/ql/src/queries/security/CWE-312/CleartextLogging.ql
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ module CleartextLoggingConfig implements DataFlow::ConfigSig {

predicate isAdditionalFlowStep(Node node1, Node node2) {
// flow from `a` to `&a`
node2.(Node::ExprNode).asExpr().getExpr().(RefExpr).getExpr() =
node1.(Node::ExprNode).asExpr().getExpr()
node2.asExpr().getExpr().(RefExpr).getExpr() = node1.asExpr().getExpr()
}

predicate allowImplicitRead(DataFlow::Node node, DataFlow::ContentSet c) {
Expand Down

0 comments on commit 613a165

Please sign in to comment.