Skip to content

Commit 67c170f

Browse files
committed
Merge branch 'main' into sqlx
2 parents 27bea33 + b1ee795 commit 67c170f

File tree

430 files changed

+18762
-9129
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

430 files changed

+18762
-9129
lines changed

.github/copilot-instructions.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,10 @@ When reviewing code:
22
* do not review changes in files with `.expected` extension (they are automatically ensured to be correct).
33
* in `.ql` and `.qll` files, do not try to review the code itself as you don't understand the programming language
44
well enough to make comments in these languages. You can still check for typos or comment improvements.
5+
6+
When editing `.ql` and `.qll` files:
7+
* All edited `.ql` and `.qll` files should be autoformatted afterwards using the CodeQL CLI.
8+
* To install and use the CodeQL CLI autoformatter:
9+
1. Download and extract CodeQL CLI: `cd /tmp && curl -L -o codeql-linux64.zip https://github.com/github/codeql-cli-binaries/releases/latest/download/codeql-linux64.zip && unzip -q codeql-linux64.zip`
10+
2. Add to PATH: `export PATH="/tmp/codeql:$PATH"`
11+
3. Run autoformatter: `codeql query format [file] --in-place`

MODULE.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ use_repo(
230230
"kotlin-compiler-2.1.0-Beta1",
231231
"kotlin-compiler-2.1.20-Beta1",
232232
"kotlin-compiler-2.2.0-Beta1",
233+
"kotlin-compiler-2.2.20-Beta1",
233234
"kotlin-compiler-embeddable-1.6.0",
234235
"kotlin-compiler-embeddable-1.6.20",
235236
"kotlin-compiler-embeddable-1.7.0",
@@ -242,6 +243,7 @@ use_repo(
242243
"kotlin-compiler-embeddable-2.1.0-Beta1",
243244
"kotlin-compiler-embeddable-2.1.20-Beta1",
244245
"kotlin-compiler-embeddable-2.2.0-Beta1",
246+
"kotlin-compiler-embeddable-2.2.20-Beta1",
245247
"kotlin-stdlib-1.6.0",
246248
"kotlin-stdlib-1.6.20",
247249
"kotlin-stdlib-1.7.0",
@@ -254,6 +256,7 @@ use_repo(
254256
"kotlin-stdlib-2.1.0-Beta1",
255257
"kotlin-stdlib-2.1.20-Beta1",
256258
"kotlin-stdlib-2.2.0-Beta1",
259+
"kotlin-stdlib-2.2.20-Beta1",
257260
)
258261

259262
go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk")

actions/ql/lib/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
## 0.4.13
22

3-
No user-facing changes.
3+
### Bug Fixes
4+
5+
* The `actions/artifact-poisoning/critical` and `actions/artifact-poisoning/medium` queries now exclude artifacts downloaded to `$[{ runner.temp }}` in addition to `/tmp`.
46

57
## 0.4.12
68

actions/ql/lib/change-notes/2025-07-11-artifact-poisoning.md

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
## 0.4.13
22

3-
No user-facing changes.
3+
### Bug Fixes
4+
5+
* The `actions/artifact-poisoning/critical` and `actions/artifact-poisoning/medium` queries now exclude artifacts downloaded to `$[{ runner.temp }}` in addition to `/tmp`.

config/identical-files.json

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -231,35 +231,10 @@
231231
"java/ql/src/experimental/Security/CWE/CWE-400/LocalThreadResourceAbuse.qhelp",
232232
"java/ql/src/experimental/Security/CWE/CWE-400/ThreadResourceAbuse.qhelp"
233233
],
234-
"CryptoAlgorithms Python/JS/Ruby": [
235-
"javascript/ql/lib/semmle/javascript/security/CryptoAlgorithms.qll",
236-
"python/ql/lib/semmle/python/concepts/CryptoAlgorithms.qll",
237-
"ruby/ql/lib/codeql/ruby/security/CryptoAlgorithms.qll",
238-
"rust/ql/lib/codeql/rust/security/CryptoAlgorithms.qll"
239-
],
240-
"CryptoAlgorithmNames Python/JS/Ruby": [
241-
"javascript/ql/lib/semmle/javascript/security/internal/CryptoAlgorithmNames.qll",
242-
"python/ql/lib/semmle/python/concepts/internal/CryptoAlgorithmNames.qll",
243-
"ruby/ql/lib/codeql/ruby/security/internal/CryptoAlgorithmNames.qll",
244-
"rust/ql/lib/codeql/rust/security/internal/CryptoAlgorithmNames.qll"
245-
],
246-
"SensitiveDataHeuristics Python/JS": [
247-
"javascript/ql/lib/semmle/javascript/security/internal/SensitiveDataHeuristics.qll",
248-
"python/ql/lib/semmle/python/security/internal/SensitiveDataHeuristics.qll",
249-
"ruby/ql/lib/codeql/ruby/security/internal/SensitiveDataHeuristics.qll",
250-
"swift/ql/lib/codeql/swift/security/internal/SensitiveDataHeuristics.qll",
251-
"rust/ql/lib/codeql/rust/security/internal/SensitiveDataHeuristics.qll"
252-
],
253234
"IncompleteUrlSubstringSanitization": [
254235
"javascript/ql/src/Security/CWE-020/IncompleteUrlSubstringSanitization.qll",
255236
"ruby/ql/src/queries/security/cwe-020/IncompleteUrlSubstringSanitization.qll"
256237
],
257-
"Concepts Python/Ruby/JS": [
258-
"python/ql/lib/semmle/python/internal/ConceptsShared.qll",
259-
"ruby/ql/lib/codeql/ruby/internal/ConceptsShared.qll",
260-
"javascript/ql/lib/semmle/javascript/internal/ConceptsShared.qll",
261-
"rust/ql/lib/codeql/rust/internal/ConceptsShared.qll"
262-
],
263238
"ApiGraphModels": [
264239
"javascript/ql/lib/semmle/javascript/frameworks/data/internal/ApiGraphModels.qll",
265240
"ruby/ql/lib/codeql/ruby/frameworks/data/internal/ApiGraphModels.qll",

cpp/ql/lib/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@
44

55
* The `UnknownDefaultLocation`, `UnknownExprLocation`, and `UnknownStmtLocation` classes have been deprecated. Use `UnknownLocation` instead.
66

7+
### New Features
8+
9+
* Added a `isFinalValueOfParameter` predicate to `DataFlow::Node` which holds when a dataflow node represents the final value of an output parameter of a function.
10+
711
### Minor Analysis Improvements
812

13+
* The `FunctionWithWrappers` library (`semmle.code.cpp.security.FunctionWithWrappers`) no longer considers calls through function pointers as wrapper functions.
914
* The analysis of C/C++ code targeting 64-bit Arm platforms has been improved. This includes support for the Arm-specific builtin functions, support for the `arm_neon.h` header and Neon vector types, and support for the `fp8` scalar type. The `arm_sve.h` header and scalable vectors are only partially supported at this point.
1015
* Added support for `__fp16 _Complex` and `__bf16 _Complex` types
1116
* Added `sql-injection` sink models for the Oracle Call Interface (OCI) database library functions `OCIStmtPrepare` and `OCIStmtPrepare2`.

cpp/ql/lib/change-notes/2025-07-10-final.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

cpp/ql/lib/change-notes/2025-07-16-FunctionWithWrappers.md

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: minorAnalysis
3+
---
4+
* The `cpp/overrun-write` query now recognizes more bound checks and thus produces fewer false positives.

0 commit comments

Comments
 (0)