mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Crypto: Fix QL-for-QL alert and auto-format
This commit is contained in:
@@ -115,7 +115,7 @@ private class ConstantDataSourceLiteral extends Crypto::GenericConstantSourceIns
|
||||
|
||||
private class ConstantDataSourceArrayInitializer extends Crypto::GenericConstantSourceInstance instanceof ArrayInit
|
||||
{
|
||||
ConstantDataSourceArrayInitializer() { exists(Literal l | this.getAnInit() = l) }
|
||||
ConstantDataSourceArrayInitializer() { this.getAnInit() instanceof Literal }
|
||||
|
||||
override DataFlow::Node getOutputNode() { result.asExpr() = this }
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ class NonAESGCMAlgorithmNode extends Crypto::KeyOperationAlgorithmNode {
|
||||
}
|
||||
|
||||
from Crypto::KeyOperationNode op, Crypto::KeyOperationOutputNode codeNode
|
||||
where op.getAKnownAlgorithm() instanceof NonAESGCMAlgorithmNode and
|
||||
where
|
||||
op.getAKnownAlgorithm() instanceof NonAESGCMAlgorithmNode and
|
||||
codeNode = op.getAnOutputArtifact()
|
||||
select op, "Non-AES-GCM instance."
|
||||
Reference in New Issue
Block a user