Skip to content

Commit c50175b

Browse files
committed
Crypto: ql-for-ql alert fixes.
1 parent 22c0f9f commit c50175b

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

java/ql/src/experimental/quantum/Examples/BadMacOrder.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ predicate isDecryptToMacFlow(ArtifactFlow::PathNode src, ArtifactFlow::PathNode
1818
}
1919

2020
predicate isDecryptToMacNode(Crypto::ArtifactNode node) {
21-
exists(ArtifactFlow::PathNode src, ArtifactFlow::PathNode sink |
22-
isDecryptToMacFlow(src, sink) and
21+
exists(ArtifactFlow::PathNode src |
22+
isDecryptToMacFlow(src, _) and
2323
node.asElement() = src.getNode().asExpr()
2424
)
2525
}

java/ql/src/experimental/quantum/Examples/BadMacOrderDecryptToMac.ql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
*/
1010

1111
import java
12-
import experimental.quantum.Language
1312
import ArtifactFlow::PathGraph
1413
import BadMacOrder
1514

java/ql/src/experimental/quantum/Examples/BadMacOrderMacOnEncryptPlaintext.ql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
*/
1010

1111
import java
12-
import experimental.quantum.Language
1312
import BadMacOrder
1413
import PlaintextUseAsMacAndCipherInputFlow::PathGraph
1514

0 commit comments

Comments
 (0)