mirror of
https://github.com/github/codeql.git
synced 2026-04-19 14:04:09 +02:00
Rust: Make QL-for-QL happy.
This commit is contained in:
@@ -38,7 +38,7 @@ string describeAlgorithm(Cryptography::CryptographicAlgorithm alg) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a feature of cryptographic operation `operation`.
|
||||
* Gets a feature of cryptographic operation `op`.
|
||||
*/
|
||||
string getOperationFeature(Cryptography::CryptographicOperation op) {
|
||||
result = "inputs:" + strictcount(op.getAnInput()).toString() or
|
||||
@@ -46,7 +46,7 @@ string getOperationFeature(Cryptography::CryptographicOperation op) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a description of cryptographic operation `operation`.
|
||||
* Gets a description of cryptographic operation `op`.
|
||||
*/
|
||||
string describeOperation(Cryptography::CryptographicOperation op) {
|
||||
result = describeAlgorithm(op.getAlgorithm()) + " " + concat(getOperationFeature(op), ", ")
|
||||
|
||||
@@ -14,4 +14,4 @@ import codeql.rust.dataflow.DataFlow
|
||||
import Stats
|
||||
|
||||
from DataFlow::Node n
|
||||
select n, "sink for " + strictconcat(getAQuerySinkKind(n), ", ")
|
||||
select n, "Sink for " + strictconcat(getAQuerySinkKind(n), ", ")
|
||||
|
||||
@@ -9,7 +9,7 @@ private import codeql.rust.dataflow.DataFlow
|
||||
private import codeql.rust.dataflow.TaintTracking
|
||||
|
||||
/**
|
||||
* A taint configuration for taint reach (flow to any node from any modelled source).
|
||||
* A taint configuration for taint reach (flow to any node from any modeled source).
|
||||
*/
|
||||
private module TaintReachConfig implements DataFlow::ConfigSig {
|
||||
predicate isSource(DataFlow::Node node) { node instanceof ActiveThreatModelSource }
|
||||
|
||||
Reference in New Issue
Block a user