Skip to content

CLI Update 2.26.0#372

Merged
chanel-y merged 660 commits into
mainfrom
auto/sync-main-pr
Jul 9, 2026
Merged

CLI Update 2.26.0#372
chanel-y merged 660 commits into
mainfrom
auto/sync-main-pr

Conversation

@chanel-y

@chanel-y chanel-y commented Jul 9, 2026

Copy link
Copy Markdown

No description provided.

owen-mc and others added 30 commits June 12, 2026 22:21
ASP.NET Core Razor Page handler method parameters (OnGet, OnPost, etc.)
were not modeled as remote flow sources, causing security queries like
SQL injection to miss vulnerabilities in PageModel subclasses.

This adds AspNetCorePageHandlerMethodParameter, analogous to the existing
AspNetCoreActionMethodParameter for MVC controllers, using the existing
PageModelClass.getAHandlerMethod() from Razor.qll.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Cfg: Add support for unless and until statements
After a {expr} or {..expr} placeholder, an optional chain of
.<builtin>() calls may follow. Currently the only builtin is:

  .map(param -> template)

which applies the template to each element of the iterable and
collects the resulting node IDs. A chain auto-splices into the
enclosing field/child position.

Example:
  path: {parts}.map(p -> (identifier #{p}))

The framework is extensible: additional builtins can be added by
matching on the method name in parse_chain_suffix.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
A left fold over an iterable where the first element seeds the accumulator:
- first -> init  : converts the first element to the initial accumulator
- acc, elem -> fold : fold step; acc = current accumulator, elem = next element
- Empty iterable produces nothing (0-element splice)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Ensure the full wildcard _ supports quantifiers
- Also rewrite unnamed nodes in one-shot phases
When a field pattern has a bare capture with no preceding pattern
atom (i.e. `foo: @bar`), implicitly use a true wildcard (`_`,
match_unnamed: true) as the node pattern, making it equivalent to
`foo: _ @bar`.

This is a convenience shorthand: in practice every `field: _ @cap`
in the Swift rules can now be written more concisely as `field: @cap`.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com>
…xpectation-tests

Java: Improve inline expectations test comments
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com>
…ations

C#: Refactor- and rename operation expressions.
C#: Add models as data tests for compound assignment operators.
hvitved and others added 25 commits June 25, 2026 08:50
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
C#: Remove redundant code from `DeadStoreOfLocal.ql`
Actions: Fix dominates() false positive in reusable workflows
Kotlin: Update tests to use new `kotlin_2_3_20` fixture
Rust: Remove some redundant imports / casts
Unified/swift: new AST spec and Swift mappings
Release preparation for version 2.26.0
The `instanceFieldStep` disjunct of `TypeTrackingInput::levelStepCall`
that was added in 7.2.0 uses `classInstanceTracker(cls)` -- which is
itself a type-tracker -- inside `levelStepCall`. That creates a
structural mutual recursion between the main type-tracker fixpoint and
`classInstanceTracker`, causing the type-tracker delta to blow up to
~100M tuples per iteration on some OOP-heavy Python codebases.
Verified on the python/mypy database: SSRF query wall time goes from
~12s before the offending commit to >40 minutes after it.

This hotfix temporarily drops the `instanceFieldStep` disjunct and
keeps only `inheritedFieldStep`, which does not pull on the call
graph and is well-behaved (verified at ~12s on mypy). The
`instanceFieldStep` helper predicate itself is kept in place, and
the `levelStepCall` body has a commented-out call to it so the
change is trivial to re-enable once the recursion issue is properly
addressed.
…ble-instance-field-step

Python: hotfix - disable instanceFieldStep to avoid type-tracker blowup
…/2.26.0

Revert "Release preparation for version 2.26.0"
Release preparation for version 2.26.0
Compatible with the latest released version of the CodeQL CLI
@chanel-y chanel-y changed the title Auto/sync main pr CLI Update 2.26.0 Jul 9, 2026
Comment thread csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/FeedManager.cs Dismissed
Comment thread csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/FeedManager.cs Dismissed
@chanel-y chanel-y enabled auto-merge July 9, 2026 21:24
@chanel-y chanel-y merged commit 7dbad99 into main Jul 9, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.