Skip to content

Commit 957a5fd

Browse files
committed
Rust: Exclude range start and end from field taint steps
1 parent 1af42ec commit 957a5fd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

rust/ql/lib/codeql/rust/frameworks/stdlib/core.model.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,9 @@ extensions:
7474
- ["core::ptr::write_bytes", "Argument[0]", "pointer-access", "manual"]
7575
- ["core::ptr::write_unaligned", "Argument[0]", "pointer-access", "manual"]
7676
- ["core::ptr::write_volatile", "Argument[0]", "pointer-access", "manual"]
77+
- addsTo:
78+
pack: codeql/rust-all
79+
extensible: excludeFieldTaintStep
80+
data:
81+
- ["core::ops::range::RangeInclusive::start"]
82+
- ["core::ops::range::RangeInclusive::end"]

0 commit comments

Comments
 (0)