From e8cb6b8f54125787c6cceec40772d25646f889ed Mon Sep 17 00:00:00 2001 From: Geoffrey White <40627776+geoffw0@users.noreply.github.com> Date: Thu, 27 Nov 2025 09:14:41 +0000 Subject: [PATCH] Rust: Fix a couple of comments. --- rust/ql/lib/codeql/rust/security/LogInjectionExtensions.qll | 2 +- rust/ql/lib/codeql/rust/security/SqlInjectionExtensions.qll | 4 ++-- .../codeql/rust/security/regex/RegexInjectionExtensions.qll | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rust/ql/lib/codeql/rust/security/LogInjectionExtensions.qll b/rust/ql/lib/codeql/rust/security/LogInjectionExtensions.qll index 8ef4f64182ad..31403b625f92 100644 --- a/rust/ql/lib/codeql/rust/security/LogInjectionExtensions.qll +++ b/rust/ql/lib/codeql/rust/security/LogInjectionExtensions.qll @@ -46,7 +46,7 @@ module LogInjection { /** * A barrier for log injection vulnerabilities for nodes whose type is a - * numeric or boolean type, which is unlikely to expose any vulnerability. + * numeric type, which is unlikely to expose any vulnerability. */ private class NumericTypeBarrier extends Barrier instanceof Barriers::NumericTypeBarrier { } diff --git a/rust/ql/lib/codeql/rust/security/SqlInjectionExtensions.qll b/rust/ql/lib/codeql/rust/security/SqlInjectionExtensions.qll index d82065ec5edf..f36ab264987a 100644 --- a/rust/ql/lib/codeql/rust/security/SqlInjectionExtensions.qll +++ b/rust/ql/lib/codeql/rust/security/SqlInjectionExtensions.qll @@ -60,8 +60,8 @@ module SqlInjection { } /** - * A barrier for SQL injection vulnerabilities for nodes whose type is a numeric or - * boolean type, which is unlikely to expose any vulnerability. + * A barrier for SQL injection vulnerabilities for nodes whose type is a numeric + * type, which is unlikely to expose any vulnerability. */ private class NumericTypeBarrier extends Barrier instanceof Barriers::NumericTypeBarrier { } diff --git a/rust/ql/lib/codeql/rust/security/regex/RegexInjectionExtensions.qll b/rust/ql/lib/codeql/rust/security/regex/RegexInjectionExtensions.qll index b6bd0cd899e5..ae330ed1d0f5 100644 --- a/rust/ql/lib/codeql/rust/security/regex/RegexInjectionExtensions.qll +++ b/rust/ql/lib/codeql/rust/security/regex/RegexInjectionExtensions.qll @@ -89,7 +89,7 @@ module RegexInjection { /** * A barrier for regular expression injection vulnerabilities for nodes whose - * type is an integral or boolean type, which is unlikely to expose any vulnerability. + * type is an integral type, which is unlikely to expose any vulnerability. * * We don't include floating point types in this barrier, as `.` is a special character * in regular expressions.