mirror of
https://github.com/github/codeql.git
synced 2026-04-23 15:55:18 +02:00
Rust: Minor tweaks
This commit is contained in:
@@ -624,7 +624,7 @@ private class StructFieldContent extends Content, TStructFieldContent {
|
||||
}
|
||||
|
||||
/**
|
||||
* Content stored at an element in an array.
|
||||
* An element in an array.
|
||||
*/
|
||||
final class ArrayElementContent extends Content, TArrayElement {
|
||||
ArrayElementContent() { this = TArrayElement() }
|
||||
|
||||
@@ -39,9 +39,9 @@ module RustTaintTracking implements InputSig<Location, RustDataFlow> {
|
||||
// we also allow taint to flow out of a tainted collection. This is
|
||||
// needed in order to support taint-tracking configurations where the
|
||||
// source is a collection.
|
||||
exists(ContentSet cs |
|
||||
exists(SingletonContentSet cs |
|
||||
RustDataFlow::readStep(pred, cs, succ) and
|
||||
cs.(SingletonContentSet).getContent() instanceof ArrayElementContent
|
||||
cs.getContent() instanceof ArrayElementContent
|
||||
)
|
||||
)
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user