mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust: Address PR feedback
This commit is contained in:
@@ -57,13 +57,14 @@ module RustTaintTracking implements InputSig<Location, RustDataFlow> {
|
|||||||
s instanceof Builtins::NumericType or
|
s instanceof Builtins::NumericType or
|
||||||
s instanceof Builtins::Bool or
|
s instanceof Builtins::Bool or
|
||||||
s instanceof Builtins::Char
|
s instanceof Builtins::Char
|
||||||
)
|
) and
|
||||||
|
not t.(Type::EnumType).getEnum().isFieldless()
|
||||||
) and
|
) and
|
||||||
not excludedTaintStepContent(c) and
|
not excludedTaintStepContent(c)
|
||||||
not TypeInference::inferType(succ.asExpr()).(Type::EnumType).getEnum().isFieldless()
|
|
||||||
)
|
)
|
||||||
or
|
or
|
||||||
// Let all read steps (including those from flow summaries and those that
|
// In addition to the above, for element and reference content we let
|
||||||
|
// _all_ read steps (including those from flow summaries and those that
|
||||||
// result in small primitive types) give rise to taint steps.
|
// result in small primitive types) give rise to taint steps.
|
||||||
exists(SingletonContentSet cs | RustDataFlow::readStep(pred, cs, succ) |
|
exists(SingletonContentSet cs | RustDataFlow::readStep(pred, cs, succ) |
|
||||||
cs.getContent() instanceof ElementContent
|
cs.getContent() instanceof ElementContent
|
||||||
|
|||||||
Reference in New Issue
Block a user