Rust: Minor tweaks

This commit is contained in:
Simon Friis Vindum
2024-12-05 11:53:12 +01:00
parent 1f4e7d1f37
commit 3061d4a516
2 changed files with 3 additions and 3 deletions

View File

@@ -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() }

View File

@@ -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