Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 14ce0ea

Browse files
committed
spelling: cryptographic
Signed-off-by: Josh Soref <[email protected]>
1 parent bb81487 commit 14ce0ea

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

csharp/ql/lib/experimental/code/csharp/Cryptography/NonCryptographicHashes.qll

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ import csharp
1010
private import DataFlow
1111
private import semmle.code.csharp.dataflow.TaintTracking2
1212

13-
predicate maybeANonCryptogrphicHash(Callable callable, Variable v, Expr xor, Expr mul, LoopStmt loop) {
13+
predicate maybeANonCryptographicHash(
14+
Callable callable, Variable v, Expr xor, Expr mul, LoopStmt loop
15+
) {
1416
callable = loop.getEnclosingCallable() and
1517
(
1618
maybeUsedInFnvFunction(v, xor, mul, loop) or
@@ -75,7 +77,7 @@ private predicate maybeUsedInElfHashFunction(Variable v, Operation xor, Operatio
7577
*/
7678
predicate isCallableAPotentialNonCryptographicHashFunction(Callable callable, Parameter param) {
7779
exists(Variable v, Expr op1, Expr op2, LoopStmt loop |
78-
maybeANonCryptogrphicHash(callable, v, op1, op2, loop) and
80+
maybeANonCryptographicHash(callable, v, op1, op2, loop) and
7981
callable.getAParameter() = param and
8082
exists(ParameterNode p, ExprNode n |
8183
p.getParameter() = param and

0 commit comments

Comments
 (0)