Philip Ginsbach
977eb5c79a
Avoid inconsistent implicit toString on potential string subtypes
...
Fix cases where the compiler cannot prove types don't extend string:
1. FileSystem.qll: Add toString() to ContainerBase signature. The
instantiation sites already provide toString(), so no changes needed
there. Container.toString() now delegates to super.toString().
No behaviour change.
2. DataFlowImplCommon.qll: Content.toString() now delegates to
super.toString() instead of returning the literal "Content".
This is a behaviour change: Content now displays its actual
description (e.g. field names) rather than the generic "Content".
2026-02-12 12:05:34 +00:00
Anders Schack-Mulligen
a945f15987
Merge pull request #21317 from aschackmull/java/deprecate-unreachableblocks
...
Java: Deprecate UnreachableBlocks.
2026-02-12 11:43:37 +01:00
Anders Schack-Mulligen
5c53677051
Java: Deprecate UnreachableBlocks.
2026-02-12 11:06:34 +01:00
Mathias Vorreiter Pedersen
90a16cfaee
Merge pull request #21314 from MathiasVP/remove-tc
...
C++: Remove redundant transitive closure
2026-02-12 09:21:56 +00:00
Michael Nebel
76ed386246
Merge pull request #21315 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2026-02-12 08:29:25 +01:00
github-actions[bot]
fea07ebfcb
Add changed framework coverage reports
2026-02-12 00:32:08 +00:00
Mathias Vorreiter Pedersen
9596b7b921
C++: No need to compute this TC.
2026-02-11 20:18:03 +00:00
Simon Friis Vindum
522e4d64de
Merge pull request #21273 from paldepind/rust/tp-assoc
...
Rust: Implement support for associated types accessed on type parameters
2026-02-11 13:39:55 +01:00
Simon Friis Vindum
6c67475352
Rust: Minor tweaks in type inference
2026-02-11 12:32:54 +01:00
Simon Friis Vindum
287a8717a8
Rust: Apply suggestions from code review
...
Co-authored-by: Tom Hvitved <hvitved@github.com >
2026-02-11 12:19:22 +01:00
Philip Ginsbach-Chen
9ed22610a3
Merge pull request #21306 from github/ginsbach/avoid-nontrivially-shadowing-toString
...
Avoid non-trivially shadowing `string.toString()`
2026-02-11 11:03:07 +00:00
Tom Hvitved
36c3084435
Merge pull request #21305 from hvitved/rust/type-inference-speedup
...
Rust: Speedup `inferMethodCallTypeSelf`
2026-02-11 11:03:06 +01:00
Tom Hvitved
37af38eed5
Merge pull request #21282 from hvitved/rust/path-resolution/type-inference-expectations
...
Rust: Distinguish path resolution expectations from type inference expectations
2026-02-11 11:00:28 +01:00
Tom Hvitved
89e9a253eb
Rust: Distinguish path resolution expectations from type inference expectations
2026-02-11 10:33:41 +01:00
Simon Friis Vindum
2fa71f0c17
Rust: Add examples with associated type accessed on associated type
2026-02-11 09:10:21 +01:00
Simon Friis Vindum
2b10c8aef3
Rust: Fix gramar in qldoc
2026-02-11 09:09:34 +01:00
Michael Nebel
0ac1bc4c57
Merge pull request #21299 from microsoft/lwsimpkins/csharp-mad-httputility-upstream
...
Update MaD for System.Web.HttpUtility
2026-02-11 08:47:29 +01:00
Anders Schack-Mulligen
cfa62ae434
Merge pull request #21304 from aschackmull/java/deprecation-followup
...
Java: Add delayed deprecation annotation.
2026-02-11 08:40:01 +01:00
Owen Mansel-Chan
766dc94444
Merge pull request #21150 from github/jketema/go-1.26
...
Go: Update to 1.26
2026-02-11 04:37:31 +00:00
Owen Mansel-Chan
542d4631d7
restore ~ in action.yml version
2026-02-10 22:32:36 +00:00
Owen Mansel-Chan
f01d5840b0
Update to 1.26.0
2026-02-10 22:32:33 +00:00
Owen Mansel-Chan
936c4cc79f
Fix edge case in MaD validation
...
If the db contains no pointer types then we were getting spurious model
validation errors.
2026-02-10 22:32:31 +00:00
Owen Mansel-Chan
e1bddd9365
Model newly added functions
2026-02-10 22:32:30 +00:00
Owen Mansel-Chan
22e9c212d6
Add failing tests for newly added functions
2026-02-10 22:32:28 +00:00
Owen Mansel-Chan
26ef33212d
Test builtins like standard library
2026-02-10 22:32:27 +00:00
Jeroen Ketema
700543b30b
Go: Update supported versions to include 1.26
2026-02-10 22:31:11 +00:00
Jeroen Ketema
22e9b42808
Go: Add change note
2026-02-10 22:31:10 +00:00
Jeroen Ketema
50ed0af9da
Go: Bump maxGoVersion to 1.26
2026-02-10 22:31:08 +00:00
Jeroen Ketema
e00e3a87ff
Update Go version in tests to 1.26.0
2026-02-10 22:31:00 +00:00
Tom Hvitved
8955fd0bf4
Merge pull request #21303 from hvitved/rust/add-telemetry-tags
...
Rust: Add `telemtry` tags to queries
2026-02-10 20:13:40 +01:00
Philip Ginsbach
f60d759a65
Avoid non-trivially shadowing string.toString()
...
Prepare libraries for a possible deprecation warning on shadowing
string.toString().
These instanceof classes were using this.(Type).method() to call
supertype methods, but super.method() is clearer and equivalent
for instanceof supertypes.
2026-02-10 15:46:10 +00:00
Ian Lynagh
00acff293a
Merge pull request #21281 from igfoo/igfoo/discarding
...
C++ overlay: Discarding elements
2026-02-10 15:14:58 +00:00
Tom Hvitved
49f24ca8ec
Rust: Avoid using regexpCapture with multiple capture groups
2026-02-10 16:11:49 +01:00
Tom Hvitved
564a3bd444
Rust: Simplify inferMethodCallTypeSelf
2026-02-10 15:30:56 +01:00
Michael Nebel
ece85854cd
Merge pull request #21285 from michaelnebel/csharp14/implicittypedlambdaparametermodifiers
...
C# 14: [TEST ONLY] Simple lambda parameters with modifiers.
2026-02-10 14:16:19 +01:00
Michael Nebel
c15ad31b07
Merge pull request #21220 from michaelnebel/csharp14/extension
...
C# 14: Support `extension` types.
2026-02-10 14:15:57 +01:00
Anders Schack-Mulligen
5116b0c1e5
Java: Add delayed deprecation annotation.
2026-02-10 14:02:48 +01:00
Michael Nebel
25b836b1b5
C#: Apply suggestions from code review
...
Co-authored-by: Tom Hvitved <hvitved@github.com >
2026-02-10 13:12:53 +01:00
Owen Mansel-Chan
f2d3bc03aa
Merge pull request #21302 from github/mbg/go/bump-to-1.25.7
...
Go: Bump toolchain to `1.25.7`
2026-02-10 10:33:50 +00:00
Tom Hvitved
55e5bc4970
Rust: Add telemtry tags to queries
2026-02-10 11:25:42 +01:00
Michael B. Gale
518fb44a92
Go: Bump toolchain to 1.25.7
2026-02-10 10:01:38 +00:00
Michael B. Gale
eee4014e94
Merge pull request #21300 from github/dependabot/go_modules/go/extractor/extractor-dependencies-393b62c927
...
Bump the extractor-dependencies group in /go/extractor with 2 updates
2026-02-10 09:46:56 +00:00
Simon Friis Vindum
a033057d90
Rust: Fix a bad join
2026-02-10 09:54:01 +01:00
Simon Friis Vindum
624ee1898a
Rust: Implement support for associated types accessed on type parameters
2026-02-10 09:53:56 +01:00
Simon Friis Vindum
0cd5366034
Rust: Add type inference test for associated type acces on a type parameter of an impl block
2026-02-10 09:51:56 +01:00
Simon Friis Vindum
78c262ca63
Merge pull request #21297 from hvitved/rust/type-inference-fix-bug
...
Rust: Fix bug in `inferMethodCallTypeSelf`
2026-02-10 09:51:12 +01:00
Tom Hvitved
c3ac20267a
Merge pull request #21217 from hvitved/rust/type-inference-perf
...
Rust: Rework call disambiguation logic
2026-02-10 08:52:01 +01:00
dependabot[bot]
e172cb3f7a
Bump the extractor-dependencies group in /go/extractor with 2 updates
...
Bumps the extractor-dependencies group in /go/extractor with 2 updates: [golang.org/x/mod](https://github.com/golang/mod ) and [golang.org/x/tools](https://github.com/golang/tools ).
Updates `golang.org/x/mod` from 0.32.0 to 0.33.0
- [Commits](https://github.com/golang/mod/compare/v0.32.0...v0.33.0 )
Updates `golang.org/x/tools` from 0.41.0 to 0.42.0
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.41.0...v0.42.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/mod
dependency-version: 0.33.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: extractor-dependencies
- dependency-name: golang.org/x/tools
dependency-version: 0.42.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: extractor-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-02-10 03:15:54 +00:00
Lindsay Simpkins
677949e409
Fix typo in change note
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-02-09 17:16:10 -05:00
Lindsay Simpkins
fe10fb37e9
add changenote
2026-02-09 16:48:08 -05:00
Lindsay Simpkins
ba3fc0a769
update csharp MaD for System.Web.HttpUtility for tainted URIs
2026-02-09 16:48:05 -05:00
Tom Hvitved
6611978368
Update rust/ql/lib/codeql/rust/internal/typeinference/DerefChain.qll
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-02-09 19:38:49 +01:00
Tom Hvitved
16539b4667
Address review comments
2026-02-09 19:30:58 +01:00
Ian Lynagh
6235edaa21
C++: Update stats
2026-02-09 18:01:02 +00:00
Ian Lynagh
9a5128f915
C++: Add up/downgrade scripts
2026-02-09 18:01:01 +00:00
Ian Lynagh
c5f6820b5d
C++ overlay: Add trap_filename, source_file_uses_trap, in_trap
2026-02-09 18:01:01 +00:00
yoff
5ad42f8bcc
Merge pull request #20563 from microsoft/azure_python_sdk_url_summary_upstream
...
Azure python sdk url summary upstream
2026-02-09 18:34:36 +01:00
Michael Nebel
bee1718469
QL4QL: Allow Impl classes to implement getAPrimaryQLClass with non Impl suffix.
2026-02-09 16:53:43 +01:00
Michael Nebel
3e914f7ff1
C#: Add DB downgrade script.
2026-02-09 16:24:19 +01:00
Michael Nebel
42d2de848d
C#: Add DB upgrade script.
2026-02-09 16:24:00 +01:00
Ian Lynagh
b5e3168032
Merge pull request #21286 from github/andersfugmann/kotlin_2.3.10-no-artifacts
...
Kotlin: Support Kotlin 2.3.10
2026-02-09 13:26:40 +00:00
Tom Hvitved
109d802607
Rust: Fix bug in inferMethodCallTypeSelf
2026-02-09 14:15:05 +01:00
Michael B. Gale
71e8730c63
Merge pull request #21263 from github/mbg/csharp/registry-diagnostic
...
C#: Add diagnostic for private registry usage
2026-02-09 12:58:43 +00:00
Michael Nebel
eff9f99f44
C#: Update test expected output.
2026-02-09 13:30:14 +01:00
Michael Nebel
d9fea156f6
C#: Update MaD models for extension members.
2026-02-09 13:28:11 +01:00
Michael Nebel
bcdbd6e283
C#: Use the fully qualified name for the extension type when printing extension types.
2026-02-09 13:27:32 +01:00
Michael Nebel
fe94b3b68b
C#: Address review comments.
2026-02-09 11:46:53 +01:00
Owen Mansel-Chan
90401b3ad3
Merge pull request #21254 from owen-mc/go/astnode-get-enclosing-block
...
Go: Add `AstNode.getEnclosingBlock()`
2026-02-06 22:23:15 +00:00
Jon Janego
d0bd8459a1
Merge pull request #21291 from github/codeql-spark-run-21760759512
...
Update changelog documentation site
2026-02-06 12:28:56 -06:00
Jon Janego
1c43ceae95
Merge branch 'main' into codeql-spark-run-21760759512
2026-02-06 12:16:31 -06:00
Jon Janego
5bf2d9442e
Fix formatting in changelog for Go path injection query
2026-02-06 12:14:03 -06:00
Jon Janego
c40d784a4d
Update codeql-cli-2.23.1.rst
2026-02-06 12:13:34 -06:00
Jon Janego
bf6568b928
Fix formatting for Kotlin version support note
2026-02-06 12:12:55 -06:00
Jon Janego
79ad064a93
Fix formatting in Kotlin version support note
2026-02-06 12:12:16 -06:00
Jon Janego
552976d057
Update codeql-cli-2.19.1.rst
2026-02-06 12:11:49 -06:00
github-actions[bot]
353cd31ce6
update codeql documentation
2026-02-06 18:09:49 +00:00
Paolo Tranquilli
48db24d184
Merge pull request #21287 from github/redsun82/fix-rust-deps-patching
...
Bazel: fix Rust deps patching for semver build metadata
2026-02-06 17:17:24 +01:00
REDMOND\brodes
8459eec239
Moving the SsrfSink concept into Concepts.qll, and renaming to HttpClientRequestFromModel as suggested in PR review.
2026-02-06 09:26:49 -05:00
Anders Fugmann
c5179e40c6
Kotlin: Add change note for supporting 2.3.10
2026-02-06 14:59:34 +01:00
github-actions[bot]
38830ddc5c
Bazel: fix Rust deps patching for semver build metadata
...
Handle crate versions containing `+` build metadata (e.g., `0.9.11+spec-1.1.0`).
Bazel repo names use `-` instead of `+`, so the generated labels need patching
to reference the correct repo name.
Also adds documentation for both patching issues handled by patch_defs.py.
2026-02-06 14:58:34 +01:00
Anders Fugmann
d5827b5cca
Kotlin: Support Kotlin 2.3.10
2026-02-06 14:54:08 +01:00
Michael Nebel
6c355a1bf8
C#: Update test expected output.
2026-02-06 14:38:27 +01:00
Michael Nebel
e550d4937c
C#: Update parameter modifiers test to include lambda expression from the new test file.
2026-02-06 14:37:50 +01:00
Michael Nebel
62a6b5985d
C#: Add test cases for lambda parameter modifiers.
2026-02-06 14:37:11 +01:00
Mathias Vorreiter Pedersen
2c05624088
Merge pull request #21280 from MathiasVP/make-getChildCount-more-robust
...
C++: Make 'getChildCount' more robust by counting indices instead of elements
2026-02-06 12:19:20 +00:00
Ben Rodes
ac1987f264
Update python/ql/lib/change-notes/2025-09-30-azure_ssrf_models.md
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2026-02-05 15:44:44 -05:00
Mathias Vorreiter Pedersen
d57a42a7f7
C++: Make 'getChildCount' more robust by counting indexes instead of 'TranslatedDeclarationEntry's.
2026-02-05 20:23:45 +00:00
Tom Hvitved
32aaac27ec
Rust: Add type inference regression test
2026-02-05 17:29:42 +01:00
Tom Hvitved
2dc7576232
Rust: Rework call disambiguation logic
2026-02-05 17:29:40 +01:00
Taus
5adc9f8ff0
Merge pull request #21274 from github/tausbn/python-fix-parsing-of-format-specifiers
...
Python: Fix syntax error when `=` is used as a format fill character
2026-02-05 16:37:42 +01:00
Michael Nebel
02e4a8b6f7
C#: Add change-note.
2026-02-05 15:52:43 +01:00
Michael Nebel
bd3e4d3d7e
C#: Add MaD tests for extensions.
2026-02-05 15:38:29 +01:00
Michael Nebel
4b6a53b577
C#: Add extension data flow test.
2026-02-05 15:38:27 +01:00
Michael Nebel
6cbe000d51
C#: Add PrintAst test for extensions.
2026-02-05 15:38:25 +01:00
Michael Nebel
c040daab9c
C#: Add extensions test.
2026-02-05 15:38:20 +01:00
Michael Nebel
849823eff6
C#: Add dispatch logic for calling extensions accessors as methods.
2026-02-05 15:38:16 +01:00
Michael Nebel
e831c80a23
C#: Replace extension parameter access with the corresponding synthetic parameter.
2026-02-05 15:38:14 +01:00
Michael Nebel
5e02a86542
C#: Add extension call classes.
2026-02-05 15:38:12 +01:00
Michael Nebel
b9f36f37b6
C#: Add extension callable and accessor classes.
2026-02-05 15:38:09 +01:00
Michael Nebel
9a4a6cfcb8
C#: Add ExtensionType to the QL library.
2026-02-05 15:38:07 +01:00
Michael Nebel
edfdc9812f
C#: Extract extension types and members. Replacing invocations to static generated methods with invocation of extension type member.
2026-02-05 15:38:05 +01:00
Michael Nebel
ab505e3281
C#: Add class for making synthetic parameter entities.
2026-02-05 15:38:02 +01:00
Taus
8c27437628
Python: Bump extractor version and add change note
2026-02-05 13:50:54 +00:00
Taus
12ee93042b
Python: Add tests
2026-02-05 13:47:24 +00:00
Taus
bac356c9a1
Python: Regenerate parser files
2026-02-05 13:46:59 +00:00
Taus
68c1a3d389
Python: Fix syntax error when = is used as a format fill character
...
An example (provided by @redsun82) is the string `f"{x:=^20}"`. Parsing
this (with unnamed nodes shown) illustrates the problem:
```
module [0, 0] - [2, 0]
expression_statement [0, 0] - [0, 11]
string [0, 0] - [0, 11]
string_start [0, 0] - [0, 2]
interpolation [0, 2] - [0, 10]
"{" [0, 2] - [0, 3]
expression: named_expression [0, 3] - [0, 9]
name: identifier [0, 3] - [0, 4]
":=" [0, 4] - [0, 6]
ERROR [0, 6] - [0, 7]
"^" [0, 6] - [0, 7]
value: integer [0, 7] - [0, 9]
"}" [0, 9] - [0, 10]
string_end [0, 10] - [0, 11]
```
Observe that we've managed to combine the format specifier token `:` and
the fill character `=` in a single token (which doesn't match the `:` we
expect in the grammar rule), and hence we get a syntax error.
If we change the `=` to some other character (e.g. a `-`), we instead
get
```
module [0, 0] - [2, 0]
expression_statement [0, 0] - [0, 11]
string [0, 0] - [0, 11]
string_start [0, 0] - [0, 2]
interpolation [0, 2] - [0, 10]
"{" [0, 2] - [0, 3]
expression: identifier [0, 3] - [0, 4]
format_specifier: format_specifier [0, 4] - [0, 9]
":" [0, 4] - [0, 5]
"}" [0, 9] - [0, 10]
string_end [0, 10] - [0, 11]
```
and in particular no syntax error.
To fix this, we want to ensure that the `:` is lexed on its own, and the
`token(prec(1, ...))` construction can be used to do exactly this.
Finally, you may wonder why `=` is special here. I think what's going on
is that the lexer knows that `:=` is a token on its own (because it's
used in the walrus operator), and so it greedily consumes the following
`=` with this in mind.
2026-02-05 13:45:54 +00:00
Tom Hvitved
2764d697d2
Rust: Merge Input1 and Input2 modules
2026-02-05 14:29:46 +01:00
Tom Hvitved
c62d95ac9d
Rust: More type inference tests
2026-02-05 14:29:41 +01:00
Paolo Tranquilli
05bef12ddd
Merge pull request #21265 from github/redsun82/csharp-csrf-inheritance
...
C#: Fix CSRF query to check antiforgery attributes on base classes
2026-02-05 14:20:30 +01:00
Idriss Riouak
1df3adf021
Merge pull request #21244 from github/idrissrio/cpp/overlay/changes-json
...
C/C++ overlay: use files table instead of `overlayChangedFiles` for overlay discard
2026-02-05 13:15:07 +01:00
Tom Hvitved
025f73301b
Rust: Move some overloading tests into a separate file
2026-02-05 12:49:53 +01:00
idrissrio
e26c199426
C/C++ overlay: use files table instead of overlayChangedFiles for overlay discard
2026-02-05 12:43:01 +01:00
Tom Hvitved
1203da1b66
Merge pull request #21253 from paldepind/rust/as-path-trait
...
Rust: Resolve `as` paths to trait
2026-02-05 12:38:16 +01:00
Paolo Tranquilli
f79bd3f4cf
C#: accept location changes in test
2026-02-05 12:14:59 +01:00
Mathias Vorreiter Pedersen
476df7de73
Merge pull request #21260 from MathiasVP/add-windows-remote-flow-sources
...
C++: Add more Win32 and Azure SDK remote flow sources
2026-02-05 10:47:03 +00:00
Anders Schack-Mulligen
29e01748b7
Merge pull request #21267 from aschackmull/java/rename-misc
...
Java: Rename several AST predicates.
2026-02-05 11:15:29 +01:00
Anders Schack-Mulligen
11003e685d
Java: Fix qldoc
2026-02-05 10:37:19 +01:00
Anders Schack-Mulligen
e4daeec2ca
Merge pull request #21268 from aschackmull/java/view-cfg
...
Java: Add support for "View CFG" in VSCode.
2026-02-05 09:48:14 +01:00
Anders Schack-Mulligen
81977f11a1
Cfg: qldoc + overlay fixups.
2026-02-05 08:59:28 +01:00
Anders Schack-Mulligen
32fe12a6dd
Java: Delay deprecation a bit.
2026-02-05 08:51:27 +01:00
Anders Schack-Mulligen
83adf793e4
Cfg: Fix compilation.
2026-02-04 15:28:37 +01:00
REDMOND\brodes
0a88425170
Python: Altering SSRF MaD to use 'request-forgery' tag. Update to test cases expected results, off by one line. Changed to using ModelOutput::sinkNode.
2026-02-04 09:04:22 -05:00
Ben Rodes
cd73dcfb04
Merge branch 'main' into azure_python_sdk_url_summary_upstream
2026-02-04 08:55:38 -05:00
Simon Friis Vindum
52dc58172d
Merge branch 'main' into rust/as-path-trait
2026-02-04 14:47:57 +01:00
Owen Mansel-Chan
544931f73f
Merge pull request #21266 from owen-mc/python/pretty-print-models-in-test
...
Python: Pretty print models in test
2026-02-04 13:46:51 +00:00
Anders Schack-Mulligen
2d02908e7f
Java: Add change note.
2026-02-04 14:43:32 +01:00
Anders Schack-Mulligen
4fcf3fbff8
Java: Make loop classes extend LoopStmt and use getBody instead of getStmt.
2026-02-04 14:43:31 +01:00
Anders Schack-Mulligen
6f40ac15b4
Java: Rename ReturnStmt.getResult to getExpr.
2026-02-04 14:43:31 +01:00
Simon Friis Vindum
55ea55a44f
Merge pull request #21247 from paldepind/rust/self-types
...
Rust: Resolve `Self` paths in type definitions
2026-02-04 13:41:53 +01:00
Anders Schack-Mulligen
36fa0a22f9
Java: Rename getTrueExpr/getFalseExpr on ConditionalExpr to getThen/getElse.
2026-02-04 13:38:11 +01:00
Michael Nebel
60bb9a9b06
C#: Move some populate methods and location writing methods.
2026-02-04 13:24:21 +01:00
Michael Nebel
c68cd58f70
C#: Add parameter marker interface, allow a type to a parent for parameter and make it possible to specify a parameter position offset.
2026-02-04 13:19:29 +01:00
Michael Nebel
dca10f8740
C#: Add extended_type to the DB scheme.
2026-02-04 12:51:30 +01:00
Owen Mansel-Chan
3f08ff88a4
Pretty print models in test
...
Otherwise the tests breaks when unrelated changes are made because the
model numbers change
2026-02-04 10:52:44 +00:00
Anders Schack-Mulligen
5e6e64b2b7
Java: Rename UnaryExpr.getExpr to getOperand.
2026-02-04 10:50:49 +01:00
Paolo Tranquilli
4973523404
C#: Fix CSRF query to check antiforgery attributes on base classes
...
Fixes https://github.com/github/codeql/discussions/21255
2026-02-04 09:42:20 +01:00
Michael B. Gale
571f21ba49
C#: Emit diagnostic if private registries are configured
2026-02-03 15:28:47 +00:00
Anders Schack-Mulligen
2d61fc5309
Java: Add support for "View CFG".
2026-02-03 15:49:27 +01:00
Michael B. Gale
8e39ed079e
Merge pull request #21252 from github/mbg/go/private-registry-diagnostic
...
Go: Add diagnostic for private registry usage
2026-02-03 14:36:19 +00:00
Anders Schack-Mulligen
389cd5d648
Cfg: Extract CFG pretty-printing code.
2026-02-03 15:33:55 +01:00
Mathias Vorreiter Pedersen
092d25451f
C++: Fix Copilot comments.
2026-02-03 11:45:30 +00:00
Mathias Vorreiter Pedersen
32b86eca50
C++: Add change note.
2026-02-03 11:40:31 +00:00
Mathias Vorreiter Pedersen
40a58135c2
C++: Accept test changes.
2026-02-03 11:30:55 +00:00
Mathias Vorreiter Pedersen
7ef96e3f3c
C++: Add taint-inheriting reads from the Winhttp structs.
2026-02-03 11:30:31 +00:00
Mathias Vorreiter Pedersen
5531ef9bc1
C++: Accept test changes.
2026-02-03 11:17:23 +00:00
Mathias Vorreiter Pedersen
cbc2dbc14d
C++: Add flow sources and summary models.
2026-02-03 11:14:16 +00:00
Mathias Vorreiter Pedersen
208cf716dc
C++: Add tests with tests for remote flow sources from the Win32 API and from the Azure SDK.
2026-02-03 11:13:45 +00:00
Simon Friis Vindum
d72d8b63ed
Rust: Fix inconsistency by skipping Self in use globs
2026-02-03 11:54:28 +01:00
Simon Friis Vindum
1791c1f1f9
Rust: Add test with path resolution inconsistency
2026-02-03 11:51:55 +01:00
Michael B. Gale
d5c4a19efa
Apply suggestions from code review
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2026-02-03 10:34:14 +00:00
Tom Hvitved
6fbf727309
Merge pull request #21251 from hvitved/rust/fix-bad-join
...
Rust: Fix bad join
2026-02-02 19:12:30 +01:00
Owen Mansel-Chan
e00390d23a
Merge pull request #21224 from owen-mc/go/use-shared-basic-block-lib
...
Go: Use shared basic block lib
2026-02-02 16:31:06 +00:00
Michael B. Gale
d079671ec8
Align testItems with what getEnvVars does
2026-02-02 16:17:22 +00:00
Michael B. Gale
cbbc057dd3
Fix singular/plural wording and add test
2026-02-02 16:15:36 +00:00
Simon Friis Vindum
9fc2a54712
Rust: Accept changes to expected files for consistency checks
2026-02-02 17:12:25 +01:00
Simon Friis Vindum
d0e30d19c4
Rust: Resolve as paths to trait
2026-02-02 16:47:43 +01:00
Simon Friis Vindum
8de37fec17
Rust: Add tests with as paths
2026-02-02 16:43:21 +01:00
Henry Mercer
e712e62f14
Merge pull request #21250 from github/post-release-prep/codeql-cli-2.24.1
...
Post-release preparation for codeql-cli-2.24.1
2026-02-02 07:31:39 -08:00
Michael B. Gale
30b30d65c8
Emit the new diagnostic
2026-02-02 14:47:25 +00:00
Michael B. Gale
6d67e419ff
Move private registry sources out of util package
2026-02-02 14:45:06 +00:00
Michael B. Gale
29930fa6bf
Track active proxy configurations
2026-02-02 14:40:08 +00:00
Michael B. Gale
a57c6cde30
Add EmitPrivateRegistryUsed
2026-02-02 14:39:27 +00:00
Tom Hvitved
b16f1d3778
Rust: Fix bad join
...
Before
```
Evaluated relational algebra for predicate _PathResolution::ImplItemNode.getTraitPath/0#dispred#3b7d1cb6_PathResolution::ImplOrTraitItemNode.ge__#shared@0d3de6d9 with tuple counts:
395360270 ~2% {5} r1 = JOIN Type::TAssociatedTypeTypeParameter#6da9e52a WITH `PathResolution::ImplItemNode.getTraitPath/0#dispred#3b7d1cb6` CARTESIAN PRODUCT OUTPUT Rhs.0, Lhs.0, Lhs.1, Lhs.2, Rhs.1
1274237644 ~0% {6} | JOIN WITH `PathResolution::ItemNode.getASuccessor/1#8f430f71` ON FIRST 1 OUTPUT Lhs.1, Lhs.2, Lhs.3, Lhs.4, Rhs.1, Rhs.2
1274237644 ~0% {6} | JOIN WITH PathResolution::TraitItemNode#8d4ce62d ON FIRST 1 OUTPUT Lhs.0, Lhs.4, Lhs.1, Lhs.2, Lhs.3, Lhs.5
6984871 ~0% {5} | JOIN WITH `PathResolution::ImplOrTraitItemNode.getAssocItem/1#f77bb9ed` ON FIRST 3 OUTPUT Lhs.2, Lhs.0, Lhs.3, Lhs.4, Lhs.5
6984871 ~0% {4} | JOIN WITH TypeAlias::Generated::TypeAlias#1ca97780 ON FIRST 1 OUTPUT Lhs.4, Lhs.1, Lhs.2, Lhs.3
6076675 ~0% {4} | JOIN WITH `TypeAlias::Generated::TypeAlias.getTypeRepr/0#dispred#5fd7e521` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3
return r1
```
After
```
Evaluated relational algebra for predicate _PathResolution::ImplItemNode.getTraitPath/0#dispred#3b7d1cb6_PathResolution::ImplOrTraitItemNode.ge__#shared@760e0499 with tuple counts:
443292 ~2% {3} r1 = SCAN `PathResolution::ImplOrTraitItemNode.getAssocItem/1#f77bb9ed` OUTPUT In.0, In.2, In.1
1258 ~1% {3} | JOIN WITH Type::TAssociatedTypeTypeParameter#6da9e52a ON FIRST 2 OUTPUT Lhs.2, Lhs.0, Rhs.2
13656944 ~3% {4} | JOIN WITH `PathResolution::ItemNode.getASuccessor/1#8f430f71_102#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Rhs.2
6984871 ~0% {4} | JOIN WITH `PathResolution::ImplItemNode.getTraitPath/0#dispred#3b7d1cb6` ON FIRST 1 OUTPUT Lhs.3, Lhs.1, Lhs.2, Rhs.1
6076675 ~0% {4} | JOIN WITH `TypeAlias::Generated::TypeAlias.getTypeRepr/0#dispred#5fd7e521` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3
return r1
```
2026-02-02 15:26:32 +01:00
github-actions[bot]
73d06f26cb
Post-release preparation for codeql-cli-2.24.1
2026-02-02 14:04:26 +00:00
Ben Rodes
7ddfa80399
Merge branch 'main' into azure_python_sdk_url_summary_upstream
2026-02-02 09:00:35 -05:00
Henry Mercer
fedb9464af
Merge pull request #21248 from github/henrymercer/fix-mysql-typo
...
Fix capitalization of MySQL
2026-02-02 05:33:39 -08:00
Simon Friis Vindum
99b498b891
Rust: Resolve Self paths in type definitions
2026-02-02 13:51:59 +01:00
Simon Friis Vindum
95afe615b5
Rust: Add path resolution tests
2026-02-02 13:51:57 +01:00
Simon Friis Vindum
8b03608a4f
Merge pull request #21188 from paldepind/rust/self-path-assoc
...
Rust: Implement type inference for associated types for concrete types
2026-02-02 13:50:43 +01:00
Henry Mercer
1a6b2b9b82
Fix capitalization of MySQL
2026-02-02 12:37:32 +00:00
Henry Mercer
57c2208f7a
Merge pull request #21246 from github/henrymercer/kotlin/version-range-formatting
...
Fix formatting of Kotlin version ranges
2026-02-02 04:30:52 -08:00
Henry Mercer
5f1fd57f84
Fix formatting of Kotlin version ranges
2026-02-02 12:22:50 +00:00
Henry Mercer
6b78313701
Merge pull request #21245 from github/release-prep/2.24.1
...
Release preparation for version 2.24.1
2026-02-02 04:12:14 -08:00
Henry Mercer
38fcc61817
Fix formatting in Kotlin changelog
2026-02-02 12:10:15 +00:00
github-actions[bot]
0db542e9f0
Release preparation for version 2.24.1
2026-02-02 12:09:09 +00:00
Tom Hvitved
4a04f7b66f
Merge pull request #21243 from hvitved/csharp/insecure-object-tests
...
C#: Add more tests for `InsecureDirectObjectReference.ql`
2026-02-02 13:03:23 +01:00
Simon Friis Vindum
0567864a83
Rust: Make module private
...
Co-authored-by: Tom Hvitved <hvitved@github.com >
2026-02-02 12:57:26 +01:00
Simon Friis Vindum
18576838d4
Rust: Minor tweaks and improvements
2026-02-02 12:07:18 +01:00
Tom Hvitved
fe0634574d
C#: Add more tests for InsecureDirectObjectReference.ql
2026-02-02 11:09:26 +01:00
Michael B. Gale
9a00c75460
Merge pull request #21236 from github/mbg/csharp/fix-registry-feeds
...
C#: Make sure `allFeeds` contains at least `explicitFeeds`
2026-02-02 07:49:33 +00:00
Owen Mansel-Chan
8aa1bff9a5
Add AstNode.getEnclosingBlock()
2026-02-01 23:06:26 +00:00
Owen Mansel-Chan
5204255615
Merge pull request #21234 from owen-mc/python/convert-sanitizers-to-mad
...
Python: Allow models-as-data sanitizers
2026-01-30 14:28:39 +00:00
Owen Mansel-Chan
0222159df5
Specify vulnerable args instead of safe ones
2026-01-30 14:10:03 +00:00
Michael B. Gale
454d13b485
Remove element check
2026-01-30 14:03:43 +00:00
Mathias Vorreiter Pedersen
16670511de
Merge pull request #21239 from MathiasVP/logical-binary-fix-guards-cpp
...
C++: Ensure that there are AST `GuardCondition`s for `||` and `&&`
2026-01-30 13:50:55 +00:00
Michael B. Gale
ad2aa6d4f8
Accept expected diagnostic output
2026-01-30 13:38:50 +00:00
Michael B. Gale
3e0719609f
Fix missing negation
2026-01-30 13:30:47 +00:00
Michael B. Gale
1aba0b20cd
Add integration test
2026-01-30 13:19:47 +00:00
Michael B. Gale
1b5ed129ac
Log and emit diagnostic if incorrectly named files are found
2026-01-30 13:19:46 +00:00
Mathias Vorreiter Pedersen
5f079c1d51
C++: Add change note.
2026-01-30 12:19:28 +00:00
Michael B. Gale
5ba3b679dd
Move into if statement
2026-01-30 12:18:56 +00:00
yoff
8c0baefd3b
Merge pull request #21141 from mbaluda/prompt-injection
...
Python: Prompt injection in OpenAI clients
2026-01-30 12:55:56 +01:00
Anders Peter Fugmann
78495035a6
Merge pull request #20965 from github/andersfugmann/kotlin_2.3.0-beta2
...
Kotlin: Support Kotlin 2.3.0
2026-01-30 11:37:19 +01:00
Owen Mansel-Chan
a3885cd8b2
Replace sanitizer by exclusion from sink definition
2026-01-30 09:28:02 +00:00
Owen Mansel-Chan
b4cb2c3f13
Make qldoc slightly more specific
2026-01-30 09:28:01 +00:00
Owen Mansel-Chan
ef6332c581
Allow MaD sanitizers for queries with MaD sinks
2026-01-30 09:27:59 +00:00
Owen Mansel-Chan
ad6f800022
Pretty print model numbers in tests
2026-01-30 09:21:24 +00:00
Owen Mansel-Chan
e5f52f086c
Merge pull request #21235 from owen-mc/shared/docs/provenance-path-graph
...
Shared: Add missing QLDocs
2026-01-30 09:02:48 +00:00
Jon Janego
18a2aca42f
Merge pull request #21237 from github/urllib-typo-fix
...
Urllib typo fix
2026-01-29 17:32:12 -06:00
yoff
e7a0fc7140
python: Add query for prompt injection
...
This pull request introduces a new CodeQL query for detecting prompt injection vulnerabilities in Python code targeting AI prompting APIs such as agents and openai. The changes includes a new experimental query, new taint flow and type models, a customizable dataflow configuration, documentation, and comprehensive test coverage.
2026-01-29 23:47:52 +01:00
Jon Janego
f14ccd8c81
Fix typo in taint flow model for urllib.parse
2026-01-29 16:21:14 -06:00
Jon Janego
e54d7c7c73
Update CHANGELOG.md
2026-01-29 16:20:25 -06:00
Jon Janego
813d4639ca
Fix typo in taint flow model for urllib.parse
2026-01-29 16:18:21 -06:00
Michael B. Gale
76fe3fa502
C#: Make sure allFeeds contains at least explicitFeeds
2026-01-29 21:43:44 +00:00
Owen Mansel-Chan
8b936c5dbe
Add missing QLDocs
2026-01-29 16:45:23 +00:00
Taus
34800d1519
Merge pull request #20945 from joefarebrother/python-websockets
...
Python: Model remote flow sources for the `websockets` library
2026-01-29 15:47:46 +01:00
Jon Janego
1644376cc9
Merge pull request #21222 from github/codeql-spark-run-21376405640
...
Update changelog documentation site
2026-01-29 08:44:11 -06:00
Mathias Vorreiter Pedersen
1b1c9c680c
Merge pull request #21227 from MathiasVP/postfix-fix
...
C++: Get rid of an ugly workaround in dataflow
2026-01-29 12:25:02 +00:00
Mathias Vorreiter Pedersen
61a53fadc0
C++: Fix spelling.
2026-01-29 11:50:44 +00:00
Owen Mansel-Chan
2f29c905c3
Fix typo in change note
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-01-28 22:39:08 +00:00
Owen Mansel-Chan
e1cf0a15ed
Add change note
2026-01-28 22:12:31 +00:00
Owen Mansel-Chan
52c510bfea
Use shared getScope instead of getRoot
2026-01-28 22:12:30 +00:00
Owen Mansel-Chan
b2f878229d
Use shared getASuccessor and getAPredecessor
2026-01-28 22:12:23 +00:00
Owen Mansel-Chan
3dd6b3fb69
Use shared basic blocks library
2026-01-28 22:11:59 +00:00
Owen Mansel-Chan
c316d51d41
Add ConditionGuardNode.getOutcome
2026-01-28 21:46:26 +00:00
Mathias Vorreiter Pedersen
25647badbd
C++: Fix the AST wrapper for binary logical operators.
2026-01-28 14:06:10 +00:00
Mathias Vorreiter Pedersen
6445fd805d
C++: Fix IR -> AST mapping for basic blocks.
2026-01-28 14:01:34 +00:00
Owen Mansel-Chan
a35e7b27af
Merge pull request #21226 from owen-mc/java/update-qhelp-unrelease-lock
...
Java: Improve qhelp for `java/unreleased-lock` and add lock type exclusion
2026-01-28 09:46:31 +00:00
Anders Fugmann
ab495fa843
Kotlin: Inline cast
2026-01-28 10:11:22 +01:00
Anders Fugmann
2320d502db
Kotlin: Address detections from kotin internal queries
2026-01-28 10:11:21 +01:00
Anders Fugmann
31867a56fb
Kotlin: Accept test changes
...
Accept test changes from Kotlin 2.3.0 update
Updates expected test outputs for kotlin2 library tests to match
actual compiler output. Changes include:
- Location adjustments for properties/methods (now point to identifiers)
- CastExpr -> ImplicitCastExpr for implicit type casts
- Removed duplicate BlockStmt entries in loop ASTs
- Super constructor call location changes
Note that in Kotlin 2.3.0 super constructor calls now have locations spanning
entire class declarations instead of the actual super call site.
2026-01-28 10:11:21 +01:00
Anders Fugmann
86d9c349ec
Kotlin: Accept test changes
2026-01-28 10:11:21 +01:00
Anders Fugmann
59fa01e386
Kotlin: Add bitwise 'and' operation expected by Kotlin 2.3 compiler to exist in the stdlib
2026-01-28 10:11:20 +01:00
Anders Fugmann
a6f8af0de5
Kotlin: Accept column location changes in tests
2026-01-28 10:11:20 +01:00
Anders Fugmann
f6f5b7e1e9
Kotlin: Accept test changes after rebasing to include changes from https://github.com/github/codeql/pull/21216
2026-01-28 10:11:19 +01:00
Anders Fugmann
275724000b
Kotlin: Update kotlin serialization integration test to use Kotlin compiler 1.8.10 and accept test changes
2026-01-28 09:30:22 +01:00
Anders Fugmann
939f3e83aa
Kotlin: Update kotlin compiler version in integration tests
2026-01-28 09:30:22 +01:00
Anders Fugmann
d69fe20d7d
Kotlin: Bump upper bound for supported kotlin version in integration test
2026-01-28 09:30:22 +01:00
Anders Fugmann
9f5de6b4f2
Kotlin: Bump versions in documentation
2026-01-28 09:30:21 +01:00
Anders Fugmann
6d60595d73
Kotlin: Add changenotes for Kotlin 2.3 support and removal of support for Kotlin 1.6 and 1.7
2026-01-28 09:30:21 +01:00
Anders Fugmann
e1f3d5b374
Kotlin: Do not skip writing of getter and setters if the local deligate is null
2026-01-28 09:30:20 +01:00
Anders Fugmann
5cdfb77504
Kotlin: Add additional warning suppresion to v1_9_0 and remove copy in v2_3_0
2026-01-28 09:30:20 +01:00
Anders Fugmann
8ee35231c2
Kotlin: Remove support for Kotlin versions 1.6 and 1.7
...
This change rolls up all files from v1_6_0, v1_6_20, v1_7_0 and v_1_7_20.
In addition, versioned files that are not overridden by any later Kotlin versions (i.e. files that only have one copy under utils/versions) are inlined and removed to simplify list of changes.
List of removed/inlined files:
allOverriddenIncludingSelf.kt
copyTo.kt
ExperimentalCompilerApi.kt
getFileClassFqName.kt
IsUnderscoreParameter.kt
ReferenceEntity.kt
SyntheticBodyKind.kt
Types.kt
withHasQuestionMark.kt
2026-01-28 09:30:20 +01:00
Anders Fugmann
55525279ca
Kotlin: Remove obsolete file
2026-01-28 09:30:19 +01:00
Anders Fugmann
4d7c84178a
Kotlin: Fix spelling
2026-01-28 09:30:19 +01:00
Anders Fugmann
eb37255c4b
Kotlin: Create IrSimpleType factory function to support constructor changes introduced in Kotlin 2.3
2026-01-28 09:30:18 +01:00
Anders Fugmann
164cae845d
Kotlin: Strip prefix when building plugin
2026-01-28 09:30:18 +01:00
Anders Fugmann
b8d01ed21b
Kotlin: Fix bazel format and address copilot review comments
2026-01-28 09:30:18 +01:00
Anders Fugmann
cc25d30fed
Kotlin: Update compiler plugin for Kotlin 2.3.0
2026-01-28 09:30:17 +01:00
Anders Fugmann
07e5479aff
Kotlin: Add support for Kotlin 2.3.0
2026-01-28 09:30:17 +01:00
Anders Fugmann
bc419fd35c
Kotlin: Silence compilation warnings
2026-01-28 09:30:16 +01:00
Anders Fugmann
772503bad8
Kotlin: Remove resource_strip_prefix for kotlin extraction
2026-01-28 09:30:16 +01:00
Anders Fugmann
beff080ee7
Kotlin: Update kotlin_rules to 2.2.0 and remove support for Kotlin 1.6 and 1.7
2026-01-28 09:30:16 +01:00
Anders Peter Fugmann
f4edff9452
Merge pull request #21216 from github/andersfugmann/kotlin_extractor_load_last
...
Kotlin: Load kotlin extractor last
2026-01-28 09:22:46 +01:00
Mathias Vorreiter Pedersen
4503c625b4
C++: Implement copilot suggestions.
2026-01-27 19:02:28 +00:00
Mathias Vorreiter Pedersen
28fec0c129
C++: Accept test changes.
2026-01-27 18:29:21 +00:00
Mathias Vorreiter Pedersen
445cca1432
C++: Proper SSA support for post-crement reads.
2026-01-27 18:29:12 +00:00
Henry Mercer
497135593c
Merge branch 'main' into codeql-spark-run-21376405640
2026-01-27 09:11:02 -08:00
Henry Mercer
2214a944bb
Merge pull request #21225 from github/rc/3.20
...
Merge `rc/3.20` back to `main`
2026-01-27 07:56:58 -08:00
Owen Mansel-Chan
a0c35516bd
Add change note
2026-01-27 15:48:04 +00:00
Owen Mansel-Chan
42cbe0734e
Specify what lock types are considered in qhelp
2026-01-27 15:39:03 +00:00
Owen Mansel-Chan
516b84b59a
Add test for *Pool exclusion
2026-01-27 15:38:29 +00:00
Owen Mansel-Chan
4f1ad0ff5d
Exclude *Pool classes from LockType
2026-01-27 15:38:06 +00:00
Jon Janego
ccc4d8ae3f
Update docs/codeql/codeql-overview/codeql-changelog/codeql-cli-2.24.0.rst
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-01-27 09:18:25 -06:00
Simon Friis Vindum
2cb0e81da0
Rust: Remove duplicated inclusion of getAdditionalPathTypeAt
2026-01-27 16:17:52 +01:00
Simon Friis Vindum
aae5333325
Rust: Add test with type inference inconsistency
2026-01-27 16:17:51 +01:00
Simon Friis Vindum
fa59a8ae24
Rust: Implement TypeMention for paths that access associated types on concrete types
2026-01-27 16:17:49 +01:00
Simon Friis Vindum
4526afc29f
Rust: Paths to associated types resolve to the associated type if implementation is unclear
2026-01-27 16:17:48 +01:00
Jon Janego
1c5a9053f9
Fix typo in call graph description in change notes
2026-01-27 09:17:40 -06:00
Jon Janego
5a08adc06c
Update docs/codeql/codeql-overview/codeql-changelog/codeql-cli-2.23.1.rst
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-01-27 09:11:01 -06:00
Jon Janego
0b8b75ac25
Update codeql-cli-2.23.1.rst
2026-01-27 09:10:37 -06:00
Mads Navntoft
b7125a009e
Merge pull request #21221 from github/navntoft/struts
...
Java: Add support for Struts 7.x package names
2026-01-27 15:53:26 +01:00
Owen Mansel-Chan
97a0b9f0ca
(trivial) Remove double spaces in qhelp
2026-01-27 14:40:23 +00:00
Ian Lynagh
46a5035543
Merge pull request #21200 from github/igfoo/rename-holdsInBase-to-isBase
...
C++: Rename `holdsInBase` to `isBase`
2026-01-27 13:50:04 +00:00
Ian Lynagh
bb71790a53
Merge pull request #21199 from github/igfoo/refactorOverlayFunctionCalls
...
C++ overlay: Simplify QL
2026-01-27 13:03:01 +00:00
Mathias Vorreiter Pedersen
db3f22a2e8
C++: Another small refactor.
2026-01-27 12:46:52 +00:00
Mathias Vorreiter Pedersen
3d445be926
C++: Small refactor.
2026-01-27 12:46:48 +00:00
Mads Navntoft
ede05b54ea
Java: Add change note for Struts 7.x package name support
2026-01-27 13:00:16 +01:00
Mads Navntoft
9a94d0474c
Java: Add support for Struts 7.x package names
...
Updates Struts library to recognize both legacy xwork2 and new struts2
packages:
- StrutsActions.qll: Add org.apache.struts2 alternatives for Action,
Preparable, ActionSupport
- StrutsConventions.qll: Add org.apache.struts2.action.Action
alternative
This maintains backward compatibility for analyzing Struts 2.x-6.x apps
while supporting Struts 7.x which renamed packages from
com.opensymphony.xwork2 to org.apache.struts2.
2026-01-27 12:57:55 +01:00
Mathias Vorreiter Pedersen
9e9d57bac5
Merge pull request #21219 from MathiasVP/force-more-uniquess-in-buffer-overflow
...
C++: Enforce more uniqueness in `Buffer.qll`
2026-01-27 11:00:40 +00:00
Owen Mansel-Chan
8e3c373548
Merge pull request #21223 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2026-01-27 10:35:28 +00:00
Owen Mansel-Chan
5bfeede364
Add dependency on shared controlflow library
2026-01-27 09:43:19 +00:00
github-actions[bot]
f49531b3ca
Add changed framework coverage reports
2026-01-27 00:28:39 +00:00
github-actions[bot]
0f4f0b880a
update codeql documentation
2026-01-26 22:32:02 +00:00
Mathias Vorreiter Pedersen
e0a7889b71
C++: Undo the hack.
2026-01-26 21:28:21 +00:00
Mathias Vorreiter Pedersen
bd09aad7d5
C++: Add tests.
2026-01-26 21:24:22 +00:00
Mathias Vorreiter Pedersen
980c4cf5f4
Update cpp/ql/lib/semmle/code/cpp/commons/Buffer.qll
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-01-26 19:12:38 +00:00
Mathias Vorreiter Pedersen
544015d0a6
C++: Add change note.
2026-01-26 19:12:14 +00:00
Tom Hvitved
b974a84bef
Merge pull request #21051 from hvitved/shared/flow-summary-provenance-filtering
...
Shared: Provenance-based filtering of flow summaries
2026-01-26 17:24:34 +01:00
Mathias Vorreiter Pedersen
aed0e688f5
C++: Remove uniqueness since it is enforced earlier now.
2026-01-26 15:01:40 +00:00
Mathias Vorreiter Pedersen
13a5249a9d
C++: Enforce uniqueness in the other branch of 'getSize'.
2026-01-26 15:00:58 +00:00
Mathias Vorreiter Pedersen
91752e5307
C++: Enforce uniqueness in 'getVariableSize'.
2026-01-26 15:00:00 +00:00
Simon Friis Vindum
330505c524
Rust: Add tests for associated types
2026-01-26 15:03:07 +01:00
Anders Fugmann
73850f1b56
Kotlin: Add changenote
2026-01-26 13:27:34 +01:00
yoff
2bd4ccee45
Merge pull request #21004 from yoff/python/mad-barriers
...
Python: MaD barriers
2026-01-26 13:11:21 +01:00
Tom Hvitved
df09f02981
Shared: Shadow hasManualModel in RelevantSummarizedCallable
2026-01-26 12:40:25 +01:00
Tom Hvitved
732c60c07c
C#: Revert change to getASummarizedCallableTarget
2026-01-26 12:40:24 +01:00
Tom Hvitved
0f6bae0ae1
Add change notes
2026-01-26 12:40:22 +01:00
Tom Hvitved
93dad867cd
JS: Adapt to changes in FlowSummaryImpl
2026-01-26 12:40:21 +01:00
Tom Hvitved
3b1e062985
C++: Adapt to changes in FlowSummaryImpl
2026-01-26 12:40:20 +01:00
Tom Hvitved
0adece7cde
Python: Adapt to changes in FlowSummaryImpl
2026-01-26 12:40:19 +01:00
Tom Hvitved
739748c29b
Go: Adapt to changes in FlowSummaryImpl
2026-01-26 12:40:18 +01:00
Tom Hvitved
47d9e8a357
Swift: Adapt to changes in FlowSummaryImpl
2026-01-26 12:40:17 +01:00
Tom Hvitved
7024b07dd2
Java: Adapt to changes in FlowSummaryImpl
...
Missing manual models were added using the following code added to `FlowSummaryImpl.qll`:
```ql
private predicate testsummaryElement(
Input::SummarizedCallableBase c, string namespace, string type, boolean subtypes, string name,
string signature, string ext, string originalInput, string originalOutput, string kind,
string provenance, string model, boolean isExact
) {
exists(string input, string output, Callable baseCallable |
summaryModel(namespace, type, subtypes, name, signature, ext, originalInput, originalOutput,
kind, provenance, model) and
baseCallable = interpretElement(namespace, type, subtypes, name, signature, ext, isExact) and
(
c.asCallable() = baseCallable and input = originalInput and output = originalOutput
or
correspondingKotlinParameterDefaultsArgSpec(baseCallable, c.asCallable(), originalInput,
input) and
correspondingKotlinParameterDefaultsArgSpec(baseCallable, c.asCallable(), originalOutput,
output)
)
)
}
private predicate testsummaryElement2(
string namespace, string type, boolean subtypes, string name, string signature, string ext,
string originalInput, string originalOutput, string kind, string provenance, string model,
string namespace2, string type2
) {
exists(Input::SummarizedCallableBase c |
testsummaryElement(c, namespace2, type2, _, _, _, ext, originalInput, originalOutput, kind,
provenance, model, false) and
testsummaryElement(c, namespace, type, subtypes, name, _, _, _, _, _, provenance, _, true) and
signature = paramsString(c.asCallable()) and
not testsummaryElement(c, _, _, _, _, _, _, originalInput, originalOutput, kind, provenance,
_, true)
)
}
private string getAMissingManualModel(string namespace2, string type2) {
exists(
string namespace, string type, boolean subtypes, string name, string signature, string ext,
string originalInput, string originalOutput, string kind, string provenance, string model
|
testsummaryElement2(namespace, type, subtypes, name, signature, ext, originalInput,
originalOutput, kind, provenance, model, namespace2, type2) and
result =
"- [\"" + namespace + "\", \"" + type + "\", True, \"" + name + "\", \"" + signature +
"\", \"\", \"" + originalInput + "\", \"" + originalOutput + "\", \"" + kind + "\", \"" +
provenance + "\"]"
)
}
```
2026-01-26 12:40:15 +01:00
Tom Hvitved
c975ae5231
Ruby: Adapt to changes in FlowSummaryImpl
2026-01-26 12:40:14 +01:00
Tom Hvitved
c4e0dda178
Rust: Adapt to changes in FlowSummaryImpl
2026-01-26 12:40:10 +01:00
Tom Hvitved
b11b091559
C#: Adapt to changes in FlowSummaryImpl
2026-01-26 12:39:38 +01:00
Tom Hvitved
4ce04e4749
Shared: Provenance-based filtering of flow summaries
2026-01-26 12:39:37 +01:00
Simon Friis Vindum
01cc19cffc
Rust: Add trait visibility test using Self
2026-01-26 12:31:16 +01:00
Simon Friis Vindum
793d2c79de
Merge pull request #21215 from paldepind/shared/type-mention-tree
...
Shared, Rust: Use `HasTypeTreeSig` for `TypeMention`
2026-01-26 12:00:02 +01:00
Michael B. Gale
f76211c64a
Merge pull request #21136 from github/mbg/java/maven-plugin-repo-changenote
...
Java: Add change note for plugin repo support
2026-01-26 10:44:51 +00:00
Michael B. Gale
ffa700c825
Merge pull request #21214 from github/mbg/go/diagnostics-unit-tests
...
Go: Make diagnostics unit-testable and add test for `EmitCannotFindPackages`
2026-01-26 10:44:03 +00:00
Michael B. Gale
bd8a127565
Merge pull request #21213 from github/mbg/go/improve-package-not-found
2026-01-26 09:59:01 +00:00
Anders Fugmann
c488086135
Kotlin: Ensure the kotlin extractor is loaded as the last extension to be able to capture expansions from other extensions
2026-01-26 10:38:11 +01:00
Simon Friis Vindum
452d307fd5
Rust: Make TypeMention directly satisfy HasTypeTree
2026-01-26 09:46:33 +01:00
Simon Friis Vindum
7100ca4262
Rust: Adapt to changes in shared type inference library
2026-01-26 09:33:50 +01:00
Simon Friis Vindum
a7fecaaa1b
Shared: Use HasTypeTreeSig for TypeMention
2026-01-26 09:29:51 +01:00
Michael B. Gale
45e0a929a8
Move nil check into FileDiagnosticsWriter implementation of WriteDiagnostic
2026-01-25 15:33:26 +00:00
Michael B. Gale
8e7d62600d
Make EmitCannotFindPackages testable and add tests
2026-01-25 15:24:43 +00:00
Michael B. Gale
f1f4ddb76c
Add dependency on testify/assert
2026-01-25 15:20:06 +00:00
Michael B. Gale
fafc2ddc0b
Add DiagnosticsWriter interface to abstract over diagnostics output implementation
2026-01-25 15:20:05 +00:00
Michael B. Gale
f837d90060
Improve go/autobuilder/package-not-found diagnostic message
2026-01-25 15:18:19 +00:00
Michael B. Gale
fdc5ae375b
Add IsActionsWorkflow
2026-01-25 12:39:56 +00:00
Michael B. Gale
e250c711aa
Add IsDynamicActionsWorkflow
2026-01-25 12:06:30 +00:00
Mathias Vorreiter Pedersen
cabcb83b2f
Merge pull request #21212 from MathiasVP/fix-as-definition
...
C++: Fix missing results for `Node.asDefinition`
2026-01-23 19:39:22 +00:00
Jeroen Ketema
e36080061d
Merge pull request #21162 from owen-mc/cpp/mad-barriers
...
C++: Allow MaD barriers
2026-01-23 18:14:01 +01:00
Mathias Vorreiter Pedersen
6c2a3a68b6
C++: Add change note.
2026-01-23 16:35:02 +00:00
Mathias Vorreiter Pedersen
a556152b9d
C++: Fix asDefinition to not only work for SSA definitions.
2026-01-23 16:23:21 +00:00
Mathias Vorreiter Pedersen
e58a8330cd
C++: Add test for asDefinition.
2026-01-23 16:22:39 +00:00
Chris Smowton
949fc3745a
Merge pull request #21211 from smowton/smowton/fix/long-actions-expressions
...
Actions: tolerate long `${{ ... }}` expressions
2026-01-23 07:54:59 -08:00
Chris Smowton
a326ce34a8
change note
2026-01-23 15:47:17 +00:00
Chris Smowton
9018401722
Add test
2026-01-23 15:37:40 +00:00
Chris Smowton
6c2e0f7658
Move library tests into subdirectory
2026-01-23 15:35:25 +00:00
Chris Smowton
dc26a57548
Use posessive quantifier to avoid stack overflow on large ${{}} expressions
2026-01-23 15:35:24 +00:00
Owen Mansel-Chan
82e2afc93c
Merge pull request #5 from jketema/cpp/mad-barriers
...
C++: Add MySQL MaD taint and barrier models
2026-01-23 15:06:32 +00:00
Jeroen Ketema
7ed1c0a2ee
C++: Add change note
2026-01-23 14:15:29 +01:00
Jeroen Ketema
ecd247bf16
C++: Add MaD models for MySQL escaping
2026-01-23 14:15:27 +01:00
Jeroen Ketema
ad590f30c1
Merge branch 'main' into cpp/mad-barriers
2026-01-23 14:14:22 +01:00
Jeroen Ketema
075041f1ae
Merge pull request #21209 from jketema/jketema/sql
...
C++: Simplify `cpp/sql-injection` barrier
2026-01-23 13:33:19 +01:00
Rasmus Wriedt Larsen
7e674f3227
Merge pull request #21160 from owen-mc/scripts/accept-ci-changes-more-robust
...
Scripts: be more robust when parsing test logs
2026-01-23 11:49:06 +01:00
Geoffrey White
573ab025b4
Merge pull request #21191 from geoffw0/addsub
...
Rust: More test cases for add, sub etc
2026-01-23 10:30:21 +00:00
Simon Friis Vindum
7bdf2ab9d2
Merge pull request #21210 from paldepind/rust/self-tests
...
Rust: Add tests for `Self` constructors
2026-01-23 11:27:58 +01:00
Simon Friis Vindum
8f6f7d0985
Rust: Fix typo
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-01-23 10:07:11 +01:00
Simon Friis Vindum
3d7049265f
Rust: Add tests for Self constructors
2026-01-23 09:06:49 +01:00
Jeroen Ketema
ccd07b8a63
C++: Simplify cpp/sql-injection barrier
...
SQL sanitizers will not likely also be sources, so using `isBarrierIn` here
does not make a lot of sense.
I ran with and without this change on MRVA and got identical results.
2026-01-23 09:03:48 +01:00
yoff
55abc52c61
python: format file
2026-01-22 20:51:46 +01:00
Simon Friis Vindum
e40f896b17
Merge pull request #21205 from paldepind/shared/ti-boound-tm
...
Rust: Change `getATypeParameterConstraint` to not require a `TypeMention`
2026-01-22 19:08:53 +01:00
yoff
d05901ad3f
python/javascript/ruby: mark internal predicates
2026-01-22 17:30:24 +01:00
yoff
7f00a7f67e
Update python/ql/lib/semmle/python/security/dataflow/UrlRedirectCustomizations.qll
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2026-01-22 17:30:24 +01:00
yoff
b08c972cc3
ruby: Add back sanitizer as MaD model
2026-01-22 17:30:24 +01:00
yoff
15980cb1da
ruby: remove sanitizer to be replaced by MaD model
2026-01-22 17:30:24 +01:00
yoff
75bd4a7a12
javascript: add MaD model
...
- consider if the model is in the right place
- consider if the barrier kind (sink kind) is the appropriate one
2026-01-22 17:30:24 +01:00
yoff
da2f77d615
javascript: remove sanitizer to be replaced by model
2026-01-22 17:30:24 +01:00
yoff
3dbfb9fa4b
python: add machinery for MaD barriers
...
and reinstate previously removed barrier
now as a MaD row
2026-01-22 17:30:24 +01:00
yoff
699ed50432
python: remove barrier that can be expressed in MaD
2026-01-22 17:30:24 +01:00
Geoffrey White
f484d95081
Merge remote-tracking branch 'upstream/main' into addsub
2026-01-22 16:03:42 +00:00
Simon Friis Vindum
ffaf1c0a24
Rust: Change getATypeParameterConstraint to not require a TypeMention
2026-01-22 14:54:24 +01:00
Tom Hvitved
201512525b
Merge pull request #21203 from hvitved/ql4ql/use-nightly
...
QL4QL: Use nightly CodeQL CLI
2026-01-22 14:30:24 +01:00
Geoffrey White
b8581e89bf
Rust: More affected tests.
2026-01-22 13:22:43 +00:00
Simon Friis Vindum
7d34f6e262
Merge pull request #21204 from paldepind/rust/assoc-tp-fix
...
Rust: Remove mistakenly included inherited associated types
2026-01-22 13:46:09 +01:00
Geoffrey White
67b52e29e0
Rust: Update other affected tests.
2026-01-22 12:29:21 +00:00
Geoffrey White
3d6765ba1c
Rust: Clean up / fix some existing models.
2026-01-22 12:29:20 +00:00
Geoffrey White
fa9677d615
Rust: Add model variants for core::ops::bit on Wrapping.
2026-01-22 12:29:14 +00:00
Geoffrey White
9d645508ea
Rust: Add model variants for core::ops:arith on Wrapping.
2026-01-22 10:46:15 +00:00
Simon Friis Vindum
114db99dca
Rust: Remove mistakenly included inherited associated types
2026-01-22 11:44:26 +01:00
Tom Hvitved
8ce2618b7d
Merge pull request #21151 from hvitved/rust/disable-universal-conds-by-default
...
Type inference: Disable universal conditions by default
2026-01-22 11:19:50 +01:00
Geoffrey White
e8ef58d381
Rust: Fix an issue with identifying sources and sinks in the test.
2026-01-22 09:58:58 +00:00
Geoffrey White
f8d0a0d509
Rust: Expand the Wrapping test some more.
2026-01-22 09:52:26 +00:00
Tom Hvitved
80d543ecae
QL4QL: Use nightly CodeQL CLI
2026-01-22 10:14:05 +01:00
Tom Hvitved
65ca8849f2
Type inference: Disable universal conditions
2026-01-22 09:56:52 +01:00
Mathias Vorreiter Pedersen
73eb3e262d
Merge pull request #21202 from MathiasVP/add-is-live-predicate-to-ssa-definition
...
C++: Add `isLiveAtEndOfBlock` predicate to `Ssa::Definition`
2026-01-21 22:50:46 +00:00
Mathias Vorreiter Pedersen
60ee92d834
C++: Drive-by fix: Don't use the uncached ''getAPhiInputOrPriorDefinition' predicate. Instead, cache it and call it like we are supposed to.
2026-01-21 20:28:28 +00:00
Mathias Vorreiter Pedersen
d89967ce8e
C++: Add ''isLiveAtEndOfBlock' predicate to 'Definition'.
2026-01-21 20:27:39 +00:00
Mathias Vorreiter Pedersen
dd415386ea
Merge pull request #21142 from MathiasVP/ir-support-for-assertions
...
C++: Generate IR for assertions in release builds
2026-01-21 19:32:24 +00:00
Mathias Vorreiter Pedersen
64a7d7d836
C++: Also output variable name in test.
2026-01-21 19:14:50 +00:00
Ian Lynagh
5e536fb121
C++: Rename holdsInBase to isBase
...
Makes it consistent with isOverlay.
2026-01-21 18:13:58 +00:00
Ian Lynagh
7bd62087a4
C++ overlay: Simplify QL
...
Remove redundant variable names.
2026-01-21 18:06:43 +00:00
Owen Mansel-Chan
656ebab776
Allow MaD barriers
...
This commit was done by Opus 4.5 with the following prompt:
In the commit 004d40ee93 I have made it so that C# CodeQL queries which use sinks defined using data extensions (also known as "models-as-data"), which are accessed using `sinkNode(Node node, string kind)`, also use barriers defined using models-as-data, which are accessed using `barrierNode(Node node, string kind)`, with the same `kind` string. Please do the same for C++. If there are any complicated cases then list them at the end for me to do manually.
2026-01-21 14:45:05 +00:00
Mathias Vorreiter Pedersen
e1089c8d89
Merge branch 'main' into ir-support-for-assertions
2026-01-21 13:56:30 +00:00
Mathias Vorreiter Pedersen
11566ee256
C++: Accept test changes.
2026-01-21 13:50:28 +00:00
Mathias Vorreiter Pedersen
e4ec79255b
C++: Fix bugs in variable resolution for assertions following review comments.
2026-01-21 13:50:27 +00:00
Mathias Vorreiter Pedersen
c30dffc7b9
C++: Add more tests.
2026-01-21 13:50:13 +00:00
Geoffrey White
1d461ff5ad
Rust: Test unpacking the Wrapping number.
2026-01-21 12:49:59 +00:00
Mathias Vorreiter Pedersen
6ae1ea73f7
Merge pull request #21185 from MathiasVP/mad-cpp-guards
...
C++: Support models-as-data barriers and barrier guards
2026-01-21 12:13:49 +00:00
Paolo Tranquilli
0b9691aca2
Merge pull request #21047 from github/redsun82/codegen-readme
...
codegen: mention Rust in the README
2026-01-21 02:51:07 -08:00
Tom Hvitved
9a9e9ac23c
Merge pull request #21168 from hvitved/rust/type-inference-remove-blanket-constraint-restriction
...
Rust: Remove restriction that blanket(-like) impls must have a constraint
2026-01-21 11:05:17 +01:00
Taus
5414bd2716
Merge pull request #21134 from yoff/python/support-ListElement-in-MaD
...
Python support `ListElement` in MaD
2026-01-20 23:38:02 +01:00
Mathias Vorreiter Pedersen
048afc2c88
C++: Add assertion inside catch block. This does not yet work because the 'LocalScopeVariable' does not have a result for 'getFunction'.
2026-01-20 21:31:52 +00:00
Tom Hvitved
f76d85c9c6
Address review comments
2026-01-20 21:06:20 +01:00
yoff
fa926456ef
python: add changenote
2026-01-20 18:16:03 +01:00
Jon Janego
1c38fb6ad6
Merge pull request #21196 from github/changedocs-2.23.9
...
Changedocs 2.23.9
2026-01-20 10:43:21 -06:00
Jon Janego
b3b30a15b8
Changedocs for 2.23.9
2026-01-20 10:27:54 -06:00
Jon Janego
4ca508d420
Changedocs for 2.23.9
2026-01-20 10:23:36 -06:00
Jeroen Ketema
fbcb65a5d9
Merge pull request #21195 from jketema/jketema/embed
...
C++: Support C23/C++26 `#embed` preprocessor directives
2026-01-20 16:27:44 +01:00
Jeroen Ketema
701569bb20
Update cpp/ql/lib/semmle/code/cpp/Preprocessor.qll
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-01-20 16:05:51 +01:00
Jeroen Ketema
b35271a2ca
C++: Add upgrade and downgrade script
2026-01-20 15:40:24 +01:00
Jeroen Ketema
28047fe625
C++: Update dbscheme stats file
2026-01-20 14:39:00 +01:00
Jeroen Ketema
e7044061fb
C++: Support C23/C++26 #embed preprocessor directives
2026-01-20 14:38:58 +01:00
Ian Lynagh
f8f5094452
Merge pull request #20957 from igfoo/igfoo/consistent-metadata-and-overlay-support
...
C++ / JS / python: Be consistent in TRAP sections
2026-01-20 12:43:49 +00:00
Ian Lynagh
51b1ea84d3
ql for ql: Fix formatting
2026-01-20 12:12:20 +00:00
Ian Lynagh
49ced5fd9d
C++: Add up/downgrade scripts
2026-01-20 11:57:29 +00:00
Ian Lynagh
d6d2855626
rust: Add up/downgrade scripts
2026-01-20 11:56:20 +00:00
Ian Lynagh
c37ab8f98e
rust: Regenerate dbscheme
2026-01-20 11:56:16 +00:00
Ian Lynagh
1fd60c7671
Ruby: Add up/downgrade scripts
2026-01-20 11:56:16 +00:00
Ian Lynagh
82e9ea2da0
python: Add up/downgrade scripts
2026-01-20 11:56:16 +00:00
Ian Lynagh
a299174f4d
javascript: Add up/downgrade scripts
2026-01-20 11:56:15 +00:00
Ian Lynagh
fdefb4d23a
ql-for-ql: Regenerate dbscheme
2026-01-20 11:56:15 +00:00
Ian Lynagh
d2da49220b
python: Regenerate dbscheme
2026-01-20 11:56:15 +00:00
Ian Lynagh
4b9c9e7a5a
Ruby: Regenerate dbscheme
2026-01-20 11:56:15 +00:00
Ian Lynagh
df8029ff87
tree-sitter: Use more standard shared dbscheme sections
...
We now use the shared "Overlay support" and "Database metadata".
2026-01-20 11:56:15 +00:00
Ian Lynagh
4140121e96
javascript: Use more standard shared dbscheme sections
...
We now use the shared "Overlay support" and "Database metadata".
2026-01-20 11:56:14 +00:00
Ian Lynagh
7d6a1f72d5
C++: Use more standard shared dbscheme sections
...
We now use the shared "Overlay support" and "Database metadata".
2026-01-20 11:56:14 +00:00
Ian Lynagh
c6500e2759
tree-sitter: Add dbscheme regeneration instructions
2026-01-20 11:56:14 +00:00
Ian Lynagh
470bc7d6da
ruby: Make 'dbscheme' a phony target
2026-01-20 11:56:14 +00:00
Ian Lynagh
d1175276ca
python: Use more standard shared dbscheme sections
...
We now use the shared "Overlay support" and "Database metadata".
2026-01-20 11:56:13 +00:00
Ian Lynagh
d125e224ac
python: Add dbscheme regeneration instructions
2026-01-20 11:56:13 +00:00
Philip Ginsbach-Chen
dc3b7aaab0
Merge pull request #21184 from github/ginsbach/OverlayDocumentation
...
add documentation for overlay annotations
2026-01-20 11:26:46 +00:00
Philip Ginsbach
8d5eb407ad
incorporate additional suggestions from PR review
2026-01-20 11:17:15 +00:00
Tom Hvitved
224e5dece4
Merge pull request #21170 from paldepind/rust/type-inference-fns
...
Rust: Improve type inference for closures and function traits
2026-01-20 11:52:10 +01:00
Simon Friis Vindum
dd73399238
Rust: Tweak a comment
...
Co-authored-by: Tom Hvitved <hvitved@github.com >
2026-01-20 09:57:27 +01:00
Simon Friis Vindum
8e6f920ae2
Rust: Fix naming of mention_dyn_fn
2026-01-20 08:50:58 +01:00
Simon Friis Vindum
75cab960e2
Rust: Make AnyTraitFn abstract
2026-01-20 08:50:57 +01:00
Nick Rolfe
6fe76b3b11
Merge pull request #21190 from github/post-release-prep/codeql-cli-2.24.0
...
Post-release preparation for codeql-cli-2.24.0
2026-01-19 10:09:32 -08:00
Geoffrey White
ff6e598f72
Rust: Annotate failures with explanation.
2026-01-19 17:33:44 +00:00
Geoffrey White
fc5d5b4fcc
Rust: Compress the existing core::ops::arith models a bit.
2026-01-19 17:33:41 +00:00
Geoffrey White
50fdc99b8c
Rust: More test cases for operators, std::ops and std::num::Wrapping.
2026-01-19 16:58:03 +00:00
github-actions[bot]
48475e66af
Post-release preparation for codeql-cli-2.24.0
2026-01-19 15:49:08 +00:00
Michael Nebel
93b3f65388
Merge pull request #21158 from michaelnebel/csharp/cfgforaccess
...
C# 14: Null conditional assignments.
2026-01-19 16:22:55 +01:00
Nick Rolfe
c5329f6f38
Merge pull request #21189 from github/release-prep/2.24.0
...
Release preparation for version 2.24.0
2026-01-19 07:19:55 -08:00
Nick Rolfe
1739e135f5
Fix list formatting inconsistency
2026-01-19 15:17:11 +00:00
Nick Rolfe
783676566c
Fix typo in changelog
2026-01-19 15:12:05 +00:00
Geoffrey White
a0311c0ea3
Rust: Test spacing.
2026-01-19 15:07:42 +00:00
github-actions[bot]
4142b9c4ce
Release preparation for version 2.24.0
2026-01-19 14:49:14 +00:00
Philip Ginsbach
930b17a2e2
clarify compileForOverlayEval only needed in language packs
2026-01-19 14:06:45 +00:00
Philip Ginsbach
efe413cbd0
expand overlay introduction with base/overlay context
2026-01-19 13:59:01 +00:00
Asger F
bedb80346a
Merge pull request #20940 from asgerf/js/detect-minified-files
...
JS: Skip minified file if avg line length > 200
2026-01-19 14:31:09 +01:00
Michael Nebel
7ff1c12e8f
C#: Add some more tests.
2026-01-19 13:17:47 +01:00
Michael Nebel
7ae2b7698e
C#: Relax the condition for when a qualified expression might be null.
2026-01-19 13:17:07 +01:00
Mathias Vorreiter Pedersen
d183dcd6fc
C++: Add 'internal: do not use' comment.
2026-01-19 12:04:12 +00:00
Mathias Vorreiter Pedersen
c11b464492
C++: Autoformat.
2026-01-19 11:58:11 +00:00
Mathias Vorreiter Pedersen
b3631545d4
C++: Delete unnecessary conjuncts after review comments.
2026-01-19 11:57:45 +00:00
Mathias Vorreiter Pedersen
c47a9ddf83
Apply suggestions from code review
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-01-19 11:46:42 +00:00
Philip Ginsbach
4e478c3629
add overlay documentation to handbook and language spec
2026-01-19 11:45:18 +00:00
Mathias Vorreiter Pedersen
7aca94b1ca
C++: Add change note.
2026-01-19 11:43:59 +00:00
Mathias Vorreiter Pedersen
c70633a0f7
C++: Fix Code Scanning alert.
2026-01-19 11:41:26 +00:00
Mathias Vorreiter Pedersen
58a3260c96
Update cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedAssertion.qll
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2026-01-19 11:33:48 +00:00
Mathias Vorreiter Pedersen
a11b271d6e
C++: Finish up implementation of MaD barriers.
2026-01-19 11:30:23 +00:00
Anders Schack-Mulligen
48254800b1
WIP
...
C++: Add support for MaD barriers and barrier guards.
2026-01-19 11:30:21 +00:00
Mathias Vorreiter Pedersen
07ac8a5d81
C++: Parameterize the BarrierGuard modules. This is useful for barrier guards with flow states and will be necessary in the next commit for adding MaD specified barriers.
2026-01-19 11:30:19 +00:00
Mathias Vorreiter Pedersen
2b31928c7b
C++: Add MaD barrier guard tests.
2026-01-19 11:30:17 +00:00
Mathias Vorreiter Pedersen
dc7ce3fba3
Merge pull request #21171 from MathiasVP/fix-conflation-in-guards
...
C++: Fix conflation in barrier guards
2026-01-19 11:29:05 +00:00
Philip Ginsbach
948623e767
add overlay annotation support to QL syntax highlighter
2026-01-19 10:36:11 +00:00
Tom Hvitved
fd309d6e49
Rust: Remove restriction that blanket(-like) impls must have a constraint
2026-01-19 11:21:58 +01:00
Michael Nebel
33fc2bab33
C#: Update test expected output.
2026-01-19 10:19:15 +01:00
Asger F
077bbb24ac
Merge pull request #21159 from asgerf/js/vue-prop-function
...
JS: Add support for props callbacks in Vue router configs
2026-01-19 10:13:49 +01:00
Michael Nebel
beb7750c21
C#: Address review comments.
2026-01-19 10:06:14 +01:00
Tom Hvitved
06b99b2ce9
Merge pull request #21180 from hvitved/rust/fix-bad-join2
...
Rust: Fix bad join
2026-01-19 08:22:32 +01:00
Tom Hvitved
1c689d060b
Merge pull request #21179 from hvitved/rust/fix-bad-join
...
Rust: Fix bad join
2026-01-16 17:20:19 +01:00
Mathias Vorreiter Pedersen
f05bff01e4
C++: Switch another 'DataFlowType' to 'Type'.
2026-01-16 12:42:33 +00:00
Mathias Vorreiter Pedersen
08a6b99cfd
C++: Add change note.
2026-01-16 12:41:20 +00:00
Tom Hvitved
43e20176f0
Rust: Fix bad join
...
Before
```
Evaluated relational algebra for predicate _ElementImpl::Impl::MacroExpansion::isAttributeMacroExpansionSourceLocation/2#3429148c_Locatable::Lo__#antijoin_rhs@9f4aa4rk with tuple counts:
5127263380 ~4% {3} r1 = JOIN `_AstNodeImpl::Impl::AstNode#22e758cf_ElementImpl::Impl::MacroExpansion::getATokenTreeNode/1#a2df59a3__#shared` WITH `ElementImpl::Impl::MacroExpansion::isAttributeMacroExpansionSourceLocation/2#3429148c` ON FIRST 1 OUTPUT Lhs.1, Rhs.1, Lhs.0
305226 ~0% {2} | JOIN WITH `Locatable::Locatable.getLocation/0#dispred#f3f7e2b2` ON FIRST 2 OUTPUT Lhs.0, Lhs.2
return r1
```
(No After; the predicate is no longer generated)
2026-01-16 13:30:10 +01:00
Mathias Vorreiter Pedersen
5e9fd12d8c
Update cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-01-16 12:25:12 +00:00
Tom Hvitved
767acb8ff4
Rust: Fix bad join
...
Before
```
Evaluated relational algebra for predicate TypeMention::RefTypeReprMention.resolveRootType/0#dispred#091b949a#fb@4bd8a49g with tuple counts:
124419 ~0% {1} r1 = RefTypeRepr::Generated::RefTypeRepr#422893fa AND NOT `RefTypeRepr::Generated::RefTypeRepr.isMut/0#dispred#e2b9988f`(FIRST 1)
6621454761 ~1% {3} | JOIN WITH `Type::DataType.getTypeItem/0#dispred#83467854` CARTESIAN PRODUCT OUTPUT Rhs.0, Lhs.0, Rhs.1
915101745 ~0% {4} | JOIN WITH `project#Type::DataType.getPositionalTypeParameter/1#dispred#3bf49cbe` ON FIRST 1 OUTPUT Lhs.2, _, Lhs.1, Lhs.0
915101745 ~3% {4} | REWRITE WITH Out.1 := "Ref"
124419 ~0% {2} | JOIN WITH `Builtins::BuiltinType.getName/0#dispred#8f62ab0a` ON FIRST 2 OUTPUT Lhs.2, Lhs.3
76728 ~0% {1} r2 = JOIN RefTypeRepr::Generated::RefTypeRepr#422893fa WITH `RefTypeRepr::Generated::RefTypeRepr.isMut/0#dispred#e2b9988f` ON FIRST 1 OUTPUT Lhs.0
4083387432 ~1% {3} | JOIN WITH `Type::DataType.getTypeItem/0#dispred#83467854` CARTESIAN PRODUCT OUTPUT Rhs.0, Lhs.0, Rhs.1
564334440 ~3% {4} | JOIN WITH `project#Type::DataType.getPositionalTypeParameter/1#dispred#3bf49cbe` ON FIRST 1 OUTPUT Lhs.2, _, Lhs.1, Lhs.0
564334440 ~0% {4} | REWRITE WITH Out.1 := "RefMut"
76728 ~2% {2} | JOIN WITH `Builtins::BuiltinType.getName/0#dispred#8f62ab0a` ON FIRST 2 OUTPUT Lhs.2, Lhs.3
201147 ~1% {2} r3 = r1 UNION r2
return r3
```
After
```
Evaluated relational algebra for predicate TypeMention::RefTypeReprMention.resolveRootType/0#dispred#091b949a#fb@8f12aa2a with tuple counts:
124419 ~0% {1} r1 = RefTypeRepr::Generated::RefTypeRepr#422893fa AND NOT `RefTypeRepr::Generated::RefTypeRepr.isMut/0#dispred#e2b9988f`(FIRST 1)
124419 ~0% {2} | JOIN WITH Type::RefSharedType#090df68e CARTESIAN PRODUCT OUTPUT Rhs.0, Lhs.0
124419 ~0% {2} | JOIN WITH `project#Type::DataType.getPositionalTypeParameter/1#dispred#3bf49cbe` ON FIRST 1 OUTPUT Lhs.1, Lhs.0
76728 ~0% {1} r2 = JOIN RefTypeRepr::Generated::RefTypeRepr#422893fa WITH `RefTypeRepr::Generated::RefTypeRepr.isMut/0#dispred#e2b9988f` ON FIRST 1 OUTPUT Lhs.0
76728 ~0% {2} | JOIN WITH Type::RefMutType#c67a1837 CARTESIAN PRODUCT OUTPUT Rhs.0, Lhs.0
76728 ~2% {2} | JOIN WITH `project#Type::DataType.getPositionalTypeParameter/1#dispred#3bf49cbe` ON FIRST 1 OUTPUT Lhs.1, Lhs.0
201147 ~1% {2} r3 = r1 UNION r2
return r3
```
2026-01-16 13:11:45 +01:00
Tom Hvitved
7c95fefd96
Merge pull request #21177 from hvitved/actions/example-dir
...
Actions: Add `examples` qlpack
2026-01-16 13:03:54 +01:00
Tom Hvitved
3cdca25a67
Actions: Add examples qlpack
2026-01-16 12:48:54 +01:00
Michael Nebel
86198e3c43
C#: Add tests for out writeacceses.
2026-01-16 11:54:10 +01:00
Michael Nebel
bd1c6e6352
C#: Exclude the field access cases from missing argument call.
2026-01-16 11:54:09 +01:00
Michael Nebel
3d988e8e94
C#: Add field access for out assignments in the CFG.
2026-01-16 11:54:07 +01:00
Michael Nebel
812fdbe412
C#: Add change-note.
2026-01-16 11:54:06 +01:00
Michael Nebel
ab432ec2e9
C#: Update test expected output.
2026-01-16 11:54:04 +01:00
Michael Nebel
5942edf2d9
C#: Take null conditional assignments into account in MaybeNullExpr.
2026-01-16 11:54:02 +01:00
Michael Nebel
f0135e93c5
C#: Add a tests for MaybeNullExpr.
2026-01-16 11:54:01 +01:00
Michael Nebel
4ba89230db
C#: Update test expected output.
2026-01-16 11:53:59 +01:00
Michael Nebel
0bf0cbae8f
C#: Add some null conditional assignments CFG tests.
2026-01-16 11:53:57 +01:00
Michael Nebel
b061c4d083
C#: Update test expected output.
2026-01-16 11:53:55 +01:00
Michael Nebel
98949937dd
C#: Add CFG support for null conditional assignments and include eg. field access in the CFG.
2026-01-16 11:53:54 +01:00
Simon Friis Vindum
ec094400fb
Merge pull request #21172 from paldepind/rust/dyn-abs
...
Rust: Avoid unnecessary constraint satisfaction
2026-01-16 11:32:39 +01:00
Simon Friis Vindum
78b88d3a44
Rust: Fix grammar in QLDoc
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-01-16 11:26:05 +01:00
Simon Friis Vindum
6b3d863f70
Rust: Remove trait parameter from canonicalDynTraitTypeAbstraction
2026-01-16 11:12:34 +01:00
Owen Mansel-Chan
c14b869856
Merge pull request #21175 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2026-01-16 09:49:29 +00:00
Simon Friis Vindum
a11693268b
Rust: Avoid duplicated entries in conditionSatisfiesConstraint for dyn trait types
2026-01-16 10:46:23 +01:00
Simon Friis Vindum
c0b3569473
Rust: Move TypeAbstraction into separate file
2026-01-16 10:45:50 +01:00
Simon Friis Vindum
9ab29f9be0
Rust: Add a change note for type inference improvements for closures
2026-01-16 10:05:45 +01:00
Simon Friis Vindum
dabc5d54c9
Rust: Improve type inference for closures and function traits
2026-01-16 10:01:00 +01:00
github-actions[bot]
549307a6bd
Add changed framework coverage reports
2026-01-16 00:26:48 +00:00
Mathias Vorreiter Pedersen
6da7890ff5
C++: Add indirect barrier guard to 'cpp/unbounded-write' to prevent FPs after fixing conflation.
2026-01-15 18:31:54 +00:00
Mathias Vorreiter Pedersen
03d6528687
Update cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedAssertion.qll
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2026-01-15 15:58:28 +00:00
Mathias Vorreiter Pedersen
1b117900c2
Update cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedStmt.qll
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2026-01-15 14:42:11 +00:00
Mathias Vorreiter Pedersen
d6ca1ca846
Update cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedStmt.qll
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2026-01-15 14:41:13 +00:00
Owen Mansel-Chan
a5d9cb179a
Merge pull request #20930 from owen-mc/java/spring-rest-template-request-forgery-sinks
...
Java: add more Spring RestTemplate request forgery sinks
2026-01-15 14:23:15 +00:00
Tom Hvitved
d3fc254e17
Merge pull request #21169 from hvitved/shard-compile-queries
...
Make `compile-queries.yml` sharded based on language
2026-01-15 15:11:01 +01:00
Mathias Vorreiter Pedersen
28681508f3
C++: Fix bug and accept test changes.
2026-01-15 11:17:15 +00:00
Mathias Vorreiter Pedersen
27a437a514
C++: Modify test to reveal a bug.
2026-01-15 11:16:15 +00:00
Simon Friis Vindum
196f6e1931
Rust: Add type inference tests for closures and function traits
2026-01-15 12:00:41 +01:00
Simon Friis Vindum
d8061c17cc
Merge pull request #21165 from paldepind/rust/associated-types
...
Rust: Associated types are inherited as type parameters by traits and dyn traits
2026-01-15 11:50:00 +01:00
Owen Mansel-Chan
97e0b4e9fd
Use parameter name to only select correct overloads
2026-01-15 10:36:03 +00:00
Simon Friis Vindum
15f3c38041
Rust: QLDoc fixes
2026-01-15 11:34:58 +01:00
Anders Schack-Mulligen
c632e8f188
Merge pull request #20448 from github/alexet/avoid-path-node-java
...
Java: Eliminate pointless use of PathNodes over DataFlow::Node
2026-01-15 10:55:09 +01:00
Tom Hvitved
b4bbafa96f
Make compile-queries.yml sharded based on language
2026-01-15 10:30:08 +01:00
Owen Mansel-Chan
13dc17c9b8
Merge pull request #21167 from owen-mc/java/docs/library-coverage
...
Java: List more covered java frameworks explicitly in docs
2026-01-15 09:18:51 +00:00
Jeroen Ketema
3327193a11
Merge pull request #21164 from jketema/jketema/builtin
...
C++: More builtins and information regarding this param refs
2026-01-15 08:21:01 +01:00
Owen Mansel-Chan
6e0a1ba233
List more covered java frameworks explicitly
2026-01-15 07:18:15 +00:00
Simon Friis Vindum
8cbe17a62b
Rust: Fix bad join on name column
2026-01-15 07:23:34 +01:00
Simon Friis Vindum
ca3e2db217
Rust: Accept changes to expected files
2026-01-14 16:00:59 +01:00
Simon Friis Vindum
465400115f
Rust: Adapt type inference consistency query exceptions
2026-01-14 15:36:35 +01:00
Owen Mansel-Chan
0cf0aac397
Merge pull request #21109 from owen-mc/go/misc-trivial-fixes
...
Go: misc trivial fixes
2026-01-14 14:10:41 +00:00
Jeroen Ketema
17a453bb33
Merge pull request #21126 from jketema/subscript
...
C++: Add predicates to support C++23 multidimensional subscript operators
2026-01-14 14:48:14 +01:00
Simon Friis Vindum
a19ad5e557
Rust: Associated types are inherited as type parameters by traits and dyn traits
2026-01-14 14:44:31 +01:00
Simon Friis Vindum
62193540f7
Rust: Add additional tests for associated types
2026-01-14 14:44:30 +01:00
Simon Friis Vindum
fd5658dfe8
Rust: Tweak tests for associated types
2026-01-14 14:44:23 +01:00
Simon Friis Vindum
e0c36c758d
Rust: Move associated types tests into separate file
2026-01-14 14:39:59 +01:00
Tom Hvitved
991d30f7aa
Merge pull request #21161 from hvitved/rust/restrict-implicit-deref-borrow-nodes
...
Rust: Restrict `ImplicitDerefBorrowNode` to nodes with enclosing CFG scope
2026-01-14 14:37:40 +01:00
Jeroen Ketema
1dacd83915
C++: Update dbscheme stats file
2026-01-14 13:35:53 +01:00
Jeroen Ketema
7a13cbae3f
C++: Add upgrade and downgrade scripts
2026-01-14 13:35:52 +01:00
Jeroen Ketema
f6b720b37b
C++: Add change note
2026-01-14 13:35:51 +01:00
Jeroen Ketema
047fa068ff
C++: Add isThisAccess predicate to ParamAccessForType
2026-01-14 13:35:50 +01:00
Jeroen Ketema
bb33ea383c
C++: Add change note for new builtins
2026-01-14 13:35:49 +01:00
Jeroen Ketema
93535d1c86
C++: Add tests for new builtin operations
2026-01-14 13:35:47 +01:00
Jeroen Ketema
3d959abdeb
C++: Support new builtin operations
2026-01-14 13:35:46 +01:00
Jeroen Ketema
5d00a4df86
Merge pull request #21143 from jketema/jketema/friends
...
C++: Update test expectations after extractor changes
2026-01-14 13:31:40 +01:00
Owen Mansel-Chan
e01b674581
Merge pull request #21082 from mbaluda/couchdb
...
This PR adds models Java client APIs for CouchBase and adds tests for 2 queries
2026-01-14 12:06:47 +00:00
Owen Mansel-Chan
16113e6550
Use type cast to make QL more succinct
2026-01-14 11:50:56 +00:00
Owen Mansel-Chan
76bba60383
Fix misspelling in comment
2026-01-14 11:50:55 +00:00
Owen Mansel-Chan
0dc47380a3
Swap order of equality for easier comprehension
2026-01-14 11:50:53 +00:00
Owen Mansel-Chan
b58e88291e
Remove redundant import
2026-01-14 11:50:52 +00:00
Owen Mansel-Chan
94bc47ab15
Swap order of supertypes
2026-01-14 11:50:50 +00:00
Owen Mansel-Chan
3850734a15
Use non-extending subtypes
2026-01-14 11:50:49 +00:00
Owen Mansel-Chan
93d7c5c7ef
Remove redundant supertypes
2026-01-14 11:50:44 +00:00
Owen Mansel-Chan
1cd0698453
Fix test for reflected xss sanitizer
...
It used to pass even without ErrorSanitizer because `cookie` is already
sanitized.
2026-01-14 11:50:08 +00:00
Owen Mansel-Chan
9d5e5b0c8a
Add post-processing to Beego tests
2026-01-14 11:50:06 +00:00
Asger F
ff580410fe
Merge pull request #20733 from asgerf/js/incremental-api-graphs
...
JS: Incremental API graph
2026-01-14 12:49:41 +01:00
Mauro Baluda
9f725f7098
Merge branch 'main' into couchdb
2026-01-14 12:33:47 +01:00
Mauro Baluda
f71b6c1bfd
Improved models for Supplier arguments
2026-01-14 12:32:42 +01:00
Jeroen Ketema
54f75653ba
C++: Update test expectations after extractor changes
2026-01-14 12:01:51 +01:00
Mauro Baluda
5cef0376a9
Update java/ql/test/query-tests/security/CWE-798/semmle/tests/HardcodedCouchBaseCredentials.java
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2026-01-14 11:50:52 +01:00
Asger F
06cc323aee
Update javascript/ql/src/change-notes/2025-12-05-skip-minified-files.md
...
Co-authored-by: Taus <tausbn@github.com >
2026-01-14 11:40:01 +01:00
Asger F
b47ae420ca
Update javascript/ql/src/change-notes/2025-12-05-skip-minified-files.md
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-01-14 11:40:01 +01:00
Asger F
0eadebcabd
Update javascript/extractor/src/com/semmle/js/extractor/FileExtractor.java
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-01-14 11:40:01 +01:00
Asger F
739ed4b3bb
JS: Change note
2026-01-14 11:40:01 +01:00
Asger F
7ab52a81a7
JS: Add environment variable to opt out of the behaviour if needed
2026-01-14 11:40:01 +01:00
Asger F
2892ab61ae
JS: Make sure a file is not seen as minified
2026-01-14 11:40:01 +01:00
Asger F
84f6b6f67a
JS: Accept test change due to file no longer being extracted
2026-01-14 11:40:01 +01:00
Asger F
98c8b4c080
JS: Skip minified file if avg line length > 200
2026-01-14 11:40:01 +01:00
Asger F
e430aa97f3
Merge pull request #20916 from asgerf/js/next-folders2
...
JS: Handle Next.js files named 'page' or 'route'
2026-01-14 11:10:57 +01:00
Jeroen Ketema
40a91367ab
Merge pull request #21110 from jketema/jketema/rm-decimal
...
C++: Remove decimal floating point types
2026-01-14 10:58:39 +01:00
Tom Hvitved
cc4926ad37
Merge pull request #21148 from hvitved/rust/remove-macro-block-expr
...
Rust: Remove `MacroBlockExpr` class
2026-01-14 10:11:22 +01:00
Simon Friis Vindum
519f0d2780
Merge pull request #21023 from paldepind/rust/regenerate-models-1212
...
Rust: Regenerate models
2026-01-14 09:30:06 +01:00
Mauro Baluda
9efefa6120
Fix test expectations
2026-01-13 22:46:42 +01:00
Mauro Baluda
29f23ee192
Fix extraction error
2026-01-13 22:33:01 +01:00
Mauro Baluda
4b7662f652
Merge branch 'main' into couchdb
2026-01-13 21:50:44 +01:00
Mauro Baluda
d335f039ef
Improve model for CWE-089
2026-01-13 21:48:43 +01:00
Tom Hvitved
55d4902751
Rust: Restrict ImplicitDerefBorrowNode to nodes with enclosing CFG scope
2026-01-13 20:23:28 +01:00
yoff
6c4a0bb52b
Merge pull request #20990 from github/tausbn/python-support-relaxed-exception-groups
...
Python: Add support for PEP-758 exception syntax
2026-01-13 19:04:27 +01:00
Simon Friis Vindum
76a1e22ddc
Rust: Remove manual models that are now generated
2026-01-13 16:11:18 +01:00
Jeroen Ketema
f4980bede3
Update cpp/ql/lib/change-notes/2026-01-02-decimal-removal.md
2026-01-13 16:11:11 +01:00
Jeroen Ketema
9ba73ba4f0
C++: Update stats file
2026-01-13 16:11:10 +01:00
Jeroen Ketema
ffdd6f7d91
C++: Add change note
2026-01-13 16:11:09 +01:00
Jeroen Ketema
273f517a37
C++: Remove decimal types from the dbscheme
2026-01-13 16:11:08 +01:00
Jeroen Ketema
a20f0a11e8
C++: No longer expose _Decimal{32,64,128}
2026-01-13 16:11:06 +01:00
Jeroen Ketema
d20cd68a05
C++: Update expected test results after extractor changes
2026-01-13 16:11:05 +01:00
Simon Friis Vindum
da43e8cad8
Rust: Regenerate models
2026-01-13 16:02:32 +01:00
Simon Friis Vindum
d78491294a
Rust: Exclude reqwest response timeout field as a taint step
2026-01-13 15:58:27 +01:00
Simon Friis Vindum
862adec081
Rust: Disable dynamic dispatch when generating models
2026-01-13 15:58:25 +01:00
Simon Friis Vindum
1fbf0387f5
Rust: Skip model generation for Rocket due to performance issue
2026-01-13 15:58:24 +01:00
Simon Friis Vindum
8bfce6b284
Shared, rust: Add option to disable reads steps as taint steps in model generator
2026-01-13 15:58:23 +01:00
Simon Friis Vindum
9cdf63e175
Rust: Skip model generation for functions with a ; in their canonical path
2026-01-13 15:58:22 +01:00
Owen Mansel-Chan
8cb0f5faa6
Merge pull request #21140 from owen-mc/csharp/mad-barriers
...
C#: Allow MaD barriers and barrier guards, and convert some existing ones
2026-01-13 14:24:22 +00:00
Mauro Baluda
89f0e79ea1
Fix SqlTainted test
2026-01-13 13:55:14 +01:00
Ian Lynagh
63f78e7609
Merge pull request #21156 from igfoo/igfoo/mb
...
Merge rc/3.20 into main
2026-01-13 12:11:37 +00:00
Mauro Baluda
dda042f7df
rename change notes
2026-01-13 13:07:14 +01:00
Taus
5fc9b2de44
Merge pull request #21154 from github/tausbn/misc-add-cli-mode-for-change-note-script
...
Misc: Add CLI interface to `create-change-note.py`
2026-01-13 12:38:55 +01:00
Owen Mansel-Chan
657e26a375
Scripts: be more robust when parsing test logs
2026-01-13 11:36:27 +00:00
Anders Schack-Mulligen
9c1351c3fe
Merge pull request #21149 from aschackmull/java/typeflow-partially-unbound
...
Java: Add TypeFlow base case for partially unbound types.
2026-01-13 12:31:38 +01:00
Asger F
9fa856f974
JS: Change note
2026-01-13 11:49:33 +01:00
Asger F
7cd820ea86
JS: Add support for props callbacks in router configs
2026-01-13 11:46:12 +01:00
Geoffrey White
69de17ecf2
Merge pull request #21153 from geoffw0/splitoff
...
Rust: Add barrier for split_off
2026-01-13 10:44:31 +00:00
Asger F
40c35341d1
JS: Add props to Vue router test case
2026-01-13 11:44:07 +01:00
Owen Mansel-Chan
130f8f148b
Convert barrier to MaD
...
I confirmed that without the model a test fails.
2026-01-13 10:29:16 +00:00
Owen Mansel-Chan
68b618176e
Convert barrier guard to MaD
...
I checked that without the model a test fails.
2026-01-13 10:29:15 +00:00
Owen Mansel-Chan
b30bc5ea44
Allow MaD barriers relating to ExternalLocationSink
2026-01-13 10:29:13 +00:00
Owen Mansel-Chan
004d40ee93
Allow MaD barriers using sink kinds
2026-01-13 10:29:12 +00:00
Anders Schack-Mulligen
8b555ca514
Java: Add test.
2026-01-13 11:20:13 +01:00
Anders Schack-Mulligen
8257475ffb
Merge pull request #21132 from aschackmull/csharp/mad-barriers
...
C#: Add support for MaD barriers and barrier guards.
2026-01-13 11:00:02 +01:00
Owen Mansel-Chan
a96cd399b1
Merge pull request #21157 from github/dependabot/go_modules/go/extractor/extractor-dependencies-0d17b202ee
...
Bump golang.org/x/tools from 0.40.0 to 0.41.0 in /go/extractor in the extractor-dependencies group
2026-01-13 09:56:37 +00:00
Asger F
da9aafc3b0
JS: Also track additional use-steps crossing the overlay boundary
2026-01-13 10:54:16 +01:00
Simon Friis Vindum
7f092e418e
Merge pull request #21152 from paldepind/rust/typeinference-dir
...
Rust: Move everything type inference related into the typeinference directory
2026-01-13 10:41:13 +01:00
Asger F
ca52fe59e8
Merge pull request #20918 from asgerf/js/response-default-content-type
...
JS: Handle default 'content-type' header in Response() objects
2026-01-13 10:34:40 +01:00
Asger F
d2e6ae5e14
Update javascript/ql/lib/semmle/javascript/frameworks/Next.qll
...
Co-authored-by: Napalys Klicius <napalys@github.com >
2026-01-13 10:34:25 +01:00
Owen Mansel-Chan
f5b13db4ea
Merge pull request #21015 from aschackmull/go/mad-barriers
...
Go: Support for MaD barriers and barrier guards.
2026-01-13 09:31:09 +00:00
Tom Hvitved
31b4f88824
Rust: Add DB downgrade script
2026-01-13 10:24:40 +01:00
Tom Hvitved
4cc4717381
Rust: Add DB upgrade script
2026-01-13 10:24:39 +01:00
Tom Hvitved
5d5bad6cd4
Rust: Update expected test output
2026-01-13 10:24:10 +01:00
Tom Hvitved
5fb425fd67
Rust: Update extractor and QL code after removing MacroBlockExpr
2026-01-13 10:24:04 +01:00
Tom Hvitved
3eafca0550
Rust: Run codegen
2026-01-13 10:22:16 +01:00
Tom Hvitved
d6ec174e0c
Rust: Remove MacroBlockExpr class
2026-01-13 10:20:47 +01:00
Geoffrey White
b2d19b610e
Rust: US spelling.
2026-01-13 09:01:12 +00:00
Anders Schack-Mulligen
1151fc3be2
Update csharp/ql/lib/semmle/code/csharp/dataflow/internal/ExternalFlow.qll
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2026-01-13 09:14:33 +01:00
Simon Friis Vindum
e7791120fa
Rust: Address review comments
2026-01-13 07:53:39 +01:00
dependabot[bot]
37bb9d77d3
Bump golang.org/x/tools
...
Bumps the extractor-dependencies group in /go/extractor with 1 update: [golang.org/x/tools](https://github.com/golang/tools ).
Updates `golang.org/x/tools` from 0.40.0 to 0.41.0
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.40.0...v0.41.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-version: 0.41.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: extractor-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-01-13 05:38:36 +00:00
Ian Lynagh
dcd0a69759
Merge remote-tracking branch 'upstream/main' into igfoo/mb
2026-01-13 01:01:35 +00:00
Mathias Vorreiter Pedersen
4f4baee888
C++: Fix Code Scanning alerts.
2026-01-12 21:08:02 +00:00
Mathias Vorreiter Pedersen
aa058c2cca
C++: Generate IR for assertions in release builds.
2026-01-12 21:07:55 +00:00
Mathias Vorreiter Pedersen
a18f3b6859
C++: Avoid generating IR for a few cases where we will be synthesizing assertions.
2026-01-12 21:06:09 +00:00
Mathias Vorreiter Pedersen
67ab0fee83
C++: Add a few helper predicates.
2026-01-12 21:06:07 +00:00
Mathias Vorreiter Pedersen
6e3fd25b09
C++: Add tests for assertions in release builds.
2026-01-12 21:06:02 +00:00
Taus
de1d183ca6
Misc: Add CLI interface to create-change-note.py
...
This may be useful when working in "the other place", where the VSCode
task may not be easily accessible. (Also, some people may just prefer to
use a CLI interface.)
2026-01-12 15:32:03 +00:00
Simon Friis Vindum
9e74a7869a
Rust: Move everything type inference related into the typeinference directory
2026-01-12 16:31:34 +01:00
Taus
8c90c113c2
Update change note to reflect Python 2 changes
2026-01-12 15:27:38 +00:00
Taus
659ec3999b
Mark generated files as generated
2026-01-12 15:24:01 +00:00
Tom Hvitved
c666fc71ca
Merge pull request #21147 from hvitved/rust/fix-more-models
...
Rust: Add missing `.Reference` in various models
2026-01-12 15:27:51 +01:00
Geoffrey White
a78756ff8b
Merge branch 'main' into splitoff
2026-01-12 14:21:01 +00:00
Geoffrey White
479c58bef5
Rust: Add a barrier.
2026-01-12 13:52:54 +00:00
Geoffrey White
7658ebb449
Rust: Add spurious test case for rust/uncontrolled-allocation-size.
2026-01-12 13:52:53 +00:00
Tom Hvitved
17441a5462
Rust: Add missing .Reference in various models
2026-01-12 14:21:45 +01:00
Anders Schack-Mulligen
c28062aff5
Merge pull request #21127 from aschackmull/ssa/phi-input-perf
...
SSA: Improve performance of finding relevant phi input nodes.
2026-01-12 13:29:58 +01:00
Anders Schack-Mulligen
8e2d74a7b1
Java: Add TypeFlow base case for partially unbound types.
2026-01-12 12:45:06 +01:00
Tom Hvitved
6b34d0d250
Merge pull request #21123 from hvitved/rust/fix-path-models
...
Rust: Improve/add various models
2026-01-12 12:20:56 +01:00
Simon Friis Vindum
e4db3b17b4
Merge pull request #20584 from paldepind/cpp/range-analysis-fix
...
C++: Range analysis guard improvement
2026-01-12 11:23:48 +01:00
Simon Friis Vindum
c9e6d4235f
Merge pull request #21139 from paldepind/rust/fn-syntax-return
...
Rust: Make function trait syntax without return type default to unit
2026-01-12 11:22:50 +01:00
Owen Mansel-Chan
57ec850397
Merge pull request #21146 from github/dependabot/go_modules/go/extractor/extractor-dependencies-555680b348
...
Bump golang.org/x/mod from 0.31.0 to 0.32.0 in /go/extractor in the extractor-dependencies group
2026-01-12 09:44:33 +00:00
Anders Schack-Mulligen
aae8ec2240
SSA: Use fastTC for even better performance.
2026-01-12 09:39:15 +01:00
dependabot[bot]
4318c285cb
Bump golang.org/x/mod
...
Bumps the extractor-dependencies group in /go/extractor with 1 update: [golang.org/x/mod](https://github.com/golang/mod ).
Updates `golang.org/x/mod` from 0.31.0 to 0.32.0
- [Commits](https://github.com/golang/mod/compare/v0.31.0...v0.32.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/mod
dependency-version: 0.32.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: extractor-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-01-12 03:07:33 +00:00
Mauro Baluda
0464e64469
Merge branch 'github:main' into couchdb
2026-01-09 17:24:01 +01:00
Chris Smowton
44089d84a3
Merge pull request #21102 from github/smowton/admin/respect-config-paths-filters-pre-finalize
...
All languages: account for paths and paths-ignore in XML and other ancillary extraction
2026-01-09 16:23:26 +00:00
Chris Smowton
fa0e8cc4a4
Merge pull request #21137 from smowton/smowton/admin/reapply-java-xml-paths-filtering
...
Java: revert revert of `paths` / `paths-ignore` handling in XML and other ancillary extractor
2026-01-09 16:22:26 +00:00
Mauro Baluda
4c8058d97b
Merge branch 'github:main' into couchdb
2026-01-09 17:20:40 +01:00
Simon Friis Vindum
41921a85bb
Rust: Make function trait syntax without return type default to unit
2026-01-09 16:08:01 +01:00
Simon Friis Vindum
d45269609a
Rust: Add test with fn trait syntax without return type
2026-01-09 15:38:12 +01:00
Chris Smowton
634e9e6c39
Reapply "Change note"
...
This reverts commit 688f10daf1 .
2026-01-09 13:42:48 +00:00
Chris Smowton
13e0e6c694
Reapply "Add integration test for paths and paths-ignore vs. Java buildless mode"
...
This reverts commit 9db11f73c5 .
2026-01-09 13:42:43 +00:00
Tom Hvitved
f3d78a4e0b
Rust: Update expected test output
2026-01-09 14:40:04 +01:00
Tom Hvitved
609eb17e30
Rust: Add more models
2026-01-09 14:40:03 +01:00
Tom Hvitved
0d0029f5a3
Rust: Update expected test output
2026-01-09 14:40:01 +01:00
Tom Hvitved
792908586a
Rust: Add some ffi models
2026-01-09 14:40:00 +01:00
Tom Hvitved
31b0d3eb1d
Rust: Fix some models in fs.model.yml
2026-01-09 14:39:59 +01:00
Tom Hvitved
636bbe30f9
Merge pull request #21122 from hvitved/rust/summary-read-taint-step
...
Rust: Also lift read steps in summaries as taint steps
2026-01-09 14:39:39 +01:00
Simon Friis Vindum
ac62a9fe57
Merge pull request #21133 from paldepind/rust/type-item-path-resolution
...
Rust: Use `TypeItem` in path resolution
2026-01-09 14:35:12 +01:00
Taus
89ddd67ebe
Merge pull request #21002 from github/tausbn/python-add-models-for-zstd-compression
...
Python: Add modelling for `zstd.compression`
2026-01-09 14:05:06 +01:00
Michael B. Gale
157487d8f2
Java: Add change note for plugin repo support
2026-01-09 12:49:12 +00:00
yoff
1ac3706e75
Python support ListElement in MaD
2026-01-09 13:08:06 +01:00
Tom Hvitved
209ee9236b
Rust: Also lift read steps in summaries as taint steps
2026-01-09 12:13:46 +01:00
Tom Hvitved
1a29b32af9
Merge pull request #20987 from hvitved/rust/type-inference-deref-trait
...
Rust: Handle `Deref` trait in type inference and data flow
2026-01-09 12:10:46 +01:00
Owen Mansel-Chan
9493d9d5ab
Merge pull request #21131 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2026-01-09 10:48:36 +00:00
Simon Friis Vindum
11bd334370
Rust: Use TypeItem in path resolution
2026-01-09 11:40:16 +01:00
Tom Hvitved
e2eaf80202
Rust: Fix QL4QL finding
2026-01-09 11:28:37 +01:00
Owen Mansel-Chan
d7acb75f9d
Merge pull request #21055 from owen-mc/java/allow-mad-barriers
...
Java: allow MaD barriers
2026-01-09 10:27:48 +00:00
Tom Hvitved
6028cd6636
Address review comments
2026-01-09 11:14:23 +01:00
Owen Mansel-Chan
ca805e9d84
Fix QLDoc
2026-01-09 10:09:22 +00:00
Owen Mansel-Chan
c271e52fe5
Validate models for barriers and barrier guards
2026-01-09 10:04:56 +00:00
Owen Mansel-Chan
8c9318b1a0
Minor tweaks to QLDocs
2026-01-09 09:38:10 +00:00
Anders Schack-Mulligen
e35fa923c7
C#: Add support for MaD barriers and barrier guards.
2026-01-09 10:32:19 +01:00
Owen Mansel-Chan
70c90a1063
Merge pull request #21129 from owen-mc/java/delete-promoted-experimental-models
...
Java: Delete experimental models that have been promoted
2026-01-09 09:30:32 +00:00
Simon Friis Vindum
3a135888c7
C++: Improve bounds from inequalities on integers
2026-01-09 10:26:36 +01:00
Simon Friis Vindum
9af432d2f9
C++: Add simple range analysis tests for inequalities
2026-01-09 10:12:36 +01:00
github-actions[bot]
bea93ae03e
Add changed framework coverage reports
2026-01-09 00:26:15 +00:00
Owen Mansel-Chan
cce6823d3b
Delete experimental models that have been promoted
...
They were promoted in https://github.com/github/codeql/pull/17590
2026-01-08 15:33:59 +00:00
Anders Schack-Mulligen
af5adbac30
SSA: Improve performance of finding relevant phi input nodes.
2026-01-08 15:02:34 +01:00
Owen Mansel-Chan
8a80158959
Merge pull request #17590 from Kwstubbs/java-mad-test
...
Java: FileUpload Support MaD
2026-01-08 13:33:55 +00:00
Jeroen Ketema
72f1aa9381
C++: Add change notes
2026-01-08 13:59:39 +01:00
Jeroen Ketema
9ceb091f85
C++: Update predicate after getAnArrayOffset/0 deprecation
2026-01-08 13:54:02 +01:00
Simon Friis Vindum
c8728c24dc
Merge pull request #21125 from paldepind/rust/builtin-refactor
...
Rust: Use `getAssocItem` consistently in stdlib classes
2026-01-08 13:43:40 +01:00
Jeroen Ketema
4c3fb0c7c4
C++: Deprecate getArrayOffset/0
2026-01-08 13:22:38 +01:00
yoff
608fa1a0a3
Merge pull request #20910 from yoff/java/more-thread-safe-initialisers
2026-01-08 13:16:39 +01:00
Jeroen Ketema
e0f8b1254e
C++: Update expected test results
2026-01-08 13:13:20 +01:00
Jeroen Ketema
3907fc7e5a
C++: Add predicates to support multidimensional subscript operators
2026-01-08 13:13:10 +01:00
Simon Friis Vindum
26bd332617
Merge pull request #21113 from paldepind/cpp/range-analysis-float-ceil
...
C++: Remove `safeFloor` in simple range analysis
2026-01-08 13:07:30 +01:00
Jeroen Ketema
647d11a6ce
C++: Add test for C++23 multidimensional subscript operators
2026-01-08 13:02:31 +01:00
Jeroen Ketema
0c8fd833af
Merge pull request #21124 from jketema/jketema/vec-expr
...
C++: Add tests for logical vector operations
2026-01-08 12:50:31 +01:00
Owen Mansel-Chan
c419b51efd
Merge pull request #21120 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2026-01-08 11:32:08 +00:00
Simon Friis Vindum
56f5328530
Rust: Use getAssocItem consistently in stdlib classes
2026-01-08 11:59:10 +01:00
Jeroen Ketema
217c5cb78b
C++: Update tests after adding extractor support for logical vector operations
2026-01-08 11:55:47 +01:00
Jeroen Ketema
89c11b8daf
C++: Add tests for logical vector operations
2026-01-08 11:54:49 +01:00
Jeroen Ketema
1ebf623541
C++: Add space in tests for adding new tests in a logical place
2026-01-08 11:54:42 +01:00
Paolo Tranquilli
22b88aea06
Merge pull request #21119 from github/redsun82/cmake
...
Cmake: fix bazel not generating files for the cmake generator
2026-01-08 09:59:08 +01:00
Asger F
2ea3c0e366
Merge pull request #20938 from tesseractjh/js/use-cache-directives
...
JS: Add use cache directives from Next.js 16
2026-01-08 09:51:53 +01:00
Simon Friis Vindum
7c0054bf25
C++: Tweak a comment in simple range analysis
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2026-01-08 08:51:04 +01:00
github-actions[bot]
614a05133e
Add changed framework coverage reports
2026-01-08 00:26:30 +00:00
Chris Smowton
d048d394b4
Merge pull request #21117 from smowton/smowton/admin/revert-java-paths-directives
...
Java: revert filtering of ancillary data extraction
2026-01-07 16:13:21 +00:00
Jeroen Ketema
a5f6806239
Merge pull request #21105 from jketema/load-this
...
C++: Use the loaded `this` instead of the `this` initialization
2026-01-07 16:51:14 +01:00
Paolo Tranquilli
e3503be1d1
Cmake: fix bazel not generating files for the cmake generator
2026-01-07 16:36:36 +01:00
Taus
8602a2d59b
Python: Use correct first parameter name for zstd call
...
Co-authored-by: yoff <yoff@github.com >
2026-01-07 14:47:11 +01:00
Owen Mansel-Chan
6a3c74c989
Merge pull request #20999 from joefarebrother/java-spring-websocket
...
Java: Add models for spring WebSocketHandler
2026-01-07 13:29:19 +00:00
Chris Smowton
688f10daf1
Revert "Change note"
...
This reverts commit 6fb6923f63 .
2026-01-07 13:20:17 +00:00
Chris Smowton
9db11f73c5
Revert "Add integration test for paths and paths-ignore vs. Java buildless mode"
...
This reverts commit 102cfd06a7 .
2026-01-07 13:20:12 +00:00
Tom Hvitved
fef00c1668
Add change note
2026-01-07 14:17:48 +01:00
Tom Hvitved
2d4da807c1
Merge pull request #21114 from hvitved/rust/exclude-result-err-taint-step
...
Rust: Add `Result::Err` to `excludeFieldTaintStep`
2026-01-07 14:01:49 +01:00
Michael Nebel
7ed3d3f3e1
Merge pull request #21065 from michaelnebel/csharp/implicitspanconversions
...
C# 14: Implicit span conversions.
2026-01-07 13:39:58 +01:00
Simon Friis Vindum
f5ddb1d51d
C++: Remove safeFloor in simple range analysis
2026-01-07 12:49:09 +01:00
Owen Mansel-Chan
6c291e1e7f
Add model for handlePongMessage and update test
2026-01-07 11:09:59 +00:00
Tom Hvitved
1e792132ba
Rust: Add Result::Err to excludeFieldTaintStep
2026-01-07 11:37:08 +01:00
Asger F
cf0b77074f
JS: Workaround forceLocal not supporting 'result' column
...
A bug made it into the release which causes compilation errors when
forceLocal is used on a predicate with a result column.
This commit works around the issue by converting the result column
to a positional parameter, for the predicates that we use forceLocal on.
It should be safe to revert this commit once the compiler fix has made
it into a stable release.
2026-01-07 11:05:41 +01:00
Asger F
e16cacd48d
JS: Rename "in scope" to "in active file"
2026-01-07 11:05:41 +01:00
Asger F
87049bd07e
Update javascript/ql/lib/semmle/javascript/ApiGraphs.qll
...
Co-authored-by: Taus <tausbn@github.com >
2026-01-07 11:05:41 +01:00
Asger F
56a6fe4c08
Update javascript/ql/lib/semmle/javascript/ApiGraphs.qll
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-01-07 11:05:41 +01:00
Asger F
d0dbc91aa9
Update javascript/ql/lib/semmle/javascript/ApiGraphs.qll
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-01-07 11:05:41 +01:00
Asger F
9721b4e0f5
JS: Fix bad join in export logic
2026-01-07 11:05:41 +01:00
Asger F
cae27c40be
JS: Add a missing needsDefNode restriction
...
Previously this was implied by MkClassInstance but that's no longer
the case.
2026-01-07 11:05:41 +01:00
Asger F
369848a870
JS: Fix some QL4QL alerts
2026-01-07 11:05:41 +01:00
Asger F
869efb8a48
JS: Sync ApiGraphModels.qll
2026-01-07 11:05:41 +01:00
Asger F
97d369cf4e
JS: Make API::Node overlay[local?]
...
We want the type itself to be local but nearly all its member predicates
are global.
2026-01-07 11:05:41 +01:00
Asger F
27e8bcb347
JS: Add back promisify-all support
...
This was somehow lost in a rebase
2026-01-07 11:05:41 +01:00
Asger F
8731eee10e
JS: Work around an issue with overlay-invariance
2026-01-07 11:05:41 +01:00
Asger F
962c128f20
JS: Update test output to reflect Node.toString() change
2026-01-07 11:05:41 +01:00
Asger F
7974416e65
JS: Simplify toString()
2026-01-07 11:05:41 +01:00
Asger F
651608a170
JS: Bugfix in Stage1Local::trackDefNode
2026-01-07 11:05:41 +01:00
Asger F
ed3a8bdfa9
JS: Include import paths from custom ModuleImportNode::Range subclasses
2026-01-07 11:05:41 +01:00
Asger F
c687dc93b0
JS: Add overlay[global] to abstract classes with fields
...
Some abstract classes defines fields without binding them, leaving it up to the subclasses to bind them. When combined with overlay[local?], the charpred for such an abstract class can become local, while the subclasses are global. The means the charpred needs to be materialized, even though it doesn't bind the fields, leading to a cartesian product.
2026-01-07 11:05:41 +01:00
Asger F
cf0e7652f4
JS: Remove global dependency that wasnt needed anyway
2026-01-07 11:05:41 +01:00
Asger F
a6dfb8351c
JS: Add back CallReceiverStep() restriction
...
This was initially lost after rebasing with indentation changes
2026-01-07 11:05:41 +01:00
Asger F
825c08356f
JS: Change signature of 'edges' to support quick eval
2026-01-07 11:05:41 +01:00
Asger F
4bd0f34938
JS: Add debug tools for detecting lost nodes/edges
2026-01-07 11:05:41 +01:00
Asger F
c9d3f06fbc
JS:Add more member labels
2026-01-07 11:05:41 +01:00
Asger F
9c37e076cc
JS: Add overlay-specific Stage2
2026-01-07 11:05:41 +01:00
Asger F
1001e86f20
JS: Restrict Stage1 to the base database
2026-01-07 11:05:41 +01:00
Asger F
b12d927020
JS: Also expose "any state" version of tracking predicates
2026-01-07 11:05:41 +01:00
Asger F
daf04f1184
JS: Call forceLocal on the output of Stage 1
2026-01-07 11:05:41 +01:00
Asger F
271567c88f
JS: Add missing def-node roots
2026-01-07 11:05:41 +01:00
Asger F
123bc64091
JS: Improve join order at MkUse call
2026-01-07 11:05:41 +01:00
Asger F
295bc6981d
JS: Make API nodes and labels local
2026-01-07 11:05:41 +01:00
Asger F
6c00a7fb96
JS: Remove unused predicate
2026-01-07 11:05:41 +01:00
Asger F
3ed0f36bb1
JS: Use forceLocal to localize MkTypeUse
2026-01-07 11:05:41 +01:00
Asger F
385bb32710
JS: Localize MkClassInstance
2026-01-07 11:05:41 +01:00
Asger F
a2a9518d2a
JS: Localize MkModuleImport
2026-01-07 11:05:41 +01:00
Asger F
3110e5a8ac
JS: Localize MkModuleExport
2026-01-07 11:05:41 +01:00
Asger F
c8108d109d
JS: Localize charpred of API::EntryPoint
...
This is needed for localizing ApiLabel later
2026-01-07 11:05:41 +01:00
Asger F
b69f8532d0
JS: Moving 'cache' annotations outside the parameterised module
2026-01-07 11:05:41 +01:00
Asger F
10db30a715
JS: Parameterise the module (still only one instantiation)
2026-01-07 11:05:41 +01:00
Asger F
465f4b987d
JS: Wrap in a module
...
Simply wraps everything in 'cached private module Stage {}' and adds 'import Stage'.
The diff is large because of indentation changes.
2026-01-07 11:05:41 +01:00
Asger F
fd65eeba0a
JS: Make use() and rhs() uncached and private
2026-01-07 11:05:41 +01:00
Asger F
8f413856e0
JS: Make other node types not depend on tracking predicates
2026-01-07 11:05:41 +01:00
Asger F
7fc87536bf
JS: Make MkSyntheticCallbackArg() independent of trackUseNode
2026-01-07 11:05:41 +01:00
Asger F
12c0ad0e04
JS: Stop dependeding on getPath() for toString()
2026-01-07 11:05:41 +01:00
Simon Friis Vindum
bd24fb0baa
C++: Add simple range analysis test for bitshift
2026-01-07 10:56:50 +01:00
Tom Hvitved
dce21e595e
Rust: Model implicit Deref trait calls in data flow
2026-01-07 10:51:56 +01:00
Tom Hvitved
0c7aeb4bce
Rust: Update data flow test to use implicit borrow
2026-01-07 10:51:55 +01:00
Tom Hvitved
4540662ab9
Rust: Model Deref trait in type inference
2026-01-07 10:51:53 +01:00
Tom Hvitved
caa0e90cd8
Rust: More type inference tests
2026-01-07 10:51:52 +01:00
Geoffrey White
503a1b5d0c
Merge pull request #21107 from geoffw0/rusttest
...
Rust: Additional test cases for tuple content.
2026-01-07 09:37:14 +00:00
Michael Nebel
8fe31a1fd6
C#: Add some more testcases and update test expected output.
2026-01-07 09:56:02 +01:00
Michael Nebel
a991afdf69
C#: Use ref conversions (including variance conversions) for element types of span conversions.
2026-01-07 09:55:10 +01:00
Owen Mansel-Chan
a7c4ba503e
Add missing qldoc
2026-01-06 23:41:33 +00:00
Owen Mansel-Chan
8602c4c57c
Rename Default* to External* for MaD classes
2026-01-06 22:57:01 +00:00
Owen Mansel-Chan
7fff3534fa
Convert 3 barriers for path injection to MaD
2026-01-06 22:56:59 +00:00
Owen Mansel-Chan
1e18fce300
Convert xss sanitizer to MaD
2026-01-06 22:56:57 +00:00
Owen Mansel-Chan
1e6410804f
Allow non-query-specific MaD sanitizers
2026-01-06 22:56:55 +00:00
Anders Schack-Mulligen
1fbc28b753
Go: Add support for MaD barriers and barrier guards.
2026-01-06 22:51:32 +00:00
Jeroen Ketema
c567197f29
C++: Simplify expression
2026-01-06 21:58:43 +01:00
Ian Lynagh
70cc153cf5
Merge pull request #21104 from github/post-release-prep/codeql-cli-2.23.9
...
Post-release preparation for codeql-cli-2.23.9
2026-01-06 18:25:18 +00:00
Geoffrey White
13df23630b
Rust: Effect of lifting content reads as taint steps.
2026-01-06 16:47:07 +00:00
Jeroen Ketema
063e5d300e
C++: Remove redundant SSA branch after IR fix
2026-01-06 17:40:52 +01:00
Geoffrey White
6e2702c3af
Rust: Add some taint tests involving tuples.
2026-01-06 16:38:36 +00:00
Jeroen Ketema
3cd9938ebe
C++: Update expected test results after IR changes
2026-01-06 17:37:22 +01:00
Jeroen Ketema
740518d23f
C++: Use the loaded this instead of the this initialization
2026-01-06 17:11:22 +01:00
github-actions[bot]
2cb932cf5d
Post-release preparation for codeql-cli-2.23.9
2026-01-06 15:42:16 +00:00
Ian Lynagh
b4f4b0e6b0
Merge pull request #21092 from github/release-prep/2.23.9
...
Release preparation for version 2.23.9
2026-01-06 15:06:25 +00:00
Owen Mansel-Chan
766e908c79
Accept MaD sanitizers for existing sink kinds
2026-01-06 14:38:27 +00:00
Owen Mansel-Chan
81667d741a
Rename classes for external sanitizers
2026-01-06 14:36:54 +00:00
Michael Nebel
b686890ba6
C#: Address review comments.
2026-01-06 15:08:13 +01:00
Taus
4a567ad75e
Python: Add change note
2026-01-06 13:40:38 +00:00
Taus
2c83b296a4
Python: Add parser test
...
Note in particular that the `exceptions.py` test is unaffected.
2026-01-06 13:40:38 +00:00
Taus
4db60df9dd
Python: Regenerate parser files
2026-01-06 13:40:38 +00:00
Taus
2380bfd459
Python: Add support for PEP-758 exception syntax
...
See https://peps.python.org/pep-0758/ for more details.
We implement this by extending the syntax for exceptions and exception
groups so that the `type` field can now contain either an expression
(which matches the old behaviour), or a comma-separated list of at least
two elements (representing the new behaviour).
We model the latter case using a new node type `exception_list`, which
in `tsg-python` is simply mapped to a tuple. This means it matches the
existing behaviour (when the tuple is surrounded by parentheses)
exactly, hence we don't need to change any other code.
As a consequence of this, however, we cannot directly parse the Python
2.7 syntax `except Foo, e: ...` as `except Foo as e: ...`, as this would
introduce an ambiguity in the grammar. Thus, we have removed support for
the (deprecated) 2.7-style syntax, and only allow `as` to indicate
binding of the exception. The syntax `except Foo, e: ...` continues to
be parsed (in particular, it's not suddenly a syntax error), but it will
be parsed as if it were `except (Foo, e): ...`, which may not give the
correct results.
In principle we could extend the QL libraries to account for this case
(specifically when analysing Python 2 code). In practice, however, I
expect this to have a minor impact on results, and not worth the
additional investment at this time.
2026-01-06 13:40:37 +00:00
Ian Lynagh
c233e36d4f
Merge pull request #21103 from igfoo/igfoo/css
...
Fix header link color and hover effect in query help documentation
2026-01-06 13:30:40 +00:00
Chris Smowton
6ed24f22b5
Change notes
2026-01-06 13:01:37 +00:00
Chris Smowton
af36eae002
All languages: account for paths and paths-ignore in XML and other ancillary extraction
2026-01-06 12:48:01 +00:00
Ian Lynagh
0465dbe02b
Fix header link color and hover effect in query help documentation
...
Fix from Oscar, who wrote:
The Alabaster theme's global `a { color: #2F1695 }` rule was overriding
header link colors, rendering them purple instead of white.
2026-01-06 12:15:50 +00:00
github-actions[bot]
c00663766e
Release preparation for version 2.23.9
2026-01-05 11:57:06 +00:00
Asger F
635f008bb2
Merge branch 'main' into js/use-cache-directives
2026-01-05 10:59:50 +01:00
Mauro Baluda
1e1fb43534
Update JsonObject put method signatures in YAML
...
Use erased type
2026-01-02 11:55:40 +01:00
Owen Mansel-Chan
bf79b8a792
Merge branch 'main' into java-mad-test
2026-01-01 23:34:45 +00:00
Kevin Stubbings
f73f1a7aa9
Add additional test
2025-12-29 07:09:31 +00:00
Mauro Baluda
cb341609e7
Add change notes for Couchbase sinks
2025-12-24 20:41:11 +01:00
Mauro Baluda
15ee88ee24
SQLi test case
2025-12-24 20:30:21 +01:00
Mauro Baluda
fd78c949d3
Merge branch 'github:main' into couchdb
2025-12-22 20:25:41 +01:00
Mauro Baluda
b22077c371
Hardcoded credentials in CouchBase
2025-12-22 20:22:20 +01:00
Michael Nebel
1817f9cdf7
C#: Add change-note.
2025-12-18 12:51:04 +01:00
Michael Nebel
44c9c58b48
C#: Add implicit span conversion test case.
2025-12-18 12:51:02 +01:00
Michael Nebel
119ecff3b7
C#: Implicit span conversion.
2025-12-18 11:59:18 +01:00
Jon Janego
44d896abaf
Merge pull request #21054 from github/changedocs-2.23.8
...
Changedocs 2.23.8
2025-12-16 12:18:59 -06:00
Jon Janego
c7ec175e10
Minor change to 2.23.1 rst
2025-12-16 11:36:34 -06:00
Jon Janego
92bb40d7e4
Minor revert to 2.23.1 rst
2025-12-16 11:35:35 -06:00
Jon Janego
ff0a0ed373
Adds changelog docs for 2.23.7 and 2.23.8
2025-12-16 11:28:34 -06:00
Paolo Tranquilli
6fc963177c
codegen: mention Rust in the README
...
Updated README to reflect support for the Rust extractor and added details about Rust generated files.
2025-12-16 11:05:39 +01:00
yoff
cbc0100675
Apply suggestion from @Copilot
2025-12-16 10:11:05 +01:00
yoff
50e9057db1
java: add change note
2025-12-16 10:11:05 +01:00
yoff
c6240e5a99
java: understand more initializers
...
Whne a fiels is assigned a safe type in a constructor,
that field is not exposed.
2025-12-16 10:11:05 +01:00
yoff
a65d385297
java: add tests for thread safe initialisation
...
Co-authored-by: Raúl Pardo <raul.pardo@protonmail.com >
2025-12-16 10:11:05 +01:00
Taus
d2c7147480
Python: Add new test
2025-12-10 13:52:13 +00:00
Taus
6af9fd816f
Python: Make space for new test
2025-12-10 13:51:20 +00:00
Taus
e6e05012c8
Python: Add change note
2025-12-09 22:55:40 +00:00
Taus
ad68a5e4e9
Python: Add modelling for zstd.compression
...
See https://docs.python.org/3/library/compression.zstd.html for
information about this library.
As far as I can tell, the `zstd` library is not vulnerable to things
like ZipSlip, but it _could_ be vulnerable to a decompression bomb
attack, so I extended those models accordingly.
2025-12-09 22:52:16 +00:00
Joe Farebrother
94fcee5340
minor formatting tweak
2025-12-09 14:15:36 +00:00
Joe Farebrother
d0cd4ee959
Add change note
2025-12-09 14:13:38 +00:00
Joe Farebrother
d98e660803
Test fixes + more tests
2025-12-09 14:13:28 +00:00
Joe Farebrother
1d61da51a6
Generate stubs
2025-12-09 14:13:02 +00:00
Joe Farebrother
a594ca9de8
Add tests
2025-12-09 14:12:45 +00:00
Joe Farebrother
41b94e7031
Add spring websocket handler models
2025-12-09 14:12:39 +00:00
tesseractjh
789ea8b247
Allow arbitrary suffixes for use cache directives
2025-12-09 08:59:16 +01:00
tesseractjh
012d3b944c
change note
2025-12-09 08:59:16 +01:00
tesseractjh
2e840dcd5f
Add use cache directives
2025-12-09 08:59:16 +01:00
Owen Mansel-Chan
9f2a7f712a
Apply suggestion from @owen-mc
2025-12-02 15:52:01 +00:00
Joe Farebrother
ac55cf9544
Update test and qldoc
2025-12-01 20:41:59 +00:00
Joe Farebrother
6fbae45d49
Update qldoc
2025-12-01 20:14:36 +00:00
Joe Farebrother
6a1e26c566
Add change note
2025-12-01 20:06:24 +00:00
Joe Farebrother
384e17a4ef
Implement websockets models
2025-12-01 16:24:59 +00:00
Owen Mansel-Chan
89546cbc83
Fix qldoc inaccuracies
2025-11-28 01:09:07 +00:00
Owen Mansel-Chan
8debe49563
Correct mistake in qldoc
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-28 01:00:16 +00:00
Owen Mansel-Chan
42c955ea62
Add change note
2025-11-27 23:49:28 +00:00
Owen Mansel-Chan
969b0cf439
Add SSRF sinks for uriVariables arguments of more methods on Spring RestTemplate
2025-11-27 23:44:35 +00:00
Asger F
bde983b66d
Update 2025-11-26-response-default-content-type.md
2025-11-27 13:18:56 +01:00
Asger F
7c0243fc6d
Apply suggestions from code review
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-27 13:18:11 +01:00
Asger F
818f4815dd
JS: Change note
2025-11-26 13:49:50 +01:00
Asger F
cc7bf4e880
JS: Handle default 'content-type' header in Response() objects
2025-11-26 13:49:48 +01:00
Asger F
037f354abf
JS: Update another expected file
2025-11-26 11:42:39 +01:00
Asger F
7bd1985407
JS: Add proxy as a route handler name
2025-11-26 11:22:08 +01:00
Asger F
7848369f77
JS: Change note
2025-11-26 11:20:42 +01:00
Asger F
f9033f2abd
JS: Look for special folders in root, even if 'src' exists
2025-11-26 11:16:40 +01:00
Asger F
f0ecf1599c
JS: Add test with file named 'page'
2025-11-26 11:16:12 +01:00
Asger F
e54789d1bd
JS: Recognise route.ts outside api folder
2025-11-26 11:16:11 +01:00
Asger F
f52f5b63e6
JS: Add test with route.ts outside 'api'
2025-11-26 11:16:09 +01:00
Owen Mansel-Chan
f22429de2d
Merge branch 'main' into java-mad-test
2025-11-13 10:06:14 +00:00
Owen Mansel-Chan
7b533db4fb
Sort models and tests alphabetically
2025-11-12 15:10:29 +00:00
Owen Mansel-Chan
f598027cbd
Apply suggestions from code review
2025-11-12 15:02:42 +00:00
Owen Mansel-Chan
f3f256d070
Add back import that was accidentally deleted from options file
2025-10-29 12:26:19 +00:00
Owen Mansel-Chan
fe6b4330de
Fix test import
2025-10-28 23:14:23 +00:00
Owen Mansel-Chan
74dbafa553
Merge branch 'main' into java-mad-test
2025-10-28 13:28:35 +00:00
Kevin Stubbings
88f9f90236
Fix merge problems
2025-10-06 22:41:16 -07:00
Kevin Stubbings
0d3b65a35b
Resolved merge conflicts and completed merge
2025-10-06 22:37:28 -07:00
REDMOND\brodes
26b8a394b3
Adjusting acryonym for SSRF for casing standards.
2025-09-30 14:09:06 -04:00
REDMOND\brodes
a660eaba95
Adding docs.
2025-09-30 14:07:32 -04:00
REDMOND\brodes
acddb2c272
Moved change log to correct location.
2025-09-30 14:02:43 -04:00
Ben Rodes
d790c6df57
Update python/ql/test/query-tests/Security/CWE-918-ServerSideRequestForgery/test_azure_client.py
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-09-30 14:00:25 -04:00
Ben Rodes
fab96d9539
Update python/ql/test/query-tests/Security/CWE-918-ServerSideRequestForgery/test_azure_client.py
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-09-30 14:00:16 -04:00
Ben Rodes
5ca9ff2082
Update python/ql/lib/semmle/python/frameworks/SSRFSink.qll
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-09-30 14:00:05 -04:00
REDMOND\brodes
341f553866
Added change logs.
2025-09-30 13:55:31 -04:00
REDMOND\brodes
704e2966cb
Adding azure sdk test cases and updated test expected file.
2025-09-30 13:32:56 -04:00
REDMOND\brodes
d27d4fdb27
Updating comments.
2025-09-30 13:31:48 -04:00
REDMOND\brodes
47fac883b8
Azure SDK models for SSRF analysis.
...
(cherry picked from commit 0274962612c02af09729526a3c44a545c1e69be8)
2025-09-30 11:58:26 -04:00
Alex Eyers-Taylor
f5134e3125
Java: Eliminate pointless use of PathNodes over DataFlow::Node
...
The use of PathNode prevents these from being overlay informed.
2025-09-16 17:20:44 +01:00
Kevin Stubbings
9c63033d45
Fix tests
2024-11-20 16:53:39 +00:00
Kevin Stubbings
981f67598c
Formatting
2024-11-20 07:51:11 +00:00
Kevin Stubbings
ddcf852d3f
Add taint steps
2024-11-20 01:07:03 +00:00
Kevin Stubbings
58e4a40323
Merge branch 'github:main' into java-mad-test
2024-11-19 13:54:26 -08:00
Kevin Stubbings
999fcca8f3
Add summary steps
2024-10-15 23:24:41 +00:00
Kevin Stubbings
f0560458af
Finished up
2024-09-27 19:24:40 +00:00
Kevin Stubbings
1b5299de5a
Forgot something
2024-09-25 22:00:42 +00:00
Kevin Stubbings
6445074fea
Fixed but errors still
2024-09-25 21:46:52 +00:00
Kevin Stubbings
a8efb92b9b
Simple Test
2024-09-25 17:27:41 +00:00
Kevin Stubbings
d99f552cb3
Test Issues
2024-09-25 08:08:02 +00:00
Kevin Stubbings
0a697e49c1
Add MaD
2024-09-24 17:29:25 -07:00