Skip to content

Commit 37bcff5

Browse files
authored
Fix typo in quark script for CWE-780 (#33)
1 parent a6ae41c commit 37bcff5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CWE-780/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ ruleInstance = Rule(RULE_PATH)
1616
quarkResult = runQuarkAnalysis(SAMPLE_PATH, ruleInstance)
1717

1818
for useCryptographicAlgo in quarkResult.behaviorOccurList:
19-
2019
methodCaller = useCryptographicAlgo.methodCaller
2120

22-
if useCryptographicAlgor.hasString("RSA") and \
23-
not useCryptographicAlgo.hasString("OAEP"):
21+
if useCryptographicAlgo.hasString(
22+
"RSA"
23+
) and not useCryptographicAlgo.hasString("OAEP"):
2424
print(f"CWE-780 is detected in method, {methodCaller.fullName}")
2525
```
2626

0 commit comments

Comments
 (0)