diff --git a/rust/ql/lib/codeql/rust/dataflow/internal/DataFlowConsistency.qll b/rust/ql/lib/codeql/rust/dataflow/internal/DataFlowConsistency.qll index 909d275dc11b..d544ff888d56 100644 --- a/rust/ql/lib/codeql/rust/dataflow/internal/DataFlowConsistency.qll +++ b/rust/ql/lib/codeql/rust/dataflow/internal/DataFlowConsistency.qll @@ -44,24 +44,3 @@ private module Input implements InputSig { import MakeConsistency private import codeql.rust.dataflow.internal.ModelsAsData - -query predicate missingMadSummaryCanonicalPath(string crate, string path, Addressable a) { - summaryModel(crate, path, _, _, _, _, _) and - a.getCrateOrigin() = crate and - a.getExtendedCanonicalPath() = path and - not exists(a.getCanonicalPath()) -} - -query predicate missingMadSourceCanonicalPath(string crate, string path, Addressable a) { - sourceModel(crate, path, _, _, _, _) and - a.getCrateOrigin() = crate and - a.getExtendedCanonicalPath() = path and - not exists(a.getCanonicalPath()) -} - -query predicate missingMadSinkCanonicalPath(string crate, string path, Addressable a) { - sinkModel(crate, path, _, _, _, _) and - a.getCrateOrigin() = crate and - a.getExtendedCanonicalPath() = path and - not exists(a.getCanonicalPath()) -} diff --git a/rust/ql/lib/codeql/rust/dataflow/internal/FlowSummaryImpl.qll b/rust/ql/lib/codeql/rust/dataflow/internal/FlowSummaryImpl.qll index d10c342c6c5d..4eeac1d640ac 100644 --- a/rust/ql/lib/codeql/rust/dataflow/internal/FlowSummaryImpl.qll +++ b/rust/ql/lib/codeql/rust/dataflow/internal/FlowSummaryImpl.qll @@ -31,6 +31,11 @@ module Input implements InputSig { crate = "" ) } + + /** Holds if the associated call resolves to `path`. */ + final predicate callResolvesTo(string path) { + path = this.getCall().getStaticTarget().(Addressable).getCanonicalPath() + } } abstract class SourceBase extends SourceSinkBase { } diff --git a/rust/ql/lib/codeql/rust/dataflow/internal/ModelsAsData.qll b/rust/ql/lib/codeql/rust/dataflow/internal/ModelsAsData.qll index 00ac7058cc90..bc1f58824b32 100644 --- a/rust/ql/lib/codeql/rust/dataflow/internal/ModelsAsData.qll +++ b/rust/ql/lib/codeql/rust/dataflow/internal/ModelsAsData.qll @@ -4,21 +4,19 @@ * The extensible relations have the following columns: * * - Sources: - * `crate; path; output; kind; provenance` + * `path; output; kind; provenance` * - Sinks: - * `crate; path; input; kind; provenance` + * `path; input; kind; provenance` * - Summaries: - * `crate; path; input; output; kind; provenance` + * `path; input; output; kind; provenance` * * The interpretation of a row is similar to API-graphs with a left-to-right * reading. * - * 1. The `crate` column selects a crate. - * 2. The `path` column selects a function with the given canonical path within - * the crate. - * 3. The `input` column specifies how data enters the element selected by the - * first 2 columns, and the `output` column specifies how data leaves the - * element selected by the first 2 columns. Both `input` and `output` are + * 1. The `path` column selects a function with the given canonical path. + * 2. The `input` column specifies how data enters the element selected by the + * first column, and the `output` column specifies how data leaves the + * element selected by the first column. Both `input` and `output` are * `.`-separated lists of "access path tokens" to resolve, starting at the * selected function. * @@ -34,12 +32,12 @@ * - `Field[t(i)]`: position `i` inside the variant/struct with canonical path `v`, for example * `Field[core::option::Option::Some(0)]`. * - `Field[i]`: the `i`th element of a tuple. - * 4. The `kind` column is a tag that can be referenced from QL to determine to + * 3. The `kind` column is a tag that can be referenced from QL to determine to * which classes the interpreted elements should be added. For example, for * sources `"remote"` indicates a default remote flow source, and for summaries * `"taint"` indicates a default additional taint step and `"value"` indicates a * globally applicable value-preserving step. - * 5. The `provenance` column is mainly used internally, and should be set to `"manual"` for + * 4. The `provenance` column is mainly used internally, and should be set to `"manual"` for * all custom models. */ @@ -50,6 +48,8 @@ private import codeql.rust.dataflow.FlowSink private import codeql.rust.elements.internal.CallExprBaseImpl::Impl as CallExprBaseImpl /** + * DEPRECATED: Do not use. + * * Holds if in a call to the function with canonical path `path`, defined in the * crate `crate`, the value referred to by `output` is a flow source of the given * `kind`. @@ -59,12 +59,27 @@ private import codeql.rust.elements.internal.CallExprBaseImpl::Impl as CallExprB * For more information on the `kind` parameter, see * https://github.com/github/codeql/blob/main/docs/codeql/reusables/threat-model-description.rst. */ -extensible predicate sourceModel( +extensible predicate sourceModelDeprecated( string crate, string path, string output, string kind, string provenance, QlBuiltins::ExtensionId madId ); /** + * Holds if in a call to the function with canonical path `path`, the value referred + * to by `output` is a flow source of the given `kind`. + * + * `output = "ReturnValue"` simply means the result of the call itself. + * + * For more information on the `kind` parameter, see + * https://github.com/github/codeql/blob/main/docs/codeql/reusables/threat-model-description.rst. + */ +extensible predicate sourceModel( + string path, string output, string kind, string provenance, QlBuiltins::ExtensionId madId +); + +/** + * DEPRECATED: Do not use. + * * Holds if in a call to the function with canonical path `path`, defined in the * crate `crate`, the value referred to by `input` is a flow sink of the given * `kind`. @@ -75,12 +90,28 @@ extensible predicate sourceModel( * * - `sql-injection`: a flow sink for SQL injection. */ -extensible predicate sinkModel( +extensible predicate sinkModelDeprecated( string crate, string path, string input, string kind, string provenance, QlBuiltins::ExtensionId madId ); /** + * Holds if in a call to the function with canonical path `path`, the value referred + * to by `input` is a flow sink of the given `kind`. + * + * For example, `input = Argument[0]` means the first argument of the call. + * + * The following kinds are supported: + * + * - `sql-injection`: a flow sink for SQL injection. + */ +extensible predicate sinkModel( + string path, string input, string kind, string provenance, QlBuiltins::ExtensionId madId +); + +/** + * DEPRECATED: Do not use. + * * Holds if in a call to the function with canonical path `path`, defined in the * crate `crate`, the value referred to by `input` can flow to the value referred * to by `output`. @@ -88,11 +119,23 @@ extensible predicate sinkModel( * `kind` should be either `value` or `taint`, for value-preserving or taint-preserving * steps, respectively. */ -extensible predicate summaryModel( +extensible predicate summaryModelDeprecated( string crate, string path, string input, string output, string kind, string provenance, QlBuiltins::ExtensionId madId ); +/** + * Holds if in a call to the function with canonical path `path`, the value referred + * to by `input` can flow to the value referred to by `output`. + * + * `kind` should be either `value` or `taint`, for value-preserving or taint-preserving + * steps, respectively. + */ +extensible predicate summaryModel( + string path, string input, string output, string kind, string provenance, + QlBuiltins::ExtensionId madId +); + /** * Holds if the given extension tuple `madId` should pretty-print as `model`. * @@ -100,27 +143,42 @@ extensible predicate summaryModel( */ predicate interpretModelForTest(QlBuiltins::ExtensionId madId, string model) { exists(string crate, string path, string output, string kind | - sourceModel(crate, path, kind, output, _, madId) and + sourceModelDeprecated(crate, path, output, kind, _, madId) and model = "Source: " + crate + "; " + path + "; " + output + "; " + kind ) or + exists(string path, string output, string kind | + sourceModel(path, output, kind, _, madId) and + model = "Source: " + path + "; " + output + "; " + kind + ) + or exists(string crate, string path, string input, string kind | - sinkModel(crate, path, kind, input, _, madId) and + sinkModelDeprecated(crate, path, input, kind, _, madId) and model = "Sink: " + crate + "; " + path + "; " + input + "; " + kind ) or + exists(string path, string input, string kind | + sinkModel(path, input, kind, _, madId) and + model = "Sink: " + path + "; " + input + "; " + kind + ) + or exists(string type, string path, string input, string output, string kind | - summaryModel(type, path, input, output, kind, _, madId) and + summaryModelDeprecated(type, path, input, output, kind, _, madId) and model = "Summary: " + type + "; " + path + "; " + input + "; " + output + "; " + kind ) + or + exists(string path, string input, string output, string kind | + summaryModel(path, input, output, kind, _, madId) and + model = "Summary: " + path + "; " + input + "; " + output + "; " + kind + ) } -private class SummarizedCallableFromModel extends SummarizedCallable::Range { +private class SummarizedCallableFromModelDeprecated extends SummarizedCallable::Range { private string crate; private string path; - SummarizedCallableFromModel() { - summaryModel(crate, path, _, _, _, _, _) and + SummarizedCallableFromModelDeprecated() { + summaryModelDeprecated(crate, path, _, _, _, _, _) and exists(CallExprBase call, Resolvable r | call.getStaticTarget() = this and r = CallExprBaseImpl::getCallResolvable(call) and @@ -133,7 +191,7 @@ private class SummarizedCallableFromModel extends SummarizedCallable::Range { string input, string output, boolean preservesValue, string model ) { exists(string kind, QlBuiltins::ExtensionId madId | - summaryModel(crate, path, input, output, kind, _, madId) and + summaryModelDeprecated(crate, path, input, output, kind, _, madId) and model = "MaD:" + madId.toString() | kind = "value" and @@ -145,35 +203,91 @@ private class SummarizedCallableFromModel extends SummarizedCallable::Range { } } -private class FlowSourceFromModel extends FlowSource::Range { +private class SummarizedCallableFromModel extends SummarizedCallable::Range { + private string path; + + SummarizedCallableFromModel() { + summaryModel(path, _, _, _, _, _) and + this.getCanonicalPath() = path + } + + override predicate propagatesFlow( + string input, string output, boolean preservesValue, string model + ) { + exists(string kind, QlBuiltins::ExtensionId madId | + summaryModel(path, input, output, kind, _, madId) and + model = "MaD:" + madId.toString() + | + kind = "value" and + preservesValue = true + or + kind = "taint" and + preservesValue = false + ) + } +} + +private class FlowSourceFromModelDeprecated extends FlowSource::Range { private string crate; private string path; - FlowSourceFromModel() { - sourceModel(crate, path, _, _, _, _) and + FlowSourceFromModelDeprecated() { + sourceModelDeprecated(crate, path, _, _, _, _) and this.callResolvesTo(crate, path) } override predicate isSource(string output, string kind, Provenance provenance, string model) { exists(QlBuiltins::ExtensionId madId | - sourceModel(crate, path, output, kind, provenance, madId) and + sourceModelDeprecated(crate, path, output, kind, provenance, madId) and model = "MaD:" + madId.toString() ) } } -private class FlowSinkFromModel extends FlowSink::Range { +private class FlowSourceFromModel extends FlowSource::Range { + private string path; + + FlowSourceFromModel() { + sourceModel(path, _, _, _, _) and + this.callResolvesTo(path) + } + + override predicate isSource(string output, string kind, Provenance provenance, string model) { + exists(QlBuiltins::ExtensionId madId | + sourceModel(path, output, kind, provenance, madId) and + model = "MaD:" + madId.toString() + ) + } +} + +private class FlowSinkFromModelDeprecated extends FlowSink::Range { private string crate; private string path; - FlowSinkFromModel() { - sinkModel(crate, path, _, _, _, _) and + FlowSinkFromModelDeprecated() { + sinkModelDeprecated(crate, path, _, _, _, _) and this.callResolvesTo(crate, path) } override predicate isSink(string input, string kind, Provenance provenance, string model) { exists(QlBuiltins::ExtensionId madId | - sinkModel(crate, path, input, kind, provenance, madId) and + sinkModelDeprecated(crate, path, input, kind, provenance, madId) and + model = "MaD:" + madId.toString() + ) + } +} + +private class FlowSinkFromModel extends FlowSink::Range { + private string path; + + FlowSinkFromModel() { + sinkModel(path, _, _, _, _) and + this.callResolvesTo(path) + } + + override predicate isSink(string input, string kind, Provenance provenance, string model) { + exists(QlBuiltins::ExtensionId madId | + sinkModel(path, input, kind, provenance, madId) and model = "MaD:" + madId.toString() ) } diff --git a/rust/ql/lib/codeql/rust/dataflow/internal/empty.model.yml b/rust/ql/lib/codeql/rust/dataflow/internal/empty.model.yml index 1a33951dfc38..1200720a0cee 100644 --- a/rust/ql/lib/codeql/rust/dataflow/internal/empty.model.yml +++ b/rust/ql/lib/codeql/rust/dataflow/internal/empty.model.yml @@ -1,16 +1,28 @@ extensions: # Make sure that the extensible model predicates have at least one definition # to avoid errors about undefined extensionals. + - addsTo: + pack: codeql/rust-all + extensible: sourceModelDeprecated + data: [] - addsTo: pack: codeql/rust-all extensible: sourceModel data: [] + - addsTo: + pack: codeql/rust-all + extensible: sinkModelDeprecated + data: [] - addsTo: pack: codeql/rust-all extensible: sinkModel data: [] + - addsTo: + pack: codeql/rust-all + extensible: summaryModelDeprecated + data: [] - addsTo: pack: codeql/rust-all extensible: summaryModel diff --git a/rust/ql/lib/codeql/rust/frameworks/async-rs.model.yml b/rust/ql/lib/codeql/rust/frameworks/async-rs.model.yml index 35ab72f7ca11..8276574e73af 100644 --- a/rust/ql/lib/codeql/rust/frameworks/async-rs.model.yml +++ b/rust/ql/lib/codeql/rust/frameworks/async-rs.model.yml @@ -1,6 +1,6 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: sourceModel + extensible: sourceModelDeprecated data: - ["repo:https://github.com/async-rs/async-std:async-std", "::connect", "ReturnValue.Future.Field[core::result::Result::Ok(0)]", "remote", "manual"] diff --git a/rust/ql/lib/codeql/rust/frameworks/futures.model.yml b/rust/ql/lib/codeql/rust/frameworks/futures.model.yml index cb311a79e6f4..b1fa17f58762 100644 --- a/rust/ql/lib/codeql/rust/frameworks/futures.model.yml +++ b/rust/ql/lib/codeql/rust/frameworks/futures.model.yml @@ -1,7 +1,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/rust-lang/futures-rs:futures-executor", "crate::local_pool::block_on", "Argument[0]", "ReturnValue", "value", "manual"] - ["repo:https://github.com/rust-lang/futures-rs:futures-util", "::new", "Argument[0]", "ReturnValue", "taint", "manual"] diff --git a/rust/ql/lib/codeql/rust/frameworks/http.model.yml b/rust/ql/lib/codeql/rust/frameworks/http.model.yml index 20da849182ed..5ad34ef53fe9 100644 --- a/rust/ql/lib/codeql/rust/frameworks/http.model.yml +++ b/rust/ql/lib/codeql/rust/frameworks/http.model.yml @@ -1,7 +1,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: sourceModel + extensible: sourceModelDeprecated data: - ["repo:https://github.com/hyperium/hyper:hyper", "::send_request", "ReturnValue.Future.Field[core::result::Result::Ok(0)]", "remote", "manual"] - ["repo:https://github.com/hyperium/hyper:hyper", "::send_request", "ReturnValue.Future.Field[core::result::Result::Ok(0)]", "remote", "manual"] diff --git a/rust/ql/lib/codeql/rust/frameworks/libc.model.yml b/rust/ql/lib/codeql/rust/frameworks/libc.model.yml index de34d13aeaa9..ce44a71732ec 100644 --- a/rust/ql/lib/codeql/rust/frameworks/libc.model.yml +++ b/rust/ql/lib/codeql/rust/frameworks/libc.model.yml @@ -1,12 +1,12 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: sourceModel + extensible: sourceModelDeprecated data: - ["repo:https://github.com/rust-lang/libc:libc", "::free", "Argument[0]", "pointer-invalidate", "manual"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/rust-lang/libc:libc", "::malloc", "Argument[0]", "alloc-size", "manual"] - ["repo:https://github.com/rust-lang/libc:libc", "::aligned_alloc", "Argument[1]", "alloc-size", "manual"] diff --git a/rust/ql/lib/codeql/rust/frameworks/log.model.yml b/rust/ql/lib/codeql/rust/frameworks/log.model.yml index 14d5a92b243d..b41b400e4142 100644 --- a/rust/ql/lib/codeql/rust/frameworks/log.model.yml +++ b/rust/ql/lib/codeql/rust/frameworks/log.model.yml @@ -1,7 +1,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/rust-lang/log:log", "crate::__private_api::log", "Argument[0]", "log-injection", "manual"] # logger / args (pre v0.4.27) - ["repo:https://github.com/rust-lang/log:log", "crate::__private_api::log", "Argument[1]", "log-injection", "manual"] # args / level (pre v0.4.27) diff --git a/rust/ql/lib/codeql/rust/frameworks/postgres.model.yml b/rust/ql/lib/codeql/rust/frameworks/postgres.model.yml index c877947a45f4..4aba20e34505 100644 --- a/rust/ql/lib/codeql/rust/frameworks/postgres.model.yml +++ b/rust/ql/lib/codeql/rust/frameworks/postgres.model.yml @@ -1,7 +1,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/sfackler/rust-postgres:postgres", "::execute", "Argument[0]", "sql-injection", "manual"] - ["repo:https://github.com/sfackler/rust-postgres:postgres", "::batch_execute", "Argument[0]", "sql-injection", "manual"] diff --git a/rust/ql/lib/codeql/rust/frameworks/regex.model.yml b/rust/ql/lib/codeql/rust/frameworks/regex.model.yml index b645dc0b955c..dbe8afe8f6ea 100644 --- a/rust/ql/lib/codeql/rust/frameworks/regex.model.yml +++ b/rust/ql/lib/codeql/rust/frameworks/regex.model.yml @@ -2,6 +2,6 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/rust-lang/regex:regex", "crate::escape", "Argument[0].Reference", "ReturnValue", "taint", "manual"] diff --git a/rust/ql/lib/codeql/rust/frameworks/reqwest.model.yml b/rust/ql/lib/codeql/rust/frameworks/reqwest.model.yml index dabbaf1d8f3a..3974d5b08174 100644 --- a/rust/ql/lib/codeql/rust/frameworks/reqwest.model.yml +++ b/rust/ql/lib/codeql/rust/frameworks/reqwest.model.yml @@ -1,19 +1,19 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: sourceModel + extensible: sourceModelDeprecated data: - ["repo:https://github.com/seanmonstar/reqwest:reqwest", "crate::get", "ReturnValue.Future.Field[core::result::Result::Ok(0)]", "remote", "manual"] - ["repo:https://github.com/seanmonstar/reqwest:reqwest", "crate::blocking::get", "ReturnValue.Field[core::result::Result::Ok(0)]", "remote", "manual"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/seanmonstar/reqwest:reqwest", "::request", "Argument[1]", "transmission", "manual"] - ["repo:https://github.com/seanmonstar/reqwest:reqwest", "::request", "Argument[1]", "transmission", "manual"] - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/seanmonstar/reqwest:reqwest", "::text", "Argument[self]", "ReturnValue.Future.Field[core::result::Result::Ok(0)]", "taint", "manual"] - ["repo:https://github.com/seanmonstar/reqwest:reqwest", "::text_with_charset", "Argument[self]", "ReturnValue.Future.Field[core::result::Result::Ok(0)]", "taint", "manual"] diff --git a/rust/ql/lib/codeql/rust/frameworks/rusqlite.model.yml b/rust/ql/lib/codeql/rust/frameworks/rusqlite.model.yml index ba63d848f1fc..3da7e2a1bc6c 100644 --- a/rust/ql/lib/codeql/rust/frameworks/rusqlite.model.yml +++ b/rust/ql/lib/codeql/rust/frameworks/rusqlite.model.yml @@ -1,7 +1,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/rusqlite/rusqlite:rusqlite", "::execute", "Argument[0]", "sql-injection", "manual"] - ["repo:https://github.com/rusqlite/rusqlite:rusqlite", "::execute_batch", "Argument[0]", "sql-injection", "manual"] @@ -12,7 +12,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: sourceModel + extensible: sourceModelDeprecated data: - ["repo:https://github.com/rusqlite/rusqlite:rusqlite", "::get", "ReturnValue.Field[core::result::Result::Ok(0)]", "database", "manual"] - ["repo:https://github.com/rusqlite/rusqlite:rusqlite", "::get_unwrap", "ReturnValue", "database", "manual"] diff --git a/rust/ql/lib/codeql/rust/frameworks/rustcrypto/rustcrypto.model.yml b/rust/ql/lib/codeql/rust/frameworks/rustcrypto/rustcrypto.model.yml index fe3fd67a8fd4..7b7a79644004 100644 --- a/rust/ql/lib/codeql/rust/frameworks/rustcrypto/rustcrypto.model.yml +++ b/rust/ql/lib/codeql/rust/frameworks/rustcrypto/rustcrypto.model.yml @@ -1,7 +1,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/RustCrypto/traits:digest", "<_ as crate::digest::Digest>::new_with_prefix", "Argument[0]", "hasher-input", "manual"] - ["repo:https://github.com/RustCrypto/traits:digest", "<_ as crate::digest::Digest>::update", "Argument[0]", "hasher-input", "manual"] diff --git a/rust/ql/lib/codeql/rust/frameworks/rustls.model.yml b/rust/ql/lib/codeql/rust/frameworks/rustls.model.yml index 2f8a1f529a61..1e21646f2cac 100644 --- a/rust/ql/lib/codeql/rust/frameworks/rustls.model.yml +++ b/rust/ql/lib/codeql/rust/frameworks/rustls.model.yml @@ -1,12 +1,12 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: sourceModel + extensible: sourceModelDeprecated data: - ["repo:https://github.com/rustls/rustls:rustls", "::new", "ReturnValue.Field[core::result::Result::Ok(0)]", "remote", "manual"] - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/quininer/futures-rustls:futures-rustls", "::connect", "Argument[1]", "ReturnValue.Future.Field[core::result::Result::Ok(0)]", "taint", "manual"] - ["repo:https://github.com/quininer/futures-rustls:futures-rustls", "::poll_read", "Argument[self].Reference", "Argument[1].Reference", "taint", "manual"] diff --git a/rust/ql/lib/codeql/rust/frameworks/stdlib/env.model.yml b/rust/ql/lib/codeql/rust/frameworks/stdlib/env.model.yml index 4674188c3841..83036991126e 100644 --- a/rust/ql/lib/codeql/rust/frameworks/stdlib/env.model.yml +++ b/rust/ql/lib/codeql/rust/frameworks/stdlib/env.model.yml @@ -1,7 +1,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: sourceModel + extensible: sourceModelDeprecated data: - ["lang:std", "crate::env::args", "ReturnValue.Element", "commandargs", "manual"] - ["lang:std", "crate::env::args_os", "ReturnValue.Element", "commandargs", "manual"] diff --git a/rust/ql/lib/codeql/rust/frameworks/stdlib/fs.model.yml b/rust/ql/lib/codeql/rust/frameworks/stdlib/fs.model.yml index 72dabacca82e..ea1d93b2f7f7 100644 --- a/rust/ql/lib/codeql/rust/frameworks/stdlib/fs.model.yml +++ b/rust/ql/lib/codeql/rust/frameworks/stdlib/fs.model.yml @@ -1,7 +1,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: sourceModel + extensible: sourceModelDeprecated data: - ["lang:std", "crate::fs::read", "ReturnValue.Field[core::result::Result::Ok(0)]", "file", "manual"] - ["lang:std", "crate::fs::read_to_string", "ReturnValue.Field[core::result::Result::Ok(0)]", "file", "manual"] @@ -12,7 +12,7 @@ extensions: - ["lang:std", "::open_buffered", "ReturnValue.Field[core::result::Result::Ok(0)]", "file", "manual"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["lang:std", "crate::fs::copy", "Argument[0]", "path-injection", "manual"] - ["lang:std", "crate::fs::copy", "Argument[1]", "path-injection", "manual"] @@ -43,7 +43,7 @@ extensions: - ["lang:std", "::open_buffered", "Argument[0]", "path-injection", "manual"] - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["lang:std", "::from", "Argument[0]", "ReturnValue", "taint", "manual"] - ["lang:std", "::join", "Argument[self]", "ReturnValue", "taint", "manual"] diff --git a/rust/ql/lib/codeql/rust/frameworks/stdlib/io.model.yml b/rust/ql/lib/codeql/rust/frameworks/stdlib/io.model.yml index ded14103404e..fc86d2fb908f 100644 --- a/rust/ql/lib/codeql/rust/frameworks/stdlib/io.model.yml +++ b/rust/ql/lib/codeql/rust/frameworks/stdlib/io.model.yml @@ -1,12 +1,12 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: sourceModel + extensible: sourceModelDeprecated data: - ["lang:std", "crate::io::stdio::stdin", "ReturnValue", "stdin", "manual"] - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["lang:std", "::new", "Argument[0]", "ReturnValue", "taint", "manual"] - ["lang:std", "::fill_buf", "Argument[self]", "ReturnValue.Field[core::result::Result::Ok(0)]", "taint", "manual"] diff --git a/rust/ql/lib/codeql/rust/frameworks/stdlib/lang-alloc.model.yml b/rust/ql/lib/codeql/rust/frameworks/stdlib/lang-alloc.model.yml index af7253004df2..eea2f6726db7 100644 --- a/rust/ql/lib/codeql/rust/frameworks/stdlib/lang-alloc.model.yml +++ b/rust/ql/lib/codeql/rust/frameworks/stdlib/lang-alloc.model.yml @@ -1,13 +1,13 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: sourceModel + extensible: sourceModelDeprecated data: # Alloc - ["lang:alloc", "crate::alloc::dealloc", "Argument[0]", "pointer-invalidate", "manual"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: # Alloc - ["lang:alloc", "crate::alloc::alloc", "Argument[0]", "alloc-layout", "manual"] @@ -27,7 +27,7 @@ extensions: - ["lang:alloc", "::grow_zeroed", "Argument[2]", "alloc-layout", "manual"] - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: # Box - ["lang:alloc", "::pin", "Argument[0]", "ReturnValue.Reference", "value", "manual"] diff --git a/rust/ql/lib/codeql/rust/frameworks/stdlib/lang-core.model.yml b/rust/ql/lib/codeql/rust/frameworks/stdlib/lang-core.model.yml index d998a3bf0689..00d78a7d8cb5 100644 --- a/rust/ql/lib/codeql/rust/frameworks/stdlib/lang-core.model.yml +++ b/rust/ql/lib/codeql/rust/frameworks/stdlib/lang-core.model.yml @@ -1,7 +1,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: # Iterator - ["lang:core", "<[_]>::iter", "Argument[self].Element", "ReturnValue.Element", "value", "manual"] @@ -55,7 +55,7 @@ extensions: - ["lang:core", "::trim", "Argument[self]", "ReturnValue.Reference", "taint", "manual"] - addsTo: pack: codeql/rust-all - extensible: sourceModel + extensible: sourceModelDeprecated data: # Ptr - ["lang:core", "crate::ptr::drop_in_place", "Argument[0]", "pointer-invalidate", "manual"] @@ -64,7 +64,7 @@ extensions: - ["lang:core", "crate::ptr::null", "ReturnValue", "pointer-invalidate", "manual"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: # Ptr - ["lang:core", "crate::ptr::read", "Argument[0]", "pointer-access", "manual"] diff --git a/rust/ql/lib/codeql/rust/frameworks/stdlib/net.model.yml b/rust/ql/lib/codeql/rust/frameworks/stdlib/net.model.yml index 3f5f2d1c0ce8..307b20b5b884 100644 --- a/rust/ql/lib/codeql/rust/frameworks/stdlib/net.model.yml +++ b/rust/ql/lib/codeql/rust/frameworks/stdlib/net.model.yml @@ -1,13 +1,13 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: sourceModel + extensible: sourceModelDeprecated data: - ["lang:std", "::connect", "ReturnValue.Field[core::result::Result::Ok(0)]", "remote", "manual"] - ["lang:std", "::connect_timeout", "ReturnValue.Field[core::result::Result::Ok(0)]", "remote", "manual"] - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["lang:std", "::try_clone", "Argument[self]", "ReturnValue.Field[core::result::Result::Ok(0)]", "taint", "manual"] - ["lang:std", "::read", "Argument[self]", "Argument[0].Reference", "taint", "manual"] diff --git a/rust/ql/lib/codeql/rust/frameworks/tokio-postgres.model.yml b/rust/ql/lib/codeql/rust/frameworks/tokio-postgres.model.yml index ffe6d6d8eac2..7ad540227846 100644 --- a/rust/ql/lib/codeql/rust/frameworks/tokio-postgres.model.yml +++ b/rust/ql/lib/codeql/rust/frameworks/tokio-postgres.model.yml @@ -1,7 +1,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/sfackler/rust-postgres:tokio-postgres", "::execute", "Argument[0]", "sql-injection", "manual"] - ["repo:https://github.com/sfackler/rust-postgres:tokio-postgres", "::batch_execute", "Argument[0]", "sql-injection", "manual"] @@ -18,7 +18,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: sourceModel + extensible: sourceModelDeprecated data: - ["repo:https://github.com/sfackler/rust-postgres:tokio-postgres", "::get", "ReturnValue", "database", "manual"] - ["repo:https://github.com/sfackler/rust-postgres:tokio-postgres", "::try_get", "ReturnValue.Field[core::result::Result::Ok(0)]", "database", "manual"] diff --git a/rust/ql/lib/codeql/rust/frameworks/tokio/fs.model.yml b/rust/ql/lib/codeql/rust/frameworks/tokio/fs.model.yml index e1dd50cdb758..108ca6e1a3ac 100644 --- a/rust/ql/lib/codeql/rust/frameworks/tokio/fs.model.yml +++ b/rust/ql/lib/codeql/rust/frameworks/tokio/fs.model.yml @@ -1,7 +1,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: sourceModel + extensible: sourceModelDeprecated data: - ["repo:https://github.com/tokio-rs/tokio:tokio", "crate::fs::read::read", "ReturnValue.Future.Field[core::result::Result::Ok(0)]", "file", "manual"] - ["repo:https://github.com/tokio-rs/tokio:tokio", "crate::fs::read_to_string::read_to_string", "ReturnValue.Future.Field[core::result::Result::Ok(0)]", "file", "manual"] diff --git a/rust/ql/lib/codeql/rust/frameworks/tokio/io.model.yml b/rust/ql/lib/codeql/rust/frameworks/tokio/io.model.yml index 50a88a79c816..35dcd597c0d6 100644 --- a/rust/ql/lib/codeql/rust/frameworks/tokio/io.model.yml +++ b/rust/ql/lib/codeql/rust/frameworks/tokio/io.model.yml @@ -1,12 +1,12 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: sourceModel + extensible: sourceModelDeprecated data: - ["repo:https://github.com/tokio-rs/tokio:tokio", "crate::io::stdin::stdin", "ReturnValue", "stdin", "manual"] - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/tokio-rs/tokio:tokio", "::new", "Argument[0]", "ReturnValue", "taint", "manual"] - ["repo:https://github.com/tokio-rs/tokio:tokio", "crate::io::util::async_buf_read_ext::AsyncBufReadExt::fill_buf", "Argument[self]", "ReturnValue.Future.Field[core::result::Result::Ok(0)]", "taint", "manual"] diff --git a/rust/ql/lib/codeql/rust/frameworks/tokio/net.model.yml b/rust/ql/lib/codeql/rust/frameworks/tokio/net.model.yml index 5d14dabe485b..64926df979e0 100644 --- a/rust/ql/lib/codeql/rust/frameworks/tokio/net.model.yml +++ b/rust/ql/lib/codeql/rust/frameworks/tokio/net.model.yml @@ -1,12 +1,12 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: sourceModel + extensible: sourceModelDeprecated data: - ["repo:https://github.com/tokio-rs/tokio:tokio", "::connect", "ReturnValue.Future.Field[core::result::Result::Ok(0)]", "remote", "manual"] - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/tokio-rs/tokio:tokio", "::peek", "Argument[self]", "Argument[0].Reference", "taint", "manual"] - ["repo:https://github.com/tokio-rs/tokio:tokio", "crate::io::util::async_read_ext::AsyncReadExt::read", "Argument[self]", "Argument[0].Reference", "taint", "manual"] diff --git a/rust/ql/lib/codeql/rust/frameworks/url.model.yml b/rust/ql/lib/codeql/rust/frameworks/url.model.yml index 54c6906c08d8..496b235c9306 100644 --- a/rust/ql/lib/codeql/rust/frameworks/url.model.yml +++ b/rust/ql/lib/codeql/rust/frameworks/url.model.yml @@ -2,6 +2,6 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/servo/rust-url:url", "::parse", "Argument[0].Reference", "ReturnValue.Field[core::result::Result::Ok(0)]", "taint", "manual"] diff --git a/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-files.model.yml b/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-files.model.yml index 7a877781c4d4..43197621ed79 100644 --- a/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-files.model.yml +++ b/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-files.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/actix/actix-web:actix-files", "::project", "Argument[self]", "ReturnValue", "taint", "df-generated"] - ["repo:https://github.com/actix/actix-web:actix-files", "::project_ref", "Argument[self]", "ReturnValue", "taint", "df-generated"] @@ -66,7 +66,7 @@ extensions: - ["repo:https://github.com/actix/actix-web:actix-files", "crate::encoding::equiv_utf8_text", "Argument[0]", "ReturnValue", "value", "dfc-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/actix/actix-web:actix-files", "::respond_to", "Argument[self]", "pointer-access", "df-generated"] - ["repo:https://github.com/actix/actix-web:actix-files", "::into_response", "Argument[self]", "pointer-access", "df-generated"] diff --git a/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-http-test.model.yml b/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-http-test.model.yml index 942404ec015b..8adc705fa579 100644 --- a/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-http-test.model.yml +++ b/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-http-test.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/actix/actix-web:actix-http-test", "::addr", "Argument[self].Field[actix_http_test::TestServer::addr]", "ReturnValue", "value", "dfc-generated"] - ["repo:https://github.com/actix/actix-web:actix-http-test", "::request", "Argument[0]", "ReturnValue.Field[awc::request::ClientRequest::head].Field[actix_http::requests::head::RequestHead::method]", "value", "dfc-generated"] diff --git a/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-http.model.yml b/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-http.model.yml index 53cf6df52e96..f6fb3f75cd47 100644 --- a/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-http.model.yml +++ b/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-http.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/actix/actix-web:actix-http", "<&crate::header::name::HeaderName as crate::header::as_name::Sealed>::try_as_name", "Argument[self].Reference", "ReturnValue.Field[core::result::Result::Ok(0)].Field[alloc::borrow::Cow::Borrowed(0)]", "value", "dfc-generated"] - ["repo:https://github.com/actix/actix-web:actix-http", "<&crate::header::value::HeaderValue as crate::header::into_value::TryIntoHeaderValue>::try_into_value", "Argument[self].Reference", "ReturnValue.Field[core::result::Result::Ok(0)]", "value", "dfc-generated"] @@ -292,7 +292,7 @@ extensions: - ["repo:https://github.com/actix/actix-web:actix-http", "::from", "Argument[0]", "ReturnValue", "value", "dfc-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/actix/actix-web:actix-http", "::from_io", "Argument[1]", "pointer-access", "df-generated"] - ["repo:https://github.com/actix/actix-web:actix-http", "::new", "Argument[4]", "pointer-access", "df-generated"] diff --git a/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-multipart.model.yml b/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-multipart.model.yml index a0028869cd39..a080c4c2f916 100644 --- a/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-multipart.model.yml +++ b/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-multipart.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/actix/actix-web:actix-multipart", "<_ as crate::form::FieldGroupReader>::from_state", "Argument[0]", "ReturnValue.Field[core::result::Result::Err(0)]", "value", "dfc-generated"] - ["repo:https://github.com/actix/actix-web:actix-multipart", "<_ as crate::form::FieldGroupReader>::handle_field", "Argument[0]", "ReturnValue.Reference", "value", "dfc-generated"] diff --git a/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-router.model.yml b/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-router.model.yml index 55156f8eca68..a51fb34941f9 100644 --- a/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-router.model.yml +++ b/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-router.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/actix/actix-web:actix-router", "<&crate::string::String as crate::pattern::IntoPatterns>::patterns", "Argument[self].Reference.Field[alloc::string::String::vec]", "ReturnValue.Field[actix_router::pattern::Patterns::Single(0)].Field[alloc::string::String::vec]", "value", "dfc-generated"] - ["repo:https://github.com/actix/actix-web:actix-router", "<&crate::string::String as crate::pattern::IntoPatterns>::patterns", "Argument[self].Reference.Reference", "ReturnValue.Field[actix_router::pattern::Patterns::Single(0)]", "value", "dfc-generated"] diff --git a/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-test.model.yml b/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-test.model.yml index 82cb1967c6f5..2a52d054057f 100644 --- a/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-test.model.yml +++ b/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-test.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/actix/actix-web:actix-test", "::addr", "Argument[self].Field[actix_test::TestServer::addr]", "ReturnValue", "value", "dfc-generated"] - ["repo:https://github.com/actix/actix-web:actix-test", "::request", "Argument[0]", "ReturnValue.Field[awc::request::ClientRequest::head].Field[actix_http::requests::head::RequestHead::method]", "value", "dfc-generated"] diff --git a/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-web-actors.model.yml b/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-web-actors.model.yml index f16e51e652c3..003c0df6f59f 100644 --- a/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-web-actors.model.yml +++ b/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-web-actors.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/actix/actix-web:actix-web-actors", "::parts", "Argument[self].Field[actix_web_actors::context::HttpContext::inner]", "ReturnValue.Reference", "value", "dfc-generated"] - ["repo:https://github.com/actix/actix-web:actix-web-actors", "::parts", "Argument[self].Field[actix_web_actors::ws::WebsocketContext::inner]", "ReturnValue.Reference", "value", "dfc-generated"] @@ -21,7 +21,7 @@ extensions: - ["repo:https://github.com/actix/actix-web:actix-web-actors", "::protocols", "Argument[self]", "ReturnValue", "value", "dfc-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/actix/actix-web:actix-web-actors", "::write", "Argument[self]", "log-injection", "df-generated"] - ["repo:https://github.com/actix/actix-web:actix-web-actors", "::write_eof", "Argument[self]", "log-injection", "df-generated"] diff --git a/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-web-codegen.model.yml b/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-web-codegen.model.yml index 045b0337dcbb..ed06e35ec3ee 100644 --- a/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-web-codegen.model.yml +++ b/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-web-codegen.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/actix/actix-web:actix-web-codegen", "::try_from", "Argument[0].Reference", "ReturnValue.Field[core::result::Result::Ok(0)].Field[actix_web_codegen::route::MethodTypeExt::Custom(0)]", "value", "dfc-generated"] - ["repo:https://github.com/actix/actix-web:actix-web-codegen", "::new", "Argument[0].Field[actix_web_codegen::route::RouteArgs::path]", "ReturnValue.Field[actix_web_codegen::route::Args::path]", "value", "dfc-generated"] diff --git a/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-web.model.yml b/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-web.model.yml index d5f318eeae50..448f6267e468 100644 --- a/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-web.model.yml +++ b/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-actix-web.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/actix/actix-web:actix-web", "<_ as crate::guard::Guard>::check", "Argument[0]", "Argument[self].Parameter[0]", "value", "dfc-generated"] - ["repo:https://github.com/actix/actix-web:actix-web", "<_ as crate::guard::Guard>::check", "Argument[self].ReturnValue", "ReturnValue", "value", "dfc-generated"] @@ -420,7 +420,7 @@ extensions: - ["repo:https://github.com/actix/actix-web:actix-web", "crate::web::scope", "Argument[0]", "ReturnValue", "taint", "df-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/actix/actix-web:actix-web", "::ranked", "Argument[self]", "pointer-access", "df-generated"] - ["repo:https://github.com/actix/actix-web:actix-web", "::negotiate", "Argument[self]", "pointer-access", "df-generated"] diff --git a/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-awc.model.yml b/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-awc.model.yml index d67bac17a99e..055651257c27 100644 --- a/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-awc.model.yml +++ b/rust/ql/lib/ext/generated/actix-web/repo-https-github.com-actix-actix-web-awc.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/actix/actix-web:awc", "::add_default_header", "Argument[self]", "ReturnValue", "value", "dfc-generated"] - ["repo:https://github.com/actix/actix-web:awc", "::basic_auth", "Argument[self]", "ReturnValue", "value", "dfc-generated"] @@ -262,7 +262,7 @@ extensions: - ["repo:https://github.com/actix/actix-web:awc", "::set_header_if_none", "Argument[self]", "ReturnValue", "value", "dfc-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/actix/actix-web:awc", "::send", "Argument[self]", "pointer-access", "df-generated"] - ["repo:https://github.com/actix/actix-web:awc", "::send_body", "Argument[self]", "pointer-access", "df-generated"] diff --git a/rust/ql/lib/ext/generated/clap/repo-https-github.com-clap-rs-clap-clap.model.yml b/rust/ql/lib/ext/generated/clap/repo-https-github.com-clap-rs-clap-clap.model.yml index 154e69121736..68c81938798a 100644 --- a/rust/ql/lib/ext/generated/clap/repo-https-github.com-clap-rs-clap-clap.model.yml +++ b/rust/ql/lib/ext/generated/clap/repo-https-github.com-clap-rs-clap-clap.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/clap-rs/clap:clap", "::augment_args", "Argument[0]", "ReturnValue", "value", "dfc-generated"] - ["repo:https://github.com/clap-rs/clap:clap", "::augment_args_for_update", "Argument[0]", "ReturnValue", "value", "dfc-generated"] @@ -15,7 +15,7 @@ extensions: - ["repo:https://github.com/clap-rs/clap:clap", "::from_str", "Argument[0]", "ReturnValue", "taint", "df-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/clap-rs/clap:clap", "::from_arg_matches", "Argument[0]", "log-injection", "df-generated"] - ["repo:https://github.com/clap-rs/clap:clap", "::from_arg_matches_mut", "Argument[0]", "log-injection", "df-generated"] diff --git a/rust/ql/lib/ext/generated/clap/repo-https-github.com-clap-rs-clap-clap_bench.model.yml b/rust/ql/lib/ext/generated/clap/repo-https-github.com-clap-rs-clap-clap_bench.model.yml index c70e37a02bfa..c22f0a231a04 100644 --- a/rust/ql/lib/ext/generated/clap/repo-https-github.com-clap-rs-clap-clap_bench.model.yml +++ b/rust/ql/lib/ext/generated/clap/repo-https-github.com-clap-rs-clap-clap_bench.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/clap-rs/clap:clap_bench", "::fmt", "Argument[0]", "ReturnValue", "taint", "df-generated"] - ["repo:https://github.com/clap-rs/clap:clap_bench", "::args", "Argument[self].Field[1]", "ReturnValue", "value", "dfc-generated"] diff --git a/rust/ql/lib/ext/generated/clap/repo-https-github.com-clap-rs-clap-clap_builder.model.yml b/rust/ql/lib/ext/generated/clap/repo-https-github.com-clap-rs-clap-clap_builder.model.yml index 462c5f8126b1..71fbb0969325 100644 --- a/rust/ql/lib/ext/generated/clap/repo-https-github.com-clap-rs-clap-clap_builder.model.yml +++ b/rust/ql/lib/ext/generated/clap/repo-https-github.com-clap-rs-clap-clap_builder.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/clap-rs/clap:clap_builder", "<_ as crate::builder::value_parser::AnyValueParser>::clone_any", "Argument[self].Reference", "ReturnValue.Reference", "value", "dfc-generated"] - ["repo:https://github.com/clap-rs/clap:clap_builder", "::into_resettable", "Argument[self]", "ReturnValue.Field[clap_builder::builder::resettable::Resettable::Value(0)]", "value", "dfc-generated"] @@ -394,7 +394,7 @@ extensions: - ["repo:https://github.com/clap-rs/clap:clap_builder", "crate::output::textwrap::word_separators::find_words_ascii_space", "Argument[0]", "ReturnValue.Field[core::iter::sources::from_fn::FromFn(0)]", "value", "dfc-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/clap-rs/clap:clap_builder", "<_ as crate::builder::value_parser::TypedValueParser>::parse_ref", "Argument[1]", "pointer-access", "df-generated"] - ["repo:https://github.com/clap-rs/clap:clap_builder", "::remove", "Argument[self]", "log-injection", "df-generated"] diff --git a/rust/ql/lib/ext/generated/clap/repo-https-github.com-clap-rs-clap-clap_complete.model.yml b/rust/ql/lib/ext/generated/clap/repo-https-github.com-clap-rs-clap-clap_complete.model.yml index 0f657f77adae..c7ef53d6a790 100644 --- a/rust/ql/lib/ext/generated/clap/repo-https-github.com-clap-rs-clap-clap_complete.model.yml +++ b/rust/ql/lib/ext/generated/clap/repo-https-github.com-clap-rs-clap-clap_complete.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/clap-rs/clap:clap_complete", "<_ as crate::engine::custom::ValueCandidates>::candidates", "Argument[self].ReturnValue", "ReturnValue", "value", "dfc-generated"] - ["repo:https://github.com/clap-rs/clap:clap_complete", "<_ as crate::engine::custom::ValueCompleter>::complete", "Argument[0]", "Argument[self].Parameter[0]", "value", "dfc-generated"] @@ -54,7 +54,7 @@ extensions: - ["repo:https://github.com/clap-rs/clap:clap_complete", "crate::engine::custom::complete_path", "Argument[1]", "Argument[2]", "taint", "df-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/clap-rs/clap:clap_complete", "::write_complete", "Argument[1]", "log-injection", "df-generated"] - ["repo:https://github.com/clap-rs/clap:clap_complete", "::write_complete", "Argument[2]", "log-injection", "df-generated"] diff --git a/rust/ql/lib/ext/generated/clap/repo-https-github.com-clap-rs-clap-clap_complete_nushell.model.yml b/rust/ql/lib/ext/generated/clap/repo-https-github.com-clap-rs-clap-clap_complete_nushell.model.yml index 0317e38cc51c..121e004b29b1 100644 --- a/rust/ql/lib/ext/generated/clap/repo-https-github.com-clap-rs-clap-clap_complete_nushell.model.yml +++ b/rust/ql/lib/ext/generated/clap/repo-https-github.com-clap-rs-clap-clap_complete_nushell.model.yml @@ -2,12 +2,12 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/clap-rs/clap:clap_complete_nushell", "::file_name", "Argument[0]", "ReturnValue", "taint", "df-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/clap-rs/clap:clap_complete_nushell", "crate::has_command", "Argument[0]", "log-injection", "df-generated"] - ["repo:https://github.com/clap-rs/clap:clap_complete_nushell", "crate::register_example", "Argument[0]", "log-injection", "df-generated"] diff --git a/rust/ql/lib/ext/generated/clap/repo-https-github.com-clap-rs-clap-clap_derive.model.yml b/rust/ql/lib/ext/generated/clap/repo-https-github.com-clap-rs-clap-clap_derive.model.yml index d64c2819841b..4cb827d0845f 100644 --- a/rust/ql/lib/ext/generated/clap/repo-https-github.com-clap-rs-clap-clap_derive.model.yml +++ b/rust/ql/lib/ext/generated/clap/repo-https-github.com-clap-rs-clap-clap_derive.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/clap-rs/clap:clap_derive", "::lit_str_or_abort", "Argument[self].Field[clap_derive::attr::ClapAttr::value].Field[core::option::Option::Some(0)]", "ReturnValue.Reference", "value", "dfc-generated"] - ["repo:https://github.com/clap-rs/clap:clap_derive", "::value_or_abort", "Argument[self].Field[clap_derive::attr::ClapAttr::value].Field[core::option::Option::Some(0)]", "ReturnValue.Field[core::result::Result::Ok(0)].Reference", "value", "dfc-generated"] @@ -49,7 +49,7 @@ extensions: - ["repo:https://github.com/clap-rs/clap:clap_derive", "crate::utils::ty::inner_type", "Argument[0]", "ReturnValue", "value", "dfc-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/clap-rs/clap:clap_derive", "::action", "Argument[self]", "pointer-access", "df-generated"] - ["repo:https://github.com/clap-rs/clap:clap_derive", "::value_parser", "Argument[self]", "pointer-access", "df-generated"] diff --git a/rust/ql/lib/ext/generated/clap/repo-https-github.com-clap-rs-clap-clap_lex.model.yml b/rust/ql/lib/ext/generated/clap/repo-https-github.com-clap-rs-clap-clap_lex.model.yml index a17d15e7ffe3..75135d83ba01 100644 --- a/rust/ql/lib/ext/generated/clap/repo-https-github.com-clap-rs-clap-clap_lex.model.yml +++ b/rust/ql/lib/ext/generated/clap/repo-https-github.com-clap-rs-clap-clap_lex.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/clap-rs/clap:clap_lex", "::to_value", "Argument[self].Field[clap_lex::ParsedArg::inner]", "ReturnValue.Field[core::result::Result::Err(0)]", "value", "dfc-generated"] - ["repo:https://github.com/clap-rs/clap:clap_lex", "::to_value_os", "Argument[self].Field[clap_lex::ParsedArg::inner]", "ReturnValue", "value", "dfc-generated"] diff --git a/rust/ql/lib/ext/generated/clap/repo-https-github.com-clap-rs-clap-clap_mangen.model.yml b/rust/ql/lib/ext/generated/clap/repo-https-github.com-clap-rs-clap-clap_mangen.model.yml index 4dea11c285ce..2eaf737de223 100644 --- a/rust/ql/lib/ext/generated/clap/repo-https-github.com-clap-rs-clap-clap_mangen.model.yml +++ b/rust/ql/lib/ext/generated/clap/repo-https-github.com-clap-rs-clap-clap_mangen.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/clap-rs/clap:clap_mangen", "::date", "Argument[self]", "ReturnValue", "value", "dfc-generated"] - ["repo:https://github.com/clap-rs/clap:clap_mangen", "::generate_to", "Argument[self]", "ReturnValue", "taint", "df-generated"] @@ -14,6 +14,6 @@ extensions: - ["repo:https://github.com/clap-rs/clap:clap_mangen", "::title", "Argument[self]", "ReturnValue", "value", "dfc-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/clap-rs/clap:clap_mangen", "::generate_to", "Argument[self]", "path-injection", "df-generated"] diff --git a/rust/ql/lib/ext/generated/hyper/repo-https-github.com-hyperium-hyper-hyper.model.yml b/rust/ql/lib/ext/generated/hyper/repo-https-github.com-hyperium-hyper-hyper.model.yml index b2611218ec5a..ffc0033a1524 100644 --- a/rust/ql/lib/ext/generated/hyper/repo-https-github.com-hyperium-hyper-hyper.model.yml +++ b/rust/ql/lib/ext/generated/hyper/repo-https-github.com-hyperium-hyper-hyper.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/hyperium/hyper:hyper", "<_ as crate::ffi::task::IntoDynTaskType>::into_dyn_task_type", "Argument[self]", "ReturnValue.Reference", "value", "dfc-generated"] - ["repo:https://github.com/hyperium/hyper:hyper", "::read", "Argument[self]", "Argument[0]", "taint", "df-generated"] @@ -296,7 +296,7 @@ extensions: - ["repo:https://github.com/hyperium/hyper:hyper", "crate::service::util::service_fn", "Argument[0]", "ReturnValue.Field[hyper::service::util::ServiceFn::f]", "value", "dfc-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/hyperium/hyper:hyper", "::push", "Argument[self]", "log-injection", "df-generated"] - ["repo:https://github.com/hyperium/hyper:hyper", "::check", "Argument[1]", "log-injection", "df-generated"] @@ -315,7 +315,7 @@ extensions: - ["repo:https://github.com/hyperium/hyper:hyper", "crate::proto::h2::ping::channel", "Argument[1]", "pointer-access", "df-generated"] - addsTo: pack: codeql/rust-all - extensible: sourceModel + extensible: sourceModelDeprecated data: - ["repo:https://github.com/hyperium/hyper:hyper", "crate::ffi::body::hyper_buf_bytes", "ReturnValue", "pointer-invalidate", "df-generated"] - ["repo:https://github.com/hyperium/hyper:hyper", "crate::ffi::http_types::hyper_response_reason_phrase", "ReturnValue", "pointer-invalidate", "df-generated"] diff --git a/rust/ql/lib/ext/generated/libc/repo-https-github.com-rust-lang-libc-libc-test.model.yml b/rust/ql/lib/ext/generated/libc/repo-https-github.com-rust-lang-libc-libc-test.model.yml index 69a5e7acf606..06195f8df2e6 100644 --- a/rust/ql/lib/ext/generated/libc/repo-https-github.com-rust-lang-libc-libc-test.model.yml +++ b/rust/ql/lib/ext/generated/libc/repo-https-github.com-rust-lang-libc-libc-test.model.yml @@ -2,18 +2,18 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/rust-lang/libc:libc-test", "::check_file", "Argument[0].Field[alloc::borrow::Cow::Owned(0)]", "Argument[self].Field[style::style::StyleChecker::path].Field[style_tests::style::StyleChecker::path]", "value", "dfc-generated"] - ["repo:https://github.com/rust-lang/libc:libc-test", "::check_file", "Argument[0]", "Argument[self].Field[style::style::StyleChecker::path].Field[style_tests::style::StyleChecker::path].Field[std::path::PathBuf::inner]", "value", "dfc-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/rust-lang/libc:libc-test", "::check_file", "Argument[0]", "path-injection", "df-generated"] - addsTo: pack: codeql/rust-all - extensible: sourceModel + extensible: sourceModelDeprecated data: - ["repo:https://github.com/rust-lang/libc:libc-test", "::check_file", "ReturnValue", "file", "df-generated"] - ["repo:https://github.com/rust-lang/libc:libc-test", "::finalize", "ReturnValue", "file", "df-generated"] diff --git a/rust/ql/lib/ext/generated/libc/repo-https-github.com-rust-lang-libc-libc.model.yml b/rust/ql/lib/ext/generated/libc/repo-https-github.com-rust-lang-libc-libc.model.yml index 79aad4093951..132aac67b730 100644 --- a/rust/ql/lib/ext/generated/libc/repo-https-github.com-rust-lang-libc-libc.model.yml +++ b/rust/ql/lib/ext/generated/libc/repo-https-github.com-rust-lang-libc-libc.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/rust-lang/libc:libc", "::clone", "Argument[self].Reference", "ReturnValue", "value", "dfc-generated"] - ["repo:https://github.com/rust-lang/libc:libc", "::clone", "Argument[self].Reference", "ReturnValue", "value", "dfc-generated"] diff --git a/rust/ql/lib/ext/generated/log/repo-https-github.com-rust-lang-log-log.model.yml b/rust/ql/lib/ext/generated/log/repo-https-github.com-rust-lang-log-log.model.yml index 95ec87d32e57..21e059fa1c83 100644 --- a/rust/ql/lib/ext/generated/log/repo-https-github.com-rust-lang-log-log.model.yml +++ b/rust/ql/lib/ext/generated/log/repo-https-github.com-rust-lang-log-log.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/rust-lang/log:log", "::fmt", "Argument[0]", "ReturnValue", "taint", "df-generated"] - ["repo:https://github.com/rust-lang/log:log", "::fmt", "Argument[0]", "ReturnValue", "taint", "df-generated"] @@ -62,7 +62,7 @@ extensions: - ["repo:https://github.com/rust-lang/log:log", "::to_key", "Argument[self]", "ReturnValue.Field[log::kv::key::Key::key]", "value", "dfc-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/rust-lang/log:log", "::file", "Argument[self]", "pointer-access", "df-generated"] - ["repo:https://github.com/rust-lang/log:log", "::module_path", "Argument[self]", "pointer-access", "df-generated"] diff --git a/rust/ql/lib/ext/generated/memchr/repo-https-github.com-BurntSushi-memchr-memchr.model.yml b/rust/ql/lib/ext/generated/memchr/repo-https-github.com-BurntSushi-memchr-memchr.model.yml index 6b3e0f5cdb79..dd487b23533e 100644 --- a/rust/ql/lib/ext/generated/memchr/repo-https-github.com-BurntSushi-memchr-memchr.model.yml +++ b/rust/ql/lib/ext/generated/memchr/repo-https-github.com-BurntSushi-memchr-memchr.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/BurntSushi/memchr:memchr", "::find", "Argument[0]", "ReturnValue", "taint", "df-generated"] - ["repo:https://github.com/BurntSushi/memchr:memchr", "::find_raw", "Argument[0]", "ReturnValue.Field[core::option::Option::Some(0)]", "value", "dfc-generated"] @@ -181,7 +181,7 @@ extensions: - ["repo:https://github.com/BurntSushi/memchr:memchr", "crate::tests::substring::prop::suffix_is_substring", "Argument[0]", "Argument[1].Parameter[0]", "value", "dfc-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/BurntSushi/memchr:memchr", "::find", "Argument[self]", "log-injection", "df-generated"] - ["repo:https://github.com/BurntSushi/memchr:memchr", "::find_prefilter", "Argument[self]", "log-injection", "df-generated"] diff --git a/rust/ql/lib/ext/generated/once_cell/repo-https-github.com-matklad-once_cell-once_cell.model.yml b/rust/ql/lib/ext/generated/once_cell/repo-https-github.com-matklad-once_cell-once_cell.model.yml index e114e6d60f22..aedeac454654 100644 --- a/rust/ql/lib/ext/generated/once_cell/repo-https-github.com-matklad-once_cell-once_cell.model.yml +++ b/rust/ql/lib/ext/generated/once_cell/repo-https-github.com-matklad-once_cell-once_cell.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/matklad/once_cell:once_cell", "::into_inner", "Argument[self].Field[once_cell::imp::OnceCell::value].Field[core::cell::UnsafeCell::value]", "ReturnValue", "value", "dfc-generated"] - ["repo:https://github.com/matklad/once_cell:once_cell", "::get_or_init", "Argument[0]", "ReturnValue", "taint", "df-generated"] diff --git a/rust/ql/lib/ext/generated/rand/repo-benches.model.yml b/rust/ql/lib/ext/generated/rand/repo-benches.model.yml index ca7199263856..aef54ca39c78 100644 --- a/rust/ql/lib/ext/generated/rand/repo-benches.model.yml +++ b/rust/ql/lib/ext/generated/rand/repo-benches.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo::benches", "::next", "Argument[self].Field[seq_choose::UnhintedIterator::iter].Element", "ReturnValue.Field[core::option::Option::Some(0)]", "value", "dfc-generated"] - ["repo::benches", "::next", "Argument[self].Field[seq_choose::WindowHintedIterator::iter].Element", "ReturnValue.Field[core::option::Option::Some(0)]", "value", "dfc-generated"] diff --git a/rust/ql/lib/ext/generated/rand/repo-https-github.com-rust-random-rand-rand.model.yml b/rust/ql/lib/ext/generated/rand/repo-https-github.com-rust-random-rand-rand.model.yml index a446f65bfc61..c7061767df7b 100644 --- a/rust/ql/lib/ext/generated/rand/repo-https-github.com-rust-random-rand-rand.model.yml +++ b/rust/ql/lib/ext/generated/rand/repo-https-github.com-rust-random-rand-rand.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/rust-random/rand:rand", "<&_ as crate::distr::uniform::SampleBorrow>::borrow", "Argument[self]", "ReturnValue", "value", "dfc-generated"] - ["repo:https://github.com/rust-random/rand:rand", "<_ as crate::distr::uniform::SampleBorrow>::borrow", "Argument[self]", "ReturnValue", "value", "dfc-generated"] diff --git a/rust/ql/lib/ext/generated/rand/repo-https-github.com-rust-random-rand-rand_chacha.model.yml b/rust/ql/lib/ext/generated/rand/repo-https-github.com-rust-random-rand-rand_chacha.model.yml index 81d9ba8532e3..0763fc5c4a1a 100644 --- a/rust/ql/lib/ext/generated/rand/repo-https-github.com-rust-random-rand-rand_chacha.model.yml +++ b/rust/ql/lib/ext/generated/rand/repo-https-github.com-rust-random-rand-rand_chacha.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/rust-random/rand:rand_chacha", "::as_mut", "Argument[self].Field[0]", "ReturnValue.Reference", "value", "dfc-generated"] - ["repo:https://github.com/rust-random/rand:rand_chacha", "::as_mut", "Argument[self].Field[rand_chacha::chacha::Array64(0)]", "ReturnValue.Reference", "value", "dfc-generated"] diff --git a/rust/ql/lib/ext/generated/rand/repo-https-github.com-rust-random-rand-rand_core.model.yml b/rust/ql/lib/ext/generated/rand/repo-https-github.com-rust-random-rand-rand_core.model.yml index b83d3947dec2..3ec8b3dc024b 100644 --- a/rust/ql/lib/ext/generated/rand/repo-https-github.com-rust-random-rand-rand_core.model.yml +++ b/rust/ql/lib/ext/generated/rand/repo-https-github.com-rust-random-rand-rand_core.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/rust-random/rand:rand_core", "::re", "Argument[self].Field[0]", "ReturnValue.Field[rand_core::UnwrapMut(0)]", "value", "dfc-generated"] - ["repo:https://github.com/rust-random/rand:rand_core", "::re", "Argument[self].Field[rand_core::UnwrapMut(0)]", "ReturnValue.Field[rand_core::UnwrapMut(0)]", "value", "dfc-generated"] diff --git a/rust/ql/lib/ext/generated/rand/repo-https-github.com-rust-random-rand-rand_pcg.model.yml b/rust/ql/lib/ext/generated/rand/repo-https-github.com-rust-random-rand-rand_pcg.model.yml index f3d3857fafd8..f2f0fe4667e6 100644 --- a/rust/ql/lib/ext/generated/rand/repo-https-github.com-rust-random-rand-rand_pcg.model.yml +++ b/rust/ql/lib/ext/generated/rand/repo-https-github.com-rust-random-rand-rand_pcg.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/rust-random/rand:rand_pcg", "::new", "Argument[0]", "ReturnValue.Field[rand_pcg::pcg128::Lcg128Xsl64::state]", "value", "dfc-generated"] - ["repo:https://github.com/rust-random/rand:rand_pcg", "::new", "Argument[0]", "ReturnValue", "taint", "df-generated"] diff --git a/rust/ql/lib/ext/generated/reqwest/repo-https-github.com-seanmonstar-reqwest-reqwest.model.yml b/rust/ql/lib/ext/generated/reqwest/repo-https-github.com-seanmonstar-reqwest-reqwest.model.yml index 7a155beb8e2e..ee4af61e5c38 100644 --- a/rust/ql/lib/ext/generated/reqwest/repo-https-github.com-seanmonstar-reqwest-reqwest.model.yml +++ b/rust/ql/lib/ext/generated/reqwest/repo-https-github.com-seanmonstar-reqwest-reqwest.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/seanmonstar/reqwest:reqwest", "<&str as crate::into_url::IntoUrlSealed>::as_str", "Argument[self]", "ReturnValue", "value", "dfc-generated"] - ["repo:https://github.com/seanmonstar/reqwest:reqwest", "::into_url", "Argument[self]", "ReturnValue.Field[core::result::Result::Ok(0)]", "value", "dfc-generated"] @@ -444,7 +444,7 @@ extensions: - ["repo:https://github.com/seanmonstar/reqwest:reqwest", "crate::error::cast_to_internal_error", "Argument[0]", "ReturnValue", "value", "dfc-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/seanmonstar/reqwest:reqwest", "::delete", "Argument[0]", "transmission", "df-generated"] - ["repo:https://github.com/seanmonstar/reqwest:reqwest", "::get", "Argument[0]", "transmission", "df-generated"] @@ -479,7 +479,7 @@ extensions: - ["repo:https://github.com/seanmonstar/reqwest:reqwest", "crate::get", "Argument[0]", "transmission", "df-generated"] - addsTo: pack: codeql/rust-all - extensible: sourceModel + extensible: sourceModelDeprecated data: - ["repo:https://github.com/seanmonstar/reqwest:reqwest", "::file", "ReturnValue", "file", "df-generated"] - ["repo:https://github.com/seanmonstar/reqwest:reqwest", "::file", "ReturnValue", "file", "df-generated"] diff --git a/rust/ql/lib/ext/generated/rocket/repo-cookies.model.yml b/rust/ql/lib/ext/generated/rocket/repo-cookies.model.yml index f9148a8e6302..42653daa4cc4 100644 --- a/rust/ql/lib/ext/generated/rocket/repo-cookies.model.yml +++ b/rust/ql/lib/ext/generated/rocket/repo-cookies.model.yml @@ -2,6 +2,6 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo::cookies", "::from_request", "Argument[0]", "ReturnValue.Reference", "value", "dfc-generated"] diff --git a/rust/ql/lib/ext/generated/rocket/repo-fairings.model.yml b/rust/ql/lib/ext/generated/rocket/repo-fairings.model.yml index b5d6fb686d53..8efd6aecaa00 100644 --- a/rust/ql/lib/ext/generated/rocket/repo-fairings.model.yml +++ b/rust/ql/lib/ext/generated/rocket/repo-fairings.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo::fairings", "::on_ignite", "Argument[0]", "ReturnValue.Reference", "value", "dfc-generated"] - ["repo::fairings", "::on_ignite", "Argument[self]", "ReturnValue.Reference", "value", "dfc-generated"] diff --git a/rust/ql/lib/ext/generated/rocket/repo-https-github.com-rwf2-Rocket-rocket.model.yml b/rust/ql/lib/ext/generated/rocket/repo-https-github.com-rwf2-Rocket-rocket.model.yml index 87873634e1dd..72ea2d607b59 100644 --- a/rust/ql/lib/ext/generated/rocket/repo-https-github.com-rwf2-Rocket-rocket.model.yml +++ b/rust/ql/lib/ext/generated/rocket/repo-https-github.com-rwf2-Rocket-rocket.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/rwf2/Rocket:rocket", "<&[u8] as crate::data::from_data::FromData>::from_data", "Argument[0]", "ReturnValue.Reference", "value", "dfc-generated"] - ["repo:https://github.com/rwf2/Rocket:rocket", "<&[u8] as crate::data::from_data::FromData>::from_data", "Argument[1]", "ReturnValue.Reference", "value", "dfc-generated"] @@ -633,7 +633,7 @@ extensions: - ["repo:https://github.com/rwf2/Rocket:rocket", "crate::prepend", "Argument[1]", "ReturnValue", "value", "dfc-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/rwf2/Rocket:rocket", "::signal_stream", "Argument[self]", "log-injection", "df-generated"] - ["repo:https://github.com/rwf2/Rocket:rocket", "::poll_read", "Argument[1]", "log-injection", "df-generated"] @@ -653,7 +653,7 @@ extensions: - ["repo:https://github.com/rwf2/Rocket:rocket", "::respond_to", "Argument[self]", "log-injection", "df-generated"] - addsTo: pack: codeql/rust-all - extensible: sourceModel + extensible: sourceModelDeprecated data: - ["repo:https://github.com/rwf2/Rocket:rocket", "::open", "ReturnValue", "file", "df-generated"] - ["repo:https://github.com/rwf2/Rocket:rocket", "::open", "ReturnValue", "file", "df-generated"] diff --git a/rust/ql/lib/ext/generated/rocket/repo-https-github.com-rwf2-Rocket-rocket_codegen.model.yml b/rust/ql/lib/ext/generated/rocket/repo-https-github.com-rwf2-Rocket-rocket_codegen.model.yml index 123c9feaa28f..cb2474f13817 100644 --- a/rust/ql/lib/ext/generated/rocket/repo-https-github.com-rwf2-Rocket-rocket_codegen.model.yml +++ b/rust/ql/lib/ext/generated/rocket/repo-https-github.com-rwf2-Rocket-rocket_codegen.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/rwf2/Rocket:rocket_codegen", "::with_span", "Argument[self]", "ReturnValue", "value", "dfc-generated"] - ["repo:https://github.com/rwf2/Rocket:rocket_codegen", "::from_data", "Argument[0]", "ReturnValue.Reference", "value", "dfc-generated"] @@ -68,7 +68,7 @@ extensions: - ["repo:https://github.com/rwf2/Rocket:rocket_codegen", "crate::derive::form_field::first_duplicate", "Argument[0].Element", "Argument[1].Parameter[0].Reference", "value", "dfc-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/rwf2/Rocket:rocket_codegen", "::from", "Argument[0]", "pointer-access", "df-generated"] - ["repo:https://github.com/rwf2/Rocket:rocket_codegen", "::into_owned", "Argument[self]", "pointer-access", "df-generated"] diff --git a/rust/ql/lib/ext/generated/rocket/repo-https-github.com-rwf2-Rocket-rocket_http.model.yml b/rust/ql/lib/ext/generated/rocket/repo-https-github.com-rwf2-Rocket-rocket_http.model.yml index 51d91f1c490b..41bfa8fa2e8e 100644 --- a/rust/ql/lib/ext/generated/rocket/repo-https-github.com-rwf2-Rocket-rocket_http.model.yml +++ b/rust/ql/lib/ext/generated/rocket/repo-https-github.com-rwf2-Rocket-rocket_http.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/rwf2/Rocket:rocket_http", "<&[u8] as crate::uri::fmt::from_uri_param::FromUriParam>::from_uri_param", "Argument[0]", "ReturnValue", "value", "dfc-generated"] - ["repo:https://github.com/rwf2/Rocket:rocket_http", "<&crate::path::Path as crate::uri::fmt::from_uri_param::FromUriParam>::from_uri_param", "Argument[0]", "ReturnValue", "value", "dfc-generated"] @@ -252,7 +252,7 @@ extensions: - ["repo:https://github.com/rwf2/Rocket:rocket_http", "crate::uri::uri::as_utf8_unchecked", "Argument[0].Field[alloc::borrow::Cow::Owned(0)]", "ReturnValue.Field[alloc::borrow::Cow::Owned(0)].Field[alloc::string::String::vec]", "value", "dfc-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/rwf2/Rocket:rocket_http", "::into_owned", "Argument[self]", "pointer-access", "df-generated"] - ["repo:https://github.com/rwf2/Rocket:rocket_http", "::from_uri_param", "Argument[0]", "pointer-access", "df-generated"] diff --git a/rust/ql/lib/ext/generated/rocket/repo-https-github.com-rwf2-Rocket-tree-v0.5-contrib-db_pools-rocket_db_pools.model.yml b/rust/ql/lib/ext/generated/rocket/repo-https-github.com-rwf2-Rocket-tree-v0.5-contrib-db_pools-rocket_db_pools.model.yml index 25107fb84195..645daf7bc3af 100644 --- a/rust/ql/lib/ext/generated/rocket/repo-https-github.com-rwf2-Rocket-tree-v0.5-contrib-db_pools-rocket_db_pools.model.yml +++ b/rust/ql/lib/ext/generated/rocket/repo-https-github.com-rwf2-Rocket-tree-v0.5-contrib-db_pools-rocket_db_pools.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/rwf2/Rocket/tree/v0.5/contrib/db_pools:rocket_db_pools", "::close", "Argument[self]", "ReturnValue.Reference", "value", "dfc-generated"] - ["repo:https://github.com/rwf2/Rocket/tree/v0.5/contrib/db_pools:rocket_db_pools", "::get", "Argument[self]", "ReturnValue.Reference", "value", "dfc-generated"] diff --git a/rust/ql/lib/ext/generated/rocket/repo-https-github.com-rwf2-Rocket-tree-v0.5-contrib-dyn_templates-rocket_dyn_templates.model.yml b/rust/ql/lib/ext/generated/rocket/repo-https-github.com-rwf2-Rocket-tree-v0.5-contrib-dyn_templates-rocket_dyn_templates.model.yml index 60648bc4d50f..3a9898ed61ca 100644 --- a/rust/ql/lib/ext/generated/rocket/repo-https-github.com-rwf2-Rocket-tree-v0.5-contrib-dyn_templates-rocket_dyn_templates.model.yml +++ b/rust/ql/lib/ext/generated/rocket/repo-https-github.com-rwf2-Rocket-tree-v0.5-contrib-dyn_templates-rocket_dyn_templates.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/rwf2/Rocket/tree/v0.5/contrib/dyn_templates:rocket_dyn_templates", "::context", "Argument[self].Field[0]", "ReturnValue.Reference", "value", "dfc-generated"] - ["repo:https://github.com/rwf2/Rocket/tree/v0.5/contrib/dyn_templates:rocket_dyn_templates", "::context", "Argument[self].Field[rocket_dyn_templates::context::manager::ContextManager(0)]", "ReturnValue.Reference", "value", "dfc-generated"] @@ -16,7 +16,7 @@ extensions: - ["repo:https://github.com/rwf2/Rocket/tree/v0.5/contrib/dyn_templates:rocket_dyn_templates", "::try_custom", "Argument[0]", "ReturnValue.Field[rocket_dyn_templates::fairing::TemplateFairing::callback].Reference", "value", "dfc-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/rwf2/Rocket/tree/v0.5/contrib/dyn_templates:rocket_dyn_templates", "::render", "Argument[0]", "log-injection", "df-generated"] - ["repo:https://github.com/rwf2/Rocket/tree/v0.5/contrib/dyn_templates:rocket_dyn_templates", "::render", "Argument[self]", "log-injection", "df-generated"] diff --git a/rust/ql/lib/ext/generated/rocket/repo-https-github.com-rwf2-Rocket-tree-v0.5-contrib-sync_db_pools-rocket_sync_db_pools.model.yml b/rust/ql/lib/ext/generated/rocket/repo-https-github.com-rwf2-Rocket-tree-v0.5-contrib-sync_db_pools-rocket_sync_db_pools.model.yml index 1103fe4e9dae..3be0817549cb 100644 --- a/rust/ql/lib/ext/generated/rocket/repo-https-github.com-rwf2-Rocket-tree-v0.5-contrib-sync_db_pools-rocket_sync_db_pools.model.yml +++ b/rust/ql/lib/ext/generated/rocket/repo-https-github.com-rwf2-Rocket-tree-v0.5-contrib-sync_db_pools-rocket_sync_db_pools.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/rwf2/Rocket/tree/v0.5/contrib/sync_db_pools:rocket_sync_db_pools", "::from_request", "Argument[0]", "ReturnValue.Reference", "value", "dfc-generated"] - ["repo:https://github.com/rwf2/Rocket/tree/v0.5/contrib/sync_db_pools:rocket_sync_db_pools", "::clone", "Argument[self]", "ReturnValue", "taint", "df-generated"] diff --git a/rust/ql/lib/ext/generated/rocket/repo-https-github.com-rwf2-Rocket-tree-v0.5-contrib-ws-rocket_ws.model.yml b/rust/ql/lib/ext/generated/rocket/repo-https-github.com-rwf2-Rocket-tree-v0.5-contrib-ws-rocket_ws.model.yml index b01bf55628e7..3adef7bbff19 100644 --- a/rust/ql/lib/ext/generated/rocket/repo-https-github.com-rwf2-Rocket-tree-v0.5-contrib-ws-rocket_ws.model.yml +++ b/rust/ql/lib/ext/generated/rocket/repo-https-github.com-rwf2-Rocket-tree-v0.5-contrib-ws-rocket_ws.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/rwf2/Rocket/tree/v0.5/contrib/ws:rocket_ws", "::io", "Argument[0]", "ReturnValue.Reference", "value", "dfc-generated"] - ["repo:https://github.com/rwf2/Rocket/tree/v0.5/contrib/ws:rocket_ws", "::io", "Argument[self]", "ReturnValue.Reference", "value", "dfc-generated"] diff --git a/rust/ql/lib/ext/generated/rocket/repo-manual_routes.model.yml b/rust/ql/lib/ext/generated/rocket/repo-manual_routes.model.yml index cbefe026a95f..810332d85c43 100644 --- a/rust/ql/lib/ext/generated/rocket/repo-manual_routes.model.yml +++ b/rust/ql/lib/ext/generated/rocket/repo-manual_routes.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo::manual_routes", "::handle", "Argument[0]", "ReturnValue.Reference", "value", "dfc-generated"] - ["repo::manual_routes", "::handle", "Argument[1]", "ReturnValue.Reference", "value", "dfc-generated"] diff --git a/rust/ql/lib/ext/generated/rocket/repo-pastebin.model.yml b/rust/ql/lib/ext/generated/rocket/repo-pastebin.model.yml index 380631de4671..2273ec8865f6 100644 --- a/rust/ql/lib/ext/generated/rocket/repo-pastebin.model.yml +++ b/rust/ql/lib/ext/generated/rocket/repo-pastebin.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo::pastebin", "::from_param", "Argument[0]", "ReturnValue.Field[core::result::Result::Err(0)]", "value", "dfc-generated"] - ["repo::pastebin", "::file_path", "Argument[self]", "ReturnValue", "taint", "df-generated"] diff --git a/rust/ql/lib/ext/generated/rocket/repo-state.model.yml b/rust/ql/lib/ext/generated/rocket/repo-state.model.yml index eb0be86bc6e9..da36bfd4540f 100644 --- a/rust/ql/lib/ext/generated/rocket/repo-state.model.yml +++ b/rust/ql/lib/ext/generated/rocket/repo-state.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo::state", "::from_request", "Argument[0]", "ReturnValue.Reference", "value", "dfc-generated"] - ["repo::state", "::from_request", "Argument[0]", "ReturnValue.Reference", "value", "dfc-generated"] diff --git a/rust/ql/lib/ext/generated/rocket/repo-static-files.model.yml b/rust/ql/lib/ext/generated/rocket/repo-static-files.model.yml index 68eee7cfaf40..dfee6398949e 100644 --- a/rust/ql/lib/ext/generated/rocket/repo-static-files.model.yml +++ b/rust/ql/lib/ext/generated/rocket/repo-static-files.model.yml @@ -2,6 +2,6 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo::static-files", "crate::manual::second", "Argument[0]", "path-injection", "df-generated"] diff --git a/rust/ql/lib/ext/generated/rocket/repo-tls.model.yml b/rust/ql/lib/ext/generated/rocket/repo-tls.model.yml index 58bd32ded9e6..d42f3c7d40a4 100644 --- a/rust/ql/lib/ext/generated/rocket/repo-tls.model.yml +++ b/rust/ql/lib/ext/generated/rocket/repo-tls.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo::tls", "::on_liftoff", "Argument[0]", "ReturnValue.Reference", "value", "dfc-generated"] - ["repo::tls", "::on_liftoff", "Argument[self]", "ReturnValue.Reference", "value", "dfc-generated"] diff --git a/rust/ql/lib/ext/generated/rocket/repo-todo.model.yml b/rust/ql/lib/ext/generated/rocket/repo-todo.model.yml index 839cab64a064..756697d8ea72 100644 --- a/rust/ql/lib/ext/generated/rocket/repo-todo.model.yml +++ b/rust/ql/lib/ext/generated/rocket/repo-todo.model.yml @@ -2,6 +2,6 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo::todo", "::raw", "Argument[1]", "ReturnValue.Field[todo::Context::flash]", "value", "dfc-generated"] diff --git a/rust/ql/lib/ext/generated/rust/lang-alloc.model.yml b/rust/ql/lib/ext/generated/rust/lang-alloc.model.yml index 8d51b23787c2..464878585a8f 100644 --- a/rust/ql/lib/ext/generated/rust/lang-alloc.model.yml +++ b/rust/ql/lib/ext/generated/rust/lang-alloc.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["lang:alloc", "<&&str as crate::string::SpecToString>::spec_to_string", "Argument[self].Reference.Reference", "ReturnValue", "value", "dfc-generated"] - ["lang:alloc", "<&crate::collections::btree::map::BTreeMap as crate::iter::traits::collect::IntoIterator>::into_iter", "Argument[self].Field[alloc::collections::btree::map::BTreeMap::length]", "ReturnValue.Field[alloc::collections::btree::map::Iter::length]", "value", "dfc-generated"] @@ -567,7 +567,7 @@ extensions: - ["lang:alloc", "crate::str::convert_while_ascii", "Argument[0]", "Argument[1]", "taint", "df-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["lang:alloc", "<[_]>::sort", "Argument[self]", "pointer-access", "df-generated"] - ["lang:alloc", "<[_]>::sort_by", "Argument[self]", "pointer-access", "df-generated"] @@ -703,6 +703,6 @@ extensions: - ["lang:alloc", "crate::collections::btree::mem::take_mut", "Argument[0]", "pointer-access", "df-generated"] - addsTo: pack: codeql/rust-all - extensible: sourceModel + extensible: sourceModelDeprecated data: - ["lang:alloc", "::drop", "Argument[self]", "pointer-invalidate", "df-generated"] diff --git a/rust/ql/lib/ext/generated/rust/lang-core.model.yml b/rust/ql/lib/ext/generated/rust/lang-core.model.yml index 207ad64f963d..f08c7469e550 100644 --- a/rust/ql/lib/ext/generated/rust/lang-core.model.yml +++ b/rust/ql/lib/ext/generated/rust/lang-core.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["lang:core", "<&_ as crate::borrow::Borrow>::borrow", "Argument[self].Reference.Reference", "ReturnValue.Reference", "value", "dfc-generated"] - ["lang:core", "<&_ as crate::clone::Clone>::clone", "Argument[self].Reference", "ReturnValue", "value", "dfc-generated"] @@ -3162,7 +3162,7 @@ extensions: - ["lang:core", "crate::str::validations::next_code_point", "Argument[0].Element", "ReturnValue", "value", "dfc-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["lang:core", "<[_]>::select_nth_unstable", "Argument[0]", "log-injection", "df-generated"] - ["lang:core", "<[_]>::select_nth_unstable_by", "Argument[0]", "log-injection", "df-generated"] @@ -3192,7 +3192,7 @@ extensions: - ["lang:core", "crate::slice::sort::stable::sort", "Argument[0]", "pointer-access", "df-generated"] - addsTo: pack: codeql/rust-all - extensible: sourceModel + extensible: sourceModelDeprecated data: - ["lang:core", "<[crate::mem::maybe_uninit::MaybeUninit]>::assume_init_drop", "Argument[self]", "pointer-invalidate", "df-generated"] - ["lang:core", "crate::intrinsics::drop_in_place", "Argument[0]", "pointer-invalidate", "df-generated"] diff --git a/rust/ql/lib/ext/generated/rust/lang-other.model.yml b/rust/ql/lib/ext/generated/rust/lang-other.model.yml index 5c88c9358518..9966c5313e52 100644 --- a/rust/ql/lib/ext/generated/rust/lang-other.model.yml +++ b/rust/ql/lib/ext/generated/rust/lang-other.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["lang:other", "::set", "Argument[0]", "Argument[self]", "taint", "df-generated"] - ["lang:other", "::unset", "Argument[0]", "Argument[self]", "taint", "df-generated"] diff --git a/rust/ql/lib/ext/generated/rust/lang-proc_macro.model.yml b/rust/ql/lib/ext/generated/rust/lang-proc_macro.model.yml index 6dd0043d3f70..e8a9ec56f285 100644 --- a/rust/ql/lib/ext/generated/rust/lang-proc_macro.model.yml +++ b/rust/ql/lib/ext/generated/rust/lang-proc_macro.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["lang:proc_macro", "<&[u8] as crate::bridge::Mark>::mark", "Argument[0]", "ReturnValue", "value", "dfc-generated"] - ["lang:proc_macro", "<&[u8] as crate::bridge::Unmark>::unmark", "Argument[self]", "ReturnValue", "value", "dfc-generated"] @@ -128,7 +128,7 @@ extensions: - ["lang:proc_macro", "crate::bridge::client::state::with", "Argument[0].ReturnValue", "ReturnValue", "value", "dfc-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["lang:proc_macro", "::new", "Argument[0]", "log-injection", "df-generated"] - ["lang:proc_macro", "::new_raw", "Argument[0]", "log-injection", "df-generated"] diff --git a/rust/ql/lib/ext/generated/rust/lang-std.model.yml b/rust/ql/lib/ext/generated/rust/lang-std.model.yml index 8d1c891f9324..7050005e8d13 100644 --- a/rust/ql/lib/ext/generated/rust/lang-std.model.yml +++ b/rust/ql/lib/ext/generated/rust/lang-std.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["lang:std", "<&[u8] as crate::io::BufRead>::consume", "Argument[self].Element", "Argument[self].Reference.Reference", "value", "dfc-generated"] - ["lang:std", "<&[u8] as crate::io::BufRead>::fill_buf", "Argument[self].Reference", "ReturnValue.Field[core::result::Result::Ok(0)]", "value", "dfc-generated"] @@ -742,7 +742,7 @@ extensions: - ["lang:std", "crate::thread::with_current_name", "Argument[0].ReturnValue", "ReturnValue", "value", "dfc-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["lang:std", "<&crate::io::stdio::Stderr as crate::io::Write>::write", "Argument[0]", "log-injection", "df-generated"] - ["lang:std", "<&crate::io::stdio::Stderr as crate::io::Write>::write_all", "Argument[0]", "log-injection", "df-generated"] @@ -805,7 +805,7 @@ extensions: - ["lang:std", "crate::sys_common::wtf8::slice_error_fail", "Argument[2]", "log-injection", "df-generated"] - addsTo: pack: codeql/rust-all - extensible: sourceModel + extensible: sourceModelDeprecated data: - ["lang:std", "::dealloc", "Argument[0]", "pointer-invalidate", "df-generated"] - ["lang:std", "::open_buffered", "ReturnValue", "file", "df-generated"] diff --git a/rust/ql/lib/ext/generated/rust/repo-dylib-dep.model.yml b/rust/ql/lib/ext/generated/rust/repo-dylib-dep.model.yml index 38b672c31b2e..426b17653465 100644 --- a/rust/ql/lib/ext/generated/rust/repo-dylib-dep.model.yml +++ b/rust/ql/lib/ext/generated/rust/repo-dylib-dep.model.yml @@ -2,6 +2,6 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo::dylib-dep", "crate::foo", "Argument[0]", "Argument[1].Parameter[0]", "value", "dfc-generated"] diff --git a/rust/ql/lib/ext/generated/rust/repo-https-github.com-rust-lang-backtrace-rs-backtrace.model.yml b/rust/ql/lib/ext/generated/rust/repo-https-github.com-rust-lang-backtrace-rs-backtrace.model.yml index 3be680a3b418..db50a4bd3f0e 100644 --- a/rust/ql/lib/ext/generated/rust/repo-https-github.com-rust-lang-backtrace-rs-backtrace.model.yml +++ b/rust/ql/lib/ext/generated/rust/repo-https-github.com-rust-lang-backtrace-rs-backtrace.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/rust-lang/backtrace-rs:backtrace", "::sp", "Argument[self]", "ReturnValue", "taint", "df-generated"] - ["repo:https://github.com/rust-lang/backtrace-rs:backtrace", "::clone", "Argument[self].Reference.Field[as_if_std::the_backtrace_crate::backtrace::libunwind::Frame::Cloned::sp].Field[backtrace::backtrace::libunwind::Frame::Cloned::sp].Field[std::backtrace_rs::backtrace::libunwind::Frame::Cloned::sp]", "ReturnValue.Field[as_if_std::the_backtrace_crate::backtrace::libunwind::Frame::Cloned::sp].Field[backtrace::backtrace::libunwind::Frame::Cloned::sp].Field[std::backtrace_rs::backtrace::libunwind::Frame::Cloned::sp]", "value", "dfc-generated"] @@ -31,12 +31,12 @@ extensions: - ["repo:https://github.com/rust-lang/backtrace-rs:backtrace", "crate::symbolize::gimli::elf::handle_split_dwarf", "Argument[2]", "ReturnValue", "taint", "df-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/rust-lang/backtrace-rs:backtrace", "::new", "Argument[0]", "path-injection", "df-generated"] - addsTo: pack: codeql/rust-all - extensible: sourceModel + extensible: sourceModelDeprecated data: - ["repo:https://github.com/rust-lang/backtrace-rs:backtrace", "::new", "ReturnValue", "file", "df-generated"] - ["repo:https://github.com/rust-lang/backtrace-rs:backtrace", "crate::symbolize::gimli::parse_running_mmaps::parse_maps", "ReturnValue", "file", "df-generated"] diff --git a/rust/ql/lib/ext/generated/rust/repo-https-github.com-rust-lang-portable-simd-core_simd.model.yml b/rust/ql/lib/ext/generated/rust/repo-https-github.com-rust-lang-portable-simd-core_simd.model.yml index 4cff3c930294..7a6434f57a8a 100644 --- a/rust/ql/lib/ext/generated/rust/repo-https-github.com-rust-lang-portable-simd-core_simd.model.yml +++ b/rust/ql/lib/ext/generated/rust/repo-https-github.com-rust-lang-portable-simd-core_simd.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/rust-lang/portable-simd:core_simd", "::bitand", "Argument[0]", "ReturnValue", "taint", "df-generated"] - ["repo:https://github.com/rust-lang/portable-simd:core_simd", "::bitor", "Argument[0]", "ReturnValue", "taint", "df-generated"] diff --git a/rust/ql/lib/ext/generated/rust/repo-https-github.com-rust-lang-stdarch-core_arch.model.yml b/rust/ql/lib/ext/generated/rust/repo-https-github.com-rust-lang-stdarch-core_arch.model.yml index d4a10cbcbd96..c12588236efd 100644 --- a/rust/ql/lib/ext/generated/rust/repo-https-github.com-rust-lang-stdarch-core_arch.model.yml +++ b/rust/ql/lib/ext/generated/rust/repo-https-github.com-rust-lang-stdarch-core_arch.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/rust-lang/stdarch:core_arch", "::from_array", "Argument[0]", "ReturnValue.Field[core::core_arch::simd::f16x16(0)].Field[core_arch::core_arch::simd::f16x16(0)]", "value", "dfc-generated"] - ["repo:https://github.com/rust-lang/stdarch:core_arch", "::new", "Argument[0]", "ReturnValue.Field[core::core_arch::simd::f16x16(0)].Field[core_arch::core_arch::simd::f16x16(0)].Element", "value", "dfc-generated"] @@ -1132,7 +1132,7 @@ extensions: - ["repo:https://github.com/rust-lang/stdarch:core_arch", "crate::core_arch::x86_64::tbm::_tzmsk_u64", "Argument[0]", "ReturnValue", "taint", "df-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/rust-lang/stdarch:core_arch", "crate::core_arch::x86::avx512bw::_load_mask32", "Argument[0]", "pointer-access", "df-generated"] - ["repo:https://github.com/rust-lang/stdarch:core_arch", "crate::core_arch::x86::avx512bw::_load_mask64", "Argument[0]", "pointer-access", "df-generated"] diff --git a/rust/ql/lib/ext/generated/rust/repo-intrinsic-test.model.yml b/rust/ql/lib/ext/generated/rust/repo-intrinsic-test.model.yml index 5fa5019e3020..87535d51b1fe 100644 --- a/rust/ql/lib/ext/generated/rust/repo-intrinsic-test.model.yml +++ b/rust/ql/lib/ext/generated/rust/repo-intrinsic-test.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo::intrinsic-test", "::from_c", "Argument[0]", "ReturnValue.Field[intrinsic-test::argument::Argument::pos]", "value", "dfc-generated"] - ["repo::intrinsic-test", "::from_c", "Argument[1].Element", "ReturnValue.Field[intrinsic-test::argument::Argument::name].Reference", "value", "dfc-generated"] @@ -29,7 +29,7 @@ extensions: - ["repo::intrinsic-test", "::from_str", "Argument[0]", "ReturnValue", "taint", "df-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo::intrinsic-test", "::from_c", "Argument[1]", "log-injection", "df-generated"] - ["repo::intrinsic-test", "::generate_loop_c", "Argument[self]", "log-injection", "df-generated"] @@ -47,6 +47,6 @@ extensions: - ["repo::intrinsic-test", "crate::values::value_for_array", "Argument[0]", "log-injection", "df-generated"] - addsTo: pack: codeql/rust-all - extensible: sourceModel + extensible: sourceModelDeprecated data: - ["repo::intrinsic-test", "crate::json_parser::get_neon_intrinsics", "ReturnValue", "file", "df-generated"] diff --git a/rust/ql/lib/ext/generated/rust/repo-std_float.model.yml b/rust/ql/lib/ext/generated/rust/repo-std_float.model.yml index 8f7ea31908df..92150d0d52cb 100644 --- a/rust/ql/lib/ext/generated/rust/repo-std_float.model.yml +++ b/rust/ql/lib/ext/generated/rust/repo-std_float.model.yml @@ -2,6 +2,6 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo::std_float", "::fract", "Argument[self]", "ReturnValue", "taint", "df-generated"] diff --git a/rust/ql/lib/ext/generated/rust/repo-stdarch-gen-arm.model.yml b/rust/ql/lib/ext/generated/rust/repo-stdarch-gen-arm.model.yml index 6761c2a79bfa..fa28fd6eb4c4 100644 --- a/rust/ql/lib/ext/generated/rust/repo-stdarch-gen-arm.model.yml +++ b/rust/ql/lib/ext/generated/rust/repo-stdarch-gen-arm.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo::stdarch-gen-arm", "::make_assertion_from_constraint", "Argument[0]", "ReturnValue", "taint", "df-generated"] - ["repo::stdarch-gen-arm", "::make_assertion_from_constraint", "Argument[self]", "ReturnValue", "taint", "df-generated"] @@ -69,7 +69,7 @@ extensions: - ["repo::stdarch-gen-arm", "crate::fn_suffix::make_neon_suffix", "Argument[0]", "ReturnValue", "taint", "df-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo::stdarch-gen-arm", "::to_tokens", "Argument[self]", "log-injection", "df-generated"] - ["repo::stdarch-gen-arm", "::to_tokens", "Argument[self]", "log-injection", "df-generated"] diff --git a/rust/ql/lib/ext/generated/rust/repo-stdarch-gen-loongarch.model.yml b/rust/ql/lib/ext/generated/rust/repo-stdarch-gen-loongarch.model.yml index 845be2753852..691d36638ab3 100644 --- a/rust/ql/lib/ext/generated/rust/repo-stdarch-gen-loongarch.model.yml +++ b/rust/ql/lib/ext/generated/rust/repo-stdarch-gen-loongarch.model.yml @@ -2,6 +2,6 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo::stdarch-gen-loongarch", "::from", "Argument[0]", "ReturnValue.Field[stdarch-gen-loongarch::Lines::lines]", "value", "dfc-generated"] diff --git a/rust/ql/lib/ext/generated/rust/repo-stdarch-test.model.yml b/rust/ql/lib/ext/generated/rust/repo-stdarch-test.model.yml index 25fa198710e3..bbe62b0a4aac 100644 --- a/rust/ql/lib/ext/generated/rust/repo-stdarch-test.model.yml +++ b/rust/ql/lib/ext/generated/rust/repo-stdarch-test.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo::stdarch-test", "crate::assert", "Argument[1]", "log-injection", "df-generated"] - ["repo::stdarch-test", "crate::assert", "Argument[2]", "log-injection", "df-generated"] diff --git a/rust/ql/lib/ext/generated/rust/repo-stdarch_examples.model.yml b/rust/ql/lib/ext/generated/rust/repo-stdarch_examples.model.yml index 77f55ca022e6..f7a10c665020 100644 --- a/rust/ql/lib/ext/generated/rust/repo-stdarch_examples.model.yml +++ b/rust/ql/lib/ext/generated/rust/repo-stdarch_examples.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo::stdarch_examples", "::add", "Argument[0]", "Argument[self].Field[connect5::List::p_move].Element", "value", "dfc-generated"] - ["repo::stdarch_examples", "::size", "Argument[self].Field[connect5::List::p_size]", "ReturnValue", "value", "dfc-generated"] diff --git a/rust/ql/lib/ext/generated/rust/repo-test_helpers.model.yml b/rust/ql/lib/ext/generated/rust/repo-test_helpers.model.yml index 52e8630e7022..d39494b8a362 100644 --- a/rust/ql/lib/ext/generated/rust/repo-test_helpers.model.yml +++ b/rust/ql/lib/ext/generated/rust/repo-test_helpers.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo::test_helpers", "::simplify", "Argument[self].Field[test_helpers::array::ArrayValueTree::shrinker]", "Argument[self].Field[test_helpers::array::ArrayValueTree::last_shrinker].Field[core::option::Option::Some(0)]", "value", "dfc-generated"] - ["repo::test_helpers", "::new", "Argument[0]", "ReturnValue.Field[test_helpers::array::UniformArrayStrategy::strategy]", "value", "dfc-generated"] diff --git a/rust/ql/lib/ext/generated/serde/repo-https-github.com-serde-rs-serde-serde.model.yml b/rust/ql/lib/ext/generated/serde/repo-https-github.com-serde-rs-serde-serde.model.yml index e58b5f3f1a37..75c62ab3cc0f 100644 --- a/rust/ql/lib/ext/generated/serde/repo-https-github.com-serde-rs-serde-serde.model.yml +++ b/rust/ql/lib/ext/generated/serde/repo-https-github.com-serde-rs-serde-serde.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/serde-rs/serde:serde", "<&[u8] as crate::__private::de::IdentifierDeserializer>::from", "Argument[self]", "ReturnValue.Field[serde::de::value::BytesDeserializer::value]", "value", "dfc-generated"] - ["repo:https://github.com/serde-rs/serde:serde", "<&[u8] as crate::de::IntoDeserializer>::into_deserializer", "Argument[self]", "ReturnValue.Field[serde::de::value::BytesDeserializer::value]", "value", "dfc-generated"] @@ -216,6 +216,6 @@ extensions: - ["repo:https://github.com/serde-rs/serde:serde", "crate::de::value::private::unit_only", "Argument[0]", "ReturnValue.Field[0]", "value", "dfc-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/serde-rs/serde:serde", "::serialize_map", "Argument[0]", "pointer-access", "df-generated"] diff --git a/rust/ql/lib/ext/generated/serde/repo-https-github.com-serde-rs-serde-serde_derive.model.yml b/rust/ql/lib/ext/generated/serde/repo-https-github.com-serde-rs-serde-serde_derive.model.yml index e17e342a26ca..2c97f209b9fb 100644 --- a/rust/ql/lib/ext/generated/serde/repo-https-github.com-serde-rs-serde-serde_derive.model.yml +++ b/rust/ql/lib/ext/generated/serde/repo-https-github.com-serde-rs-serde-serde_derive.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/serde-rs/serde:serde_derive", "::as_ref", "Argument[self].Field[serde_derive::fragment::Fragment::Block(0)]", "ReturnValue", "value", "dfc-generated"] - ["repo:https://github.com/serde-rs/serde:serde_derive", "::as_ref", "Argument[self].Field[serde_derive::fragment::Fragment::Expr(0)]", "ReturnValue", "value", "dfc-generated"] diff --git a/rust/ql/lib/ext/generated/serde/repo-serde_test_suite.model.yml b/rust/ql/lib/ext/generated/serde/repo-serde_test_suite.model.yml index a2ddcdc6bea1..4405cf828e88 100644 --- a/rust/ql/lib/ext/generated/serde/repo-serde_test_suite.model.yml +++ b/rust/ql/lib/ext/generated/serde/repo-serde_test_suite.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo::serde_test_suite", "::variant_seed", "Argument[self]", "ReturnValue.Field[core::result::Result::Ok(0)].Field[1]", "value", "dfc-generated"] - ["repo::serde_test_suite", "::visit_byte_buf", "Argument[0]", "ReturnValue.Field[core::result::Result::Ok(0)]", "value", "dfc-generated"] diff --git a/rust/ql/lib/ext/generated/smallvec/repo-https-github.com-servo-rust-smallvec-smallvec.model.yml b/rust/ql/lib/ext/generated/smallvec/repo-https-github.com-servo-rust-smallvec-smallvec.model.yml index 14b626f34ac9..48ffb1bfe447 100644 --- a/rust/ql/lib/ext/generated/smallvec/repo-https-github.com-servo-rust-smallvec-smallvec.model.yml +++ b/rust/ql/lib/ext/generated/smallvec/repo-https-github.com-servo-rust-smallvec-smallvec.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/servo/rust-smallvec:smallvec", "::clone", "Argument[self].Reference", "ReturnValue", "value", "dfc-generated"] - ["repo:https://github.com/servo/rust-smallvec:smallvec", "::next", "Argument[self]", "ReturnValue", "taint", "df-generated"] @@ -40,7 +40,7 @@ extensions: - ["repo:https://github.com/servo/rust-smallvec:smallvec", "::size_hint", "Argument[self].Field[smallvec::tests::insert_many_panic::BadIter::hint]", "ReturnValue.Field[0]", "value", "dfc-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/servo/rust-smallvec:smallvec", "::into_inner", "Argument[self]", "pointer-access", "df-generated"] - ["repo:https://github.com/servo/rust-smallvec:smallvec", "::insert", "Argument[0]", "log-injection", "df-generated"] @@ -49,6 +49,6 @@ extensions: - ["repo:https://github.com/servo/rust-smallvec:smallvec", "::remove", "Argument[self]", "log-injection", "df-generated"] - addsTo: pack: codeql/rust-all - extensible: sourceModel + extensible: sourceModelDeprecated data: - ["repo:https://github.com/servo/rust-smallvec:smallvec", "::drop", "Argument[self]", "pointer-invalidate", "df-generated"] diff --git a/rust/ql/lib/ext/generated/tokio/repo-benches.model.yml b/rust/ql/lib/ext/generated/tokio/repo-benches.model.yml index d371cb1ae58e..16d65ece86d9 100644 --- a/rust/ql/lib/ext/generated/tokio/repo-benches.model.yml +++ b/rust/ql/lib/ext/generated/tokio/repo-benches.model.yml @@ -2,6 +2,6 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo::benches", "::poll_read", "Argument[1]", "log-injection", "df-generated"] diff --git a/rust/ql/lib/ext/generated/tokio/repo-examples.model.yml b/rust/ql/lib/ext/generated/tokio/repo-examples.model.yml index 6ad582e06bff..e06ff8659f51 100644 --- a/rust/ql/lib/ext/generated/tokio/repo-examples.model.yml +++ b/rust/ql/lib/ext/generated/tokio/repo-examples.model.yml @@ -2,6 +2,6 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: sourceModel + extensible: sourceModelDeprecated data: - ["repo::examples", "crate::connect", "ReturnValue", "remote", "df-generated"] diff --git a/rust/ql/lib/ext/generated/tokio/repo-https-github.com-tokio-rs-tokio-tokio-macros.model.yml b/rust/ql/lib/ext/generated/tokio/repo-https-github.com-tokio-rs-tokio-tokio-macros.model.yml index d75cefcd1ebe..cee63758be29 100644 --- a/rust/ql/lib/ext/generated/tokio/repo-https-github.com-tokio-rs-tokio-tokio-macros.model.yml +++ b/rust/ql/lib/ext/generated/tokio/repo-https-github.com-tokio-rs-tokio-tokio-macros.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/tokio-rs/tokio:tokio-macros", "crate::entry::main", "Argument[1]", "ReturnValue", "value", "dfc-generated"] - ["repo:https://github.com/tokio-rs/tokio:tokio-macros", "crate::entry::test", "Argument[1]", "ReturnValue", "value", "dfc-generated"] diff --git a/rust/ql/lib/ext/generated/tokio/repo-https-github.com-tokio-rs-tokio-tokio-stream.model.yml b/rust/ql/lib/ext/generated/tokio/repo-https-github.com-tokio-rs-tokio-tokio-stream.model.yml index f9f600e7247a..a24ca2465d55 100644 --- a/rust/ql/lib/ext/generated/tokio/repo-https-github.com-tokio-rs-tokio-tokio-stream.model.yml +++ b/rust/ql/lib/ext/generated/tokio/repo-https-github.com-tokio-rs-tokio-tokio-stream.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/tokio-rs/tokio:tokio-stream", "::extend", "Argument[2].Field[core::result::Result::Err(0)]", "Argument[1].Reference.Field[core::result::Result::Err(0)]", "value", "dfc-generated"] - ["repo:https://github.com/tokio-rs/tokio:tokio-stream", "::into_inner", "Argument[self].Field[tokio_stream::stream_close::StreamNotifyClose::inner]", "ReturnValue", "value", "dfc-generated"] @@ -185,7 +185,7 @@ extensions: - ["repo:https://github.com/tokio-rs/tokio:tokio-stream", "crate::stream_ext::throttle::throttle", "Argument[1]", "ReturnValue.Field[tokio_stream::stream_ext::throttle::Throttle::stream]", "value", "dfc-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/tokio-rs/tokio:tokio-stream", "::insert", "Argument[self]", "log-injection", "df-generated"] - ["repo:https://github.com/tokio-rs/tokio:tokio-stream", "::poll_next_many", "Argument[self]", "log-injection", "df-generated"] diff --git a/rust/ql/lib/ext/generated/tokio/repo-https-github.com-tokio-rs-tokio-tokio-test.model.yml b/rust/ql/lib/ext/generated/tokio/repo-https-github.com-tokio-rs-tokio-tokio-test.model.yml index 14735129fb2b..caa755b005e5 100644 --- a/rust/ql/lib/ext/generated/tokio/repo-https-github.com-tokio-rs-tokio-tokio-test.model.yml +++ b/rust/ql/lib/ext/generated/tokio/repo-https-github.com-tokio-rs-tokio-tokio-test.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/tokio-rs/tokio:tokio-test", "::build", "Argument[self]", "ReturnValue", "taint", "df-generated"] - ["repo:https://github.com/tokio-rs/tokio:tokio-test", "::name", "Argument[self]", "ReturnValue", "value", "dfc-generated"] @@ -25,7 +25,7 @@ extensions: - ["repo:https://github.com/tokio-rs/tokio:tokio-test", "crate::task::spawn", "Argument[0]", "ReturnValue.Field[tokio_test::task::Spawn::future].Reference", "value", "dfc-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/tokio-rs/tokio:tokio-test", "::read", "Argument[self]", "log-injection", "df-generated"] - ["repo:https://github.com/tokio-rs/tokio:tokio-test", "::read_error", "Argument[self]", "log-injection", "df-generated"] diff --git a/rust/ql/lib/ext/generated/tokio/repo-https-github.com-tokio-rs-tokio-tokio-util.model.yml b/rust/ql/lib/ext/generated/tokio/repo-https-github.com-tokio-rs-tokio-tokio-util.model.yml index ff79818fb171..ef0a59f70ac4 100644 --- a/rust/ql/lib/ext/generated/tokio/repo-https-github.com-tokio-rs-tokio-tokio-util.model.yml +++ b/rust/ql/lib/ext/generated/tokio/repo-https-github.com-tokio-rs-tokio-tokio-util.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/tokio-rs/tokio:tokio-util", "::from", "Argument[0]", "ReturnValue.Field[length_delimited::Op::Data(0)]", "value", "dfc-generated"] - ["repo:https://github.com/tokio-rs/tokio:tokio-util", "::max_length", "Argument[self].Field[tokio_util::codec::any_delimiter_codec::AnyDelimiterCodec::max_length]", "ReturnValue", "value", "dfc-generated"] @@ -260,7 +260,7 @@ extensions: - ["repo:https://github.com/tokio-rs/tokio:tokio-util", "::read_buffer_mut", "Argument[self].Field[tokio_util::udp::frame::UdpFramed::rd]", "ReturnValue.Reference", "value", "dfc-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/tokio-rs/tokio:tokio-util", "::write", "Argument[0]", "log-injection", "df-generated"] - ["repo:https://github.com/tokio-rs/tokio:tokio-util", "::poll_read", "Argument[1]", "log-injection", "df-generated"] diff --git a/rust/ql/lib/ext/generated/tokio/repo-https-github.com-tokio-rs-tokio-tokio.model.yml b/rust/ql/lib/ext/generated/tokio/repo-https-github.com-tokio-rs-tokio-tokio.model.yml index ed506488694d..5c27e57efa89 100644 --- a/rust/ql/lib/ext/generated/tokio/repo-https-github.com-tokio-rs-tokio-tokio.model.yml +++ b/rust/ql/lib/ext/generated/tokio/repo-https-github.com-tokio-rs-tokio-tokio.model.yml @@ -2,7 +2,7 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: summaryModel + extensible: summaryModelDeprecated data: - ["repo:https://github.com/tokio-rs/tokio:tokio", "<&[u8] as crate::io::async_buf_read::AsyncBufRead>::consume", "Argument[self].Element", "Argument[self].Reference.Reference", "value", "dfc-generated"] - ["repo:https://github.com/tokio-rs/tokio:tokio", "<&[u8] as crate::io::async_buf_read::AsyncBufRead>::poll_fill_buf", "Argument[self].Reference", "ReturnValue.Field[core::task::poll::Poll::Ready(0)].Field[core::result::Result::Ok(0)]", "value", "dfc-generated"] @@ -1105,7 +1105,7 @@ extensions: - ["repo:https://github.com/tokio-rs/tokio:tokio", "crate::util::typeid::try_transmute", "Argument[0]", "ReturnValue.Field[core::result::Result::Err(0)]", "value", "dfc-generated"] - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo:https://github.com/tokio-rs/tokio:tokio", "<&[u8] as crate::io::async_read::AsyncRead>::poll_read", "Argument[1]", "log-injection", "df-generated"] - ["repo:https://github.com/tokio-rs/tokio:tokio", "::poll_read", "Argument[1]", "log-injection", "df-generated"] @@ -1152,7 +1152,7 @@ extensions: - ["repo:https://github.com/tokio-rs/tokio:tokio", "crate::support::signal::send_signal", "Argument[0]", "log-injection", "df-generated"] - addsTo: pack: codeql/rust-all - extensible: sourceModel + extensible: sourceModelDeprecated data: - ["repo:https://github.com/tokio-rs/tokio:tokio", "::file_name", "ReturnValue", "file", "df-generated"] - ["repo:https://github.com/tokio-rs/tokio:tokio", "::path", "ReturnValue", "file", "df-generated"] diff --git a/rust/ql/test/library-tests/dataflow/models/models.expected b/rust/ql/test/library-tests/dataflow/models/models.expected index 5e1e16eb4288..9016ebae47e9 100644 --- a/rust/ql/test/library-tests/dataflow/models/models.expected +++ b/rust/ql/test/library-tests/dataflow/models/models.expected @@ -1,25 +1,25 @@ models -| 1 | Sink: repo::test; ::sink; test-sink; Argument[self].Field[main::MyFieldEnum::D::field_d] | -| 2 | Sink: repo::test; crate::enum_sink; test-sink; Argument[0].Field[main::MyFieldEnum::C::field_c] | -| 3 | Sink: repo::test; crate::simple_sink; test-sink; Argument[0] | -| 4 | Source: repo::test; ::source; test-source; ReturnValue.Field[main::MyFieldEnum::C::field_c] | -| 5 | Source: repo::test; crate::arg_source; test-source; Argument[0] | -| 6 | Source: repo::test; crate::enum_source; test-source; ReturnValue.Field[main::MyFieldEnum::D::field_d] | -| 7 | Source: repo::test; crate::simple_source; test-source; ReturnValue | -| 8 | Summary: repo::test; crate::apply; Argument[0]; Argument[1].Parameter[0]; value | -| 9 | Summary: repo::test; crate::apply; Argument[1].ReturnValue; ReturnValue; value | -| 10 | Summary: repo::test; crate::coerce; Argument[0]; ReturnValue; taint | -| 11 | Summary: repo::test; crate::get_array_element; Argument[0].Element; ReturnValue; value | -| 12 | Summary: repo::test; crate::get_async_number; Argument[0]; ReturnValue.Future; value | -| 13 | Summary: repo::test; crate::get_struct_field; Argument[0].Field[main::MyStruct::field1]; ReturnValue; value | -| 14 | Summary: repo::test; crate::get_tuple_element; Argument[0].Field[0]; ReturnValue; value | -| 15 | Summary: repo::test; crate::get_var_field; Argument[0].Field[main::MyFieldEnum::C::field_c]; ReturnValue; value | -| 16 | Summary: repo::test; crate::get_var_pos; Argument[0].Field[main::MyPosEnum::A(0)]; ReturnValue; value | -| 17 | Summary: repo::test; crate::set_array_element; Argument[0]; ReturnValue.Element; value | -| 18 | Summary: repo::test; crate::set_struct_field; Argument[0]; ReturnValue.Field[main::MyStruct::field2]; value | -| 19 | Summary: repo::test; crate::set_tuple_element; Argument[0]; ReturnValue.Field[1]; value | -| 20 | Summary: repo::test; crate::set_var_field; Argument[0]; ReturnValue.Field[main::MyFieldEnum::D::field_d]; value | -| 21 | Summary: repo::test; crate::set_var_pos; Argument[0]; ReturnValue.Field[main::MyPosEnum::B(0)]; value | +| 1 | Sink: ::sink; Argument[self].Field[main::MyFieldEnum::D::field_d]; test-sink | +| 2 | Sink: main::enum_sink; Argument[0].Field[main::MyFieldEnum::C::field_c]; test-sink | +| 3 | Sink: main::simple_sink; Argument[0]; test-sink | +| 4 | Source: ::source; ReturnValue.Field[main::MyFieldEnum::C::field_c]; test-source | +| 5 | Source: main::arg_source; Argument[0]; test-source | +| 6 | Source: main::enum_source; ReturnValue.Field[main::MyFieldEnum::D::field_d]; test-source | +| 7 | Source: main::simple_source; ReturnValue; test-source | +| 8 | Summary: main::apply; Argument[0]; Argument[1].Parameter[0]; value | +| 9 | Summary: main::apply; Argument[1].ReturnValue; ReturnValue; value | +| 10 | Summary: main::coerce; Argument[0]; ReturnValue; taint | +| 11 | Summary: main::get_array_element; Argument[0].Element; ReturnValue; value | +| 12 | Summary: main::get_async_number; Argument[0]; ReturnValue.Future; value | +| 13 | Summary: main::get_struct_field; Argument[0].Field[main::MyStruct::field1]; ReturnValue; value | +| 14 | Summary: main::get_tuple_element; Argument[0].Field[0]; ReturnValue; value | +| 15 | Summary: main::get_var_field; Argument[0].Field[main::MyFieldEnum::C::field_c]; ReturnValue; value | +| 16 | Summary: main::get_var_pos; Argument[0].Field[main::MyPosEnum::A(0)]; ReturnValue; value | +| 17 | Summary: main::set_array_element; Argument[0]; ReturnValue.Element; value | +| 18 | Summary: main::set_struct_field; Argument[0]; ReturnValue.Field[main::MyStruct::field2]; value | +| 19 | Summary: main::set_tuple_element; Argument[0]; ReturnValue.Field[1]; value | +| 20 | Summary: main::set_var_field; Argument[0]; ReturnValue.Field[main::MyFieldEnum::D::field_d]; value | +| 21 | Summary: main::set_var_pos; Argument[0]; ReturnValue.Field[main::MyPosEnum::B(0)]; value | edges | main.rs:15:9:15:9 | s | main.rs:16:19:16:19 | s | provenance | | | main.rs:15:9:15:9 | s | main.rs:16:19:16:19 | s | provenance | | diff --git a/rust/ql/test/library-tests/dataflow/models/models.ext.yml b/rust/ql/test/library-tests/dataflow/models/models.ext.yml index db814cce8f56..ba5fc48cf247 100644 --- a/rust/ql/test/library-tests/dataflow/models/models.ext.yml +++ b/rust/ql/test/library-tests/dataflow/models/models.ext.yml @@ -3,32 +3,32 @@ extensions: pack: codeql/rust-all extensible: sourceModel data: - - ["repo::test", "crate::simple_source", "ReturnValue", "test-source", "manual"] - - ["repo::test", "crate::enum_source", "ReturnValue.Field[main::MyFieldEnum::D::field_d]", "test-source", "manual"] - - ["repo::test", "::source", "ReturnValue.Field[main::MyFieldEnum::C::field_c]", "test-source", "manual"] - - ["repo::test", "crate::arg_source", "Argument[0]", "test-source", "manual"] + - ["main::simple_source", "ReturnValue", "test-source", "manual"] + - ["main::enum_source", "ReturnValue.Field[main::MyFieldEnum::D::field_d]", "test-source", "manual"] + - ["::source", "ReturnValue.Field[main::MyFieldEnum::C::field_c]", "test-source", "manual"] + - ["main::arg_source", "Argument[0]", "test-source", "manual"] - addsTo: pack: codeql/rust-all extensible: sinkModel data: - - ["repo::test", "crate::simple_sink", "Argument[0]", "test-sink", "manual"] - - ["repo::test", "crate::enum_sink", "Argument[0].Field[main::MyFieldEnum::C::field_c]", "test-sink", "manual"] - - ["repo::test", "::sink", "Argument[self].Field[main::MyFieldEnum::D::field_d]", "test-sink", "manual"] + - ["main::simple_sink", "Argument[0]", "test-sink", "manual"] + - ["main::enum_sink", "Argument[0].Field[main::MyFieldEnum::C::field_c]", "test-sink", "manual"] + - ["::sink", "Argument[self].Field[main::MyFieldEnum::D::field_d]", "test-sink", "manual"] - addsTo: pack: codeql/rust-all extensible: summaryModel data: - - ["repo::test", "crate::coerce", "Argument[0]", "ReturnValue", "taint", "manual"] - - ["repo::test", "crate::get_var_pos", "Argument[0].Field[main::MyPosEnum::A(0)]", "ReturnValue", "value", "manual"] - - ["repo::test", "crate::set_var_pos", "Argument[0]", "ReturnValue.Field[main::MyPosEnum::B(0)]", "value", "manual"] - - ["repo::test", "crate::get_var_field", "Argument[0].Field[main::MyFieldEnum::C::field_c]", "ReturnValue", "value", "manual"] - - ["repo::test", "crate::set_var_field", "Argument[0]", "ReturnValue.Field[main::MyFieldEnum::D::field_d]", "value", "manual"] - - ["repo::test", "crate::get_struct_field", "Argument[0].Field[main::MyStruct::field1]", "ReturnValue", "value", "manual"] - - ["repo::test", "crate::set_struct_field", "Argument[0]", "ReturnValue.Field[main::MyStruct::field2]", "value", "manual"] - - ["repo::test", "crate::get_array_element", "Argument[0].Element", "ReturnValue", "value", "manual"] - - ["repo::test", "crate::set_array_element", "Argument[0]", "ReturnValue.Element", "value", "manual"] - - ["repo::test", "crate::get_tuple_element", "Argument[0].Field[0]", "ReturnValue", "value", "manual"] - - ["repo::test", "crate::set_tuple_element", "Argument[0]", "ReturnValue.Field[1]", "value", "manual"] - - ["repo::test", "crate::apply", "Argument[0]", "Argument[1].Parameter[0]", "value", "manual"] - - ["repo::test", "crate::apply", "Argument[1].ReturnValue", "ReturnValue", "value", "manual"] - - ["repo::test", "crate::get_async_number", "Argument[0]", "ReturnValue.Future", "value", "manual"] + - ["main::coerce", "Argument[0]", "ReturnValue", "taint", "manual"] + - ["main::get_var_pos", "Argument[0].Field[main::MyPosEnum::A(0)]", "ReturnValue", "value", "manual"] + - ["main::set_var_pos", "Argument[0]", "ReturnValue.Field[main::MyPosEnum::B(0)]", "value", "manual"] + - ["main::get_var_field", "Argument[0].Field[main::MyFieldEnum::C::field_c]", "ReturnValue", "value", "manual"] + - ["main::set_var_field", "Argument[0]", "ReturnValue.Field[main::MyFieldEnum::D::field_d]", "value", "manual"] + - ["main::get_struct_field", "Argument[0].Field[main::MyStruct::field1]", "ReturnValue", "value", "manual"] + - ["main::set_struct_field", "Argument[0]", "ReturnValue.Field[main::MyStruct::field2]", "value", "manual"] + - ["main::get_array_element", "Argument[0].Element", "ReturnValue", "value", "manual"] + - ["main::set_array_element", "Argument[0]", "ReturnValue.Element", "value", "manual"] + - ["main::get_tuple_element", "Argument[0].Field[0]", "ReturnValue", "value", "manual"] + - ["main::set_tuple_element", "Argument[0]", "ReturnValue.Field[1]", "value", "manual"] + - ["main::apply", "Argument[0]", "Argument[1].Parameter[0]", "value", "manual"] + - ["main::apply", "Argument[1].ReturnValue", "ReturnValue", "value", "manual"] + - ["main::get_async_number", "Argument[0]", "ReturnValue.Future", "value", "manual"] diff --git a/rust/ql/test/query-tests/security/CWE-020/RegexInjection.expected b/rust/ql/test/query-tests/security/CWE-020/RegexInjection.expected index 81fbfbda158f..49ba42d13ef2 100644 --- a/rust/ql/test/query-tests/security/CWE-020/RegexInjection.expected +++ b/rust/ql/test/query-tests/security/CWE-020/RegexInjection.expected @@ -13,7 +13,7 @@ edges | main.rs:5:25:5:44 | { ... } | main.rs:5:25:5:44 | ...::must_use(...) | provenance | MaD:4 | | main.rs:6:26:6:30 | regex | main.rs:6:25:6:30 | ®ex | provenance | | models -| 1 | Source: lang:std; crate::env::var; environment; ReturnValue.Field[core::result::Result::Ok(0)] | +| 1 | Source: lang:std; crate::env::var; ReturnValue.Field[core::result::Result::Ok(0)]; environment | | 2 | Summary: lang:alloc; crate::fmt::format; Argument[0]; ReturnValue; taint | | 3 | Summary: lang:core; ::unwrap_or; Argument[self].Field[core::result::Result::Ok(0)]; ReturnValue; value | | 4 | Summary: lang:core; crate::hint::must_use; Argument[0]; ReturnValue; value | diff --git a/rust/ql/test/query-tests/security/CWE-022/TaintedPath.expected b/rust/ql/test/query-tests/security/CWE-022/TaintedPath.expected index 9821637a3a0d..71879802efa5 100644 --- a/rust/ql/test/query-tests/security/CWE-022/TaintedPath.expected +++ b/rust/ql/test/query-tests/security/CWE-022/TaintedPath.expected @@ -8,7 +8,7 @@ edges | src/main.rs:8:35:8:43 | file_name | src/main.rs:8:21:8:44 | ...::from(...) | provenance | MaD:2 | | src/main.rs:10:24:10:32 | file_path | src/main.rs:10:5:10:22 | ...::read_to_string | provenance | MaD:1 Sink:MaD:1 | models -| 1 | Sink: lang:std; crate::fs::read_to_string; path-injection; Argument[0] | +| 1 | Sink: lang:std; crate::fs::read_to_string; Argument[0]; path-injection | | 2 | Summary: lang:std; ::from; Argument[0]; ReturnValue; taint | nodes | src/main.rs:6:11:6:19 | file_name | semmle.label | file_name | diff --git a/rust/ql/test/query-tests/security/CWE-089/SqlInjection.expected b/rust/ql/test/query-tests/security/CWE-089/SqlInjection.expected index 1e0e215e5440..1a6b417ce67f 100644 --- a/rust/ql/test/query-tests/security/CWE-089/SqlInjection.expected +++ b/rust/ql/test/query-tests/security/CWE-089/SqlInjection.expected @@ -24,8 +24,8 @@ edges | sqlx.rs:54:26:54:39 | &remote_string [&ref] | sqlx.rs:54:9:54:22 | unsafe_query_2 [&ref] | provenance | | | sqlx.rs:54:27:54:39 | remote_string | sqlx.rs:54:26:54:39 | &remote_string [&ref] | provenance | | models -| 1 | Source: lang:std; crate::env::args; commandargs; ReturnValue.Element | -| 2 | Source: repo:https://github.com/seanmonstar/reqwest:reqwest; crate::blocking::get; remote; ReturnValue.Field[core::result::Result::Ok(0)] | +| 1 | Source: lang:std; crate::env::args; ReturnValue.Element; commandargs | +| 2 | Source: repo:https://github.com/seanmonstar/reqwest:reqwest; crate::blocking::get; ReturnValue.Field[core::result::Result::Ok(0)]; remote | | 3 | Summary: lang:alloc; ::as_str; Argument[self]; ReturnValue; value | | 4 | Summary: lang:core; ::unwrap_or; Argument[self].Field[core::option::Option::Some(0)]; ReturnValue; value | | 5 | Summary: lang:core; ::unwrap; Argument[self].Field[core::result::Result::Ok(0)]; ReturnValue; value | diff --git a/rust/ql/test/query-tests/security/CWE-311/CleartextTransmission.expected b/rust/ql/test/query-tests/security/CWE-311/CleartextTransmission.expected index 2782ec0222a8..4eb499670b26 100644 --- a/rust/ql/test/query-tests/security/CWE-311/CleartextTransmission.expected +++ b/rust/ql/test/query-tests/security/CWE-311/CleartextTransmission.expected @@ -51,10 +51,10 @@ edges | main.rs:33:50:33:57 | password | main.rs:33:23:33:57 | MacroExpr | provenance | | | main.rs:35:33:35:35 | url | main.rs:35:12:35:18 | request | provenance | MaD:2 Sink:MaD:2 | models -| 1 | Sink: repo:https://github.com/seanmonstar/reqwest:reqwest; ::post; transmission; Argument[0] | -| 2 | Sink: repo:https://github.com/seanmonstar/reqwest:reqwest; ::request; transmission; Argument[1] | -| 3 | Sink: repo:https://github.com/seanmonstar/reqwest:reqwest; ::request; transmission; Argument[1] | -| 4 | Sink: repo:https://github.com/seanmonstar/reqwest:reqwest; crate::blocking::get; transmission; Argument[0] | +| 1 | Sink: repo:https://github.com/seanmonstar/reqwest:reqwest; ::post; Argument[0]; transmission | +| 2 | Sink: repo:https://github.com/seanmonstar/reqwest:reqwest; ::request; Argument[1]; transmission | +| 3 | Sink: repo:https://github.com/seanmonstar/reqwest:reqwest; ::request; Argument[1]; transmission | +| 4 | Sink: repo:https://github.com/seanmonstar/reqwest:reqwest; crate::blocking::get; Argument[0]; transmission | | 5 | Summary: lang:alloc; crate::fmt::format; Argument[0]; ReturnValue; taint | | 6 | Summary: lang:core; ::unwrap; Argument[self].Field[core::result::Result::Ok(0)]; ReturnValue; value | | 7 | Summary: lang:core; crate::hint::must_use; Argument[0]; ReturnValue; value | diff --git a/rust/ql/test/query-tests/security/CWE-312/CleartextLogging.expected b/rust/ql/test/query-tests/security/CWE-312/CleartextLogging.expected index b0dbd91436a9..1f44e6c07bc9 100644 --- a/rust/ql/test/query-tests/security/CWE-312/CleartextLogging.expected +++ b/rust/ql/test/query-tests/security/CWE-312/CleartextLogging.expected @@ -200,40 +200,40 @@ edges | test_logging.rs:208:42:208:49 | password | test_logging.rs:208:26:208:49 | MacroExpr | provenance | | | test_logging.rs:211:28:211:51 | MacroExpr | test_logging.rs:211:13:211:52 | ...::panic_fmt | provenance | MaD:3 Sink:MaD:3 | | test_logging.rs:211:44:211:51 | password | test_logging.rs:211:28:211:51 | MacroExpr | provenance | | -| test_logging.rs:214:13:214:54 | ...::assert_failed [Some] | test_logging.rs:214:13:214:54 | ...::assert_failed | provenance | Sink:MaD:2 | -| test_logging.rs:214:30:214:53 | ...::Some(...) [Some] | test_logging.rs:214:13:214:54 | ...::assert_failed | provenance | MaD:2 Sink:MaD:2 | -| test_logging.rs:214:30:214:53 | ...::Some(...) [Some] | test_logging.rs:214:13:214:54 | ...::assert_failed [Some] | provenance | MaD:1 | +| test_logging.rs:214:13:214:54 | ...::assert_failed [Some] | test_logging.rs:214:13:214:54 | ...::assert_failed | provenance | Sink:MaD:1 | +| test_logging.rs:214:30:214:53 | ...::Some(...) [Some] | test_logging.rs:214:13:214:54 | ...::assert_failed | provenance | MaD:1 Sink:MaD:1 | +| test_logging.rs:214:30:214:53 | ...::Some(...) [Some] | test_logging.rs:214:13:214:54 | ...::assert_failed [Some] | provenance | MaD:2 | | test_logging.rs:214:30:214:53 | MacroExpr | test_logging.rs:214:30:214:53 | ...::Some(...) [Some] | provenance | | | test_logging.rs:214:46:214:53 | password | test_logging.rs:214:30:214:53 | MacroExpr | provenance | | -| test_logging.rs:217:13:217:54 | ...::assert_failed [Some] | test_logging.rs:217:13:217:54 | ...::assert_failed | provenance | Sink:MaD:2 | -| test_logging.rs:217:30:217:53 | ...::Some(...) [Some] | test_logging.rs:217:13:217:54 | ...::assert_failed | provenance | MaD:2 Sink:MaD:2 | -| test_logging.rs:217:30:217:53 | ...::Some(...) [Some] | test_logging.rs:217:13:217:54 | ...::assert_failed [Some] | provenance | MaD:1 | +| test_logging.rs:217:13:217:54 | ...::assert_failed [Some] | test_logging.rs:217:13:217:54 | ...::assert_failed | provenance | Sink:MaD:1 | +| test_logging.rs:217:30:217:53 | ...::Some(...) [Some] | test_logging.rs:217:13:217:54 | ...::assert_failed | provenance | MaD:1 Sink:MaD:1 | +| test_logging.rs:217:30:217:53 | ...::Some(...) [Some] | test_logging.rs:217:13:217:54 | ...::assert_failed [Some] | provenance | MaD:2 | | test_logging.rs:217:30:217:53 | MacroExpr | test_logging.rs:217:30:217:53 | ...::Some(...) [Some] | provenance | | | test_logging.rs:217:46:217:53 | password | test_logging.rs:217:30:217:53 | MacroExpr | provenance | | | test_logging.rs:220:34:220:57 | MacroExpr | test_logging.rs:220:13:220:58 | ...::panic_fmt | provenance | MaD:3 Sink:MaD:3 | | test_logging.rs:220:50:220:57 | password | test_logging.rs:220:34:220:57 | MacroExpr | provenance | | -| test_logging.rs:223:13:223:60 | ...::assert_failed [Some] | test_logging.rs:223:13:223:60 | ...::assert_failed | provenance | Sink:MaD:2 | -| test_logging.rs:223:36:223:59 | ...::Some(...) [Some] | test_logging.rs:223:13:223:60 | ...::assert_failed | provenance | MaD:2 Sink:MaD:2 | -| test_logging.rs:223:36:223:59 | ...::Some(...) [Some] | test_logging.rs:223:13:223:60 | ...::assert_failed [Some] | provenance | MaD:1 | +| test_logging.rs:223:13:223:60 | ...::assert_failed [Some] | test_logging.rs:223:13:223:60 | ...::assert_failed | provenance | Sink:MaD:1 | +| test_logging.rs:223:36:223:59 | ...::Some(...) [Some] | test_logging.rs:223:13:223:60 | ...::assert_failed | provenance | MaD:1 Sink:MaD:1 | +| test_logging.rs:223:36:223:59 | ...::Some(...) [Some] | test_logging.rs:223:13:223:60 | ...::assert_failed [Some] | provenance | MaD:2 | | test_logging.rs:223:36:223:59 | MacroExpr | test_logging.rs:223:36:223:59 | ...::Some(...) [Some] | provenance | | | test_logging.rs:223:52:223:59 | password | test_logging.rs:223:36:223:59 | MacroExpr | provenance | | -| test_logging.rs:226:13:226:60 | ...::assert_failed [Some] | test_logging.rs:226:13:226:60 | ...::assert_failed | provenance | Sink:MaD:2 | -| test_logging.rs:226:36:226:59 | ...::Some(...) [Some] | test_logging.rs:226:13:226:60 | ...::assert_failed | provenance | MaD:2 Sink:MaD:2 | -| test_logging.rs:226:36:226:59 | ...::Some(...) [Some] | test_logging.rs:226:13:226:60 | ...::assert_failed [Some] | provenance | MaD:1 | +| test_logging.rs:226:13:226:60 | ...::assert_failed [Some] | test_logging.rs:226:13:226:60 | ...::assert_failed | provenance | Sink:MaD:1 | +| test_logging.rs:226:36:226:59 | ...::Some(...) [Some] | test_logging.rs:226:13:226:60 | ...::assert_failed | provenance | MaD:1 Sink:MaD:1 | +| test_logging.rs:226:36:226:59 | ...::Some(...) [Some] | test_logging.rs:226:13:226:60 | ...::assert_failed [Some] | provenance | MaD:2 | | test_logging.rs:226:36:226:59 | MacroExpr | test_logging.rs:226:36:226:59 | ...::Some(...) [Some] | provenance | | | test_logging.rs:226:52:226:59 | password | test_logging.rs:226:36:226:59 | MacroExpr | provenance | | models -| 1 | Sink: lang:core; crate::panicking::assert_failed; log-injection; Argument[3] | -| 2 | Sink: lang:core; crate::panicking::assert_failed; log-injection; Argument[3].Field[core::option::Option::Some(0)] | -| 3 | Sink: lang:core; crate::panicking::panic_fmt; log-injection; Argument[0] | -| 4 | Sink: lang:std; crate::io::stdio::_eprint; log-injection; Argument[0] | -| 5 | Sink: lang:std; crate::io::stdio::_print; log-injection; Argument[0] | -| 6 | Sink: repo:https://github.com/DesmondWillowbrook/rs-log_err:log_err; ::log_expect; log-injection; Argument[0] | -| 7 | Sink: repo:https://github.com/DesmondWillowbrook/rs-log_err:log_err; ::log_expect; log-injection; Argument[0] | -| 8 | Sink: repo:https://github.com/DesmondWillowbrook/rs-log_err:log_err; ::log_expect; log-injection; Argument[self].Field[core::result::Result::Err(0)] | -| 9 | Sink: repo:https://github.com/DesmondWillowbrook/rs-log_err:log_err; ::log_unwrap; log-injection; Argument[self].Field[core::result::Result::Err(0)] | -| 10 | Sink: repo:https://github.com/rust-lang/log:log; crate::__private_api::log; log-injection; Argument[1] | -| 11 | Sink: repo:https://github.com/rust-lang/log:log; crate::__private_api::log; log-injection; Argument[3] | +| 1 | Sink: lang:core; crate::panicking::assert_failed; Argument[3].Field[core::option::Option::Some(0)]; log-injection | +| 2 | Sink: lang:core; crate::panicking::assert_failed; Argument[3]; log-injection | +| 3 | Sink: lang:core; crate::panicking::panic_fmt; Argument[0]; log-injection | +| 4 | Sink: lang:std; crate::io::stdio::_eprint; Argument[0]; log-injection | +| 5 | Sink: lang:std; crate::io::stdio::_print; Argument[0]; log-injection | +| 6 | Sink: repo:https://github.com/DesmondWillowbrook/rs-log_err:log_err; ::log_expect; Argument[0]; log-injection | +| 7 | Sink: repo:https://github.com/DesmondWillowbrook/rs-log_err:log_err; ::log_expect; Argument[0]; log-injection | +| 8 | Sink: repo:https://github.com/DesmondWillowbrook/rs-log_err:log_err; ::log_expect; Argument[self].Field[core::result::Result::Err(0)]; log-injection | +| 9 | Sink: repo:https://github.com/DesmondWillowbrook/rs-log_err:log_err; ::log_unwrap; Argument[self].Field[core::result::Result::Err(0)]; log-injection | +| 10 | Sink: repo:https://github.com/rust-lang/log:log; crate::__private_api::log; Argument[1]; log-injection | +| 11 | Sink: repo:https://github.com/rust-lang/log:log; crate::__private_api::log; Argument[3]; log-injection | | 12 | Summary: lang:alloc; crate::fmt::format; Argument[0]; ReturnValue; taint | | 13 | Summary: lang:core; crate::hint::must_use; Argument[0]; ReturnValue; value | nodes diff --git a/rust/ql/test/query-tests/security/CWE-328/WeakSensitiveDataHashing.expected b/rust/ql/test/query-tests/security/CWE-328/WeakSensitiveDataHashing.expected index d2ea36bbebf8..062e3a63cc31 100644 --- a/rust/ql/test/query-tests/security/CWE-328/WeakSensitiveDataHashing.expected +++ b/rust/ql/test/query-tests/security/CWE-328/WeakSensitiveDataHashing.expected @@ -33,9 +33,9 @@ edges | test.rs:83:26:83:33 | password | test.rs:83:26:83:44 | password.as_bytes() | provenance | MaD:4 | | test.rs:83:26:83:44 | password.as_bytes() | test.rs:83:9:83:24 | ...::digest | provenance | MaD:1 Sink:MaD:1 | models -| 1 | Sink: repo:https://github.com/RustCrypto/traits:digest; <_ as crate::digest::Digest>::digest; hasher-input; Argument[0] | -| 2 | Sink: repo:https://github.com/RustCrypto/traits:digest; <_ as crate::digest::Digest>::new_with_prefix; hasher-input; Argument[0] | -| 3 | Sink: repo:https://github.com/stainless-steel/md5:md5; crate::compute; hasher-input; Argument[0] | +| 1 | Sink: repo:https://github.com/RustCrypto/traits:digest; <_ as crate::digest::Digest>::digest; Argument[0]; hasher-input | +| 2 | Sink: repo:https://github.com/RustCrypto/traits:digest; <_ as crate::digest::Digest>::new_with_prefix; Argument[0]; hasher-input | +| 3 | Sink: repo:https://github.com/stainless-steel/md5:md5; crate::compute; Argument[0]; hasher-input | | 4 | Summary: lang:core; ::as_bytes; Argument[self]; ReturnValue; taint | | 5 | Summary: lang:core; ::trim; Argument[self]; ReturnValue.Reference; taint | nodes diff --git a/rust/ql/test/query-tests/security/CWE-770/UncontrolledAllocationSize.expected b/rust/ql/test/query-tests/security/CWE-770/UncontrolledAllocationSize.expected index 34cb1edba83f..9d0423390a75 100644 --- a/rust/ql/test/query-tests/security/CWE-770/UncontrolledAllocationSize.expected +++ b/rust/ql/test/query-tests/security/CWE-770/UncontrolledAllocationSize.expected @@ -275,27 +275,27 @@ edges | main.rs:323:27:323:27 | v | main.rs:183:29:183:36 | ...: usize | provenance | | | main.rs:324:25:324:25 | v | main.rs:217:27:217:34 | ...: usize | provenance | | models -| 1 | Sink: lang:alloc; ::allocate; alloc-layout; Argument[0] | -| 2 | Sink: lang:alloc; ::allocate_zeroed; alloc-layout; Argument[0] | -| 3 | Sink: lang:alloc; crate::alloc::alloc; alloc-layout; Argument[0] | -| 4 | Sink: lang:alloc; crate::alloc::alloc_zeroed; alloc-layout; Argument[0] | -| 5 | Sink: lang:alloc; crate::alloc::realloc; alloc-size; Argument[2] | -| 6 | Sink: lang:std; ::allocate; alloc-layout; Argument[0] | -| 7 | Sink: lang:std; ::allocate_zeroed; alloc-layout; Argument[0] | -| 8 | Sink: lang:std; ::grow; alloc-layout; Argument[2] | -| 9 | Sink: lang:std; ::grow_zeroed; alloc-layout; Argument[2] | -| 10 | Sink: lang:std; ::shrink; alloc-layout; Argument[2] | -| 11 | Sink: lang:std; ::alloc; alloc-layout; Argument[0] | -| 12 | Sink: lang:std; ::alloc; alloc-size; Argument[0] | -| 13 | Sink: lang:std; ::alloc_zeroed; alloc-layout; Argument[0] | -| 14 | Sink: lang:std; ::alloc_zeroed; alloc-size; Argument[0] | -| 15 | Sink: lang:std; ::realloc; alloc-layout; Argument[2] | -| 16 | Sink: lang:std; ::realloc; alloc-size; Argument[2] | -| 17 | Sink: repo:https://github.com/rust-lang/libc:libc; ::aligned_alloc; alloc-size; Argument[1] | -| 18 | Sink: repo:https://github.com/rust-lang/libc:libc; ::calloc; alloc-size; Argument[0,1] | -| 19 | Sink: repo:https://github.com/rust-lang/libc:libc; ::malloc; alloc-size; Argument[0] | -| 20 | Sink: repo:https://github.com/rust-lang/libc:libc; ::realloc; alloc-size; Argument[1] | -| 21 | Source: lang:std; crate::env::args; commandargs; ReturnValue.Element | +| 1 | Sink: lang:alloc; ::allocate; Argument[0]; alloc-layout | +| 2 | Sink: lang:alloc; ::allocate_zeroed; Argument[0]; alloc-layout | +| 3 | Sink: lang:alloc; crate::alloc::alloc; Argument[0]; alloc-layout | +| 4 | Sink: lang:alloc; crate::alloc::alloc_zeroed; Argument[0]; alloc-layout | +| 5 | Sink: lang:alloc; crate::alloc::realloc; Argument[2]; alloc-size | +| 6 | Sink: lang:std; ::allocate; Argument[0]; alloc-layout | +| 7 | Sink: lang:std; ::allocate_zeroed; Argument[0]; alloc-layout | +| 8 | Sink: lang:std; ::grow; Argument[2]; alloc-layout | +| 9 | Sink: lang:std; ::grow_zeroed; Argument[2]; alloc-layout | +| 10 | Sink: lang:std; ::shrink; Argument[2]; alloc-layout | +| 11 | Sink: lang:std; ::alloc; Argument[0]; alloc-layout | +| 12 | Sink: lang:std; ::alloc; Argument[0]; alloc-size | +| 13 | Sink: lang:std; ::alloc_zeroed; Argument[0]; alloc-layout | +| 14 | Sink: lang:std; ::alloc_zeroed; Argument[0]; alloc-size | +| 15 | Sink: lang:std; ::realloc; Argument[2]; alloc-layout | +| 16 | Sink: lang:std; ::realloc; Argument[2]; alloc-size | +| 17 | Sink: repo:https://github.com/rust-lang/libc:libc; ::aligned_alloc; Argument[1]; alloc-size | +| 18 | Sink: repo:https://github.com/rust-lang/libc:libc; ::calloc; Argument[0,1]; alloc-size | +| 19 | Sink: repo:https://github.com/rust-lang/libc:libc; ::malloc; Argument[0]; alloc-size | +| 20 | Sink: repo:https://github.com/rust-lang/libc:libc; ::realloc; Argument[1]; alloc-size | +| 21 | Source: lang:std; crate::env::args; ReturnValue.Element; commandargs | | 22 | Summary: lang:core; ::align_to; Argument[self]; ReturnValue.Field[core::result::Result::Ok(0)]; taint | | 23 | Summary: lang:core; ::array; Argument[0]; ReturnValue.Field[core::result::Result::Ok(0)]; taint | | 24 | Summary: lang:core; ::extend; Argument[0]; ReturnValue.Field[core::result::Result::Ok(0)].Field[0]; taint | diff --git a/rust/ql/test/query-tests/security/CWE-825/AccessInvalidPointer.expected b/rust/ql/test/query-tests/security/CWE-825/AccessInvalidPointer.expected index e8a0eead8f95..f4f85a37d7c1 100644 --- a/rust/ql/test/query-tests/security/CWE-825/AccessInvalidPointer.expected +++ b/rust/ql/test/query-tests/security/CWE-825/AccessInvalidPointer.expected @@ -51,14 +51,14 @@ edges | deallocation.rs:242:3:242:25 | ...::drop_in_place | deallocation.rs:242:27:242:29 | [post] ptr | provenance | Src:MaD:6 MaD:6 | | deallocation.rs:242:27:242:29 | [post] ptr | deallocation.rs:248:18:248:20 | ptr | provenance | | models -| 1 | Sink: lang:core; crate::ptr::read; pointer-access; Argument[0] | -| 2 | Sink: lang:core; crate::ptr::write; pointer-access; Argument[0] | -| 3 | Source: lang:alloc; crate::alloc::dealloc; pointer-invalidate; Argument[0] | -| 4 | Source: lang:core; crate::ptr::dangling; pointer-invalidate; ReturnValue | -| 5 | Source: lang:core; crate::ptr::dangling_mut; pointer-invalidate; ReturnValue | -| 6 | Source: lang:core; crate::ptr::drop_in_place; pointer-invalidate; Argument[0] | -| 7 | Source: lang:core; crate::ptr::null; pointer-invalidate; ReturnValue | -| 8 | Source: repo:https://github.com/rust-lang/libc:libc; ::free; pointer-invalidate; Argument[0] | +| 1 | Sink: lang:core; crate::ptr::read; Argument[0]; pointer-access | +| 2 | Sink: lang:core; crate::ptr::write; Argument[0]; pointer-access | +| 3 | Source: lang:alloc; crate::alloc::dealloc; Argument[0]; pointer-invalidate | +| 4 | Source: lang:core; crate::ptr::dangling; ReturnValue; pointer-invalidate | +| 5 | Source: lang:core; crate::ptr::dangling_mut; ReturnValue; pointer-invalidate | +| 6 | Source: lang:core; crate::ptr::drop_in_place; Argument[0]; pointer-invalidate | +| 7 | Source: lang:core; crate::ptr::null; ReturnValue; pointer-invalidate | +| 8 | Source: repo:https://github.com/rust-lang/libc:libc; ::free; Argument[0]; pointer-invalidate | nodes | deallocation.rs:20:3:20:21 | ...::dealloc | semmle.label | ...::dealloc | | deallocation.rs:20:23:20:24 | [post] m1 | semmle.label | [post] m1 | diff --git a/rust/ql/test/utils-tests/modelgenerator/CaptureSinkModels.ext.yml b/rust/ql/test/utils-tests/modelgenerator/CaptureSinkModels.ext.yml index bedfe748d19d..afb95025f383 100644 --- a/rust/ql/test/utils-tests/modelgenerator/CaptureSinkModels.ext.yml +++ b/rust/ql/test/utils-tests/modelgenerator/CaptureSinkModels.ext.yml @@ -1,6 +1,6 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: sinkModel + extensible: sinkModelDeprecated data: - ["repo::test", "crate::sinks::known_sink", "Argument[0]", "test-sink", "manual"] diff --git a/rust/ql/test/utils-tests/modelgenerator/CaptureSourceModels.ext.yml b/rust/ql/test/utils-tests/modelgenerator/CaptureSourceModels.ext.yml index fc82ebd62849..a4ead6e478ac 100644 --- a/rust/ql/test/utils-tests/modelgenerator/CaptureSourceModels.ext.yml +++ b/rust/ql/test/utils-tests/modelgenerator/CaptureSourceModels.ext.yml @@ -1,6 +1,6 @@ extensions: - addsTo: pack: codeql/rust-all - extensible: sourceModel + extensible: sourceModelDeprecated data: - ["repo::test", "crate::sources::known_source", "ReturnValue", "test-source", "manual"]