Skip to content

Commit 0774e98

Browse files
RasmusWLyoff
andauthored
Python: Apply suggestions from code review
Co-authored-by: yoff <[email protected]>
1 parent 6f29b01 commit 0774e98

File tree

1 file changed

+2
-2
lines changed
  • python/ql/src/semmle/python/frameworks

1 file changed

+2
-2
lines changed

python/ql/src/semmle/python/frameworks/Rsa.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ private module Rsa {
7171
// hashing part
7272
exists(StrConst str, DataFlow::Node hashNameArg |
7373
hashNameArg in [this.getArg(2), this.getArgByName("hash_method")] and
74-
DataFlow::exprNode(str).(DataFlow::LocalSourceNode).flowsTo(hashNameArg) and
74+
DataFlow::exprNode(str) = hashNameArg.getALocalSource() and
7575
result.matchesName(str.getText())
7676
)
7777
}
@@ -114,7 +114,7 @@ private module Rsa {
114114
override Cryptography::CryptographicAlgorithm getAlgorithm() {
115115
exists(StrConst str, DataFlow::Node hashNameArg |
116116
hashNameArg in [this.getArg(1), this.getArgByName("method_name")] and
117-
DataFlow::exprNode(str).(DataFlow::LocalSourceNode).flowsTo(hashNameArg) and
117+
DataFlow::exprNode(str) = hashNameArg.getALocalSource() and
118118
result.matchesName(str.getText())
119119
)
120120
}

0 commit comments

Comments
 (0)