From 478f56b82f316fc0d05a4f5c968fb0ca6287a59c Mon Sep 17 00:00:00 2001 From: Geoffrey White <40627776+geoffw0@users.noreply.github.com> Date: Thu, 26 Feb 2026 12:17:10 +0000 Subject: [PATCH] Rust: Move the existing 'alloc' neutral models into alloc.model.yml. --- .../lib/codeql/rust/frameworks/stdlib/alloc.model.yml | 10 +++++++++- .../lib/codeql/rust/frameworks/stdlib/core.model.yml | 4 ---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/rust/ql/lib/codeql/rust/frameworks/stdlib/alloc.model.yml b/rust/ql/lib/codeql/rust/frameworks/stdlib/alloc.model.yml index 74432649bd8..8859bd1c336 100644 --- a/rust/ql/lib/codeql/rust/frameworks/stdlib/alloc.model.yml +++ b/rust/ql/lib/codeql/rust/frameworks/stdlib/alloc.model.yml @@ -55,4 +55,12 @@ extensions: - ["::add", "Argument[0].Reference", "ReturnValue", "taint", "manual"] # Vec - ["alloc::vec::from_elem", "Argument[0]", "ReturnValue.Element", "value", "manual"] - - ["::deref", "Argument[self].Reference.Element", "ReturnValue.Reference.Element", "value", "manual"] \ No newline at end of file + - ["::deref", "Argument[self].Reference.Element", "ReturnValue.Reference.Element", "value", "manual"] + - addsTo: + pack: codeql/rust-all + extensible: neutralModel + data: + - ["::from", "sink", "manual"] + - ["::from", "sink", "manual"] + - ["::from", "sink", "manual"] + - ["::from", "sink", "manual"] diff --git a/rust/ql/lib/codeql/rust/frameworks/stdlib/core.model.yml b/rust/ql/lib/codeql/rust/frameworks/stdlib/core.model.yml index 5829d891558..11a90cbe8ba 100644 --- a/rust/ql/lib/codeql/rust/frameworks/stdlib/core.model.yml +++ b/rust/ql/lib/codeql/rust/frameworks/stdlib/core.model.yml @@ -165,11 +165,7 @@ extensions: extensible: neutralModel data: - ["::map", "sink", "manual"] - - ["::from", "sink", "manual"] - - ["::from", "sink", "manual"] - ["::from", "sink", "manual"] - - ["::from", "sink", "manual"] - - ["::from", "sink", "manual"] - addsTo: pack: codeql/rust-all extensible: excludeFieldTaintStep