Skip to content

Manual merge upstream #251

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1,122 commits into from
Jul 10, 2025
Merged

Manual merge upstream #251

merged 1,122 commits into from
Jul 10, 2025

Conversation

ropwareJB
Copy link
Collaborator

Manual merge upstream to main.

Four conflicts manually merged:

        both modified:   csharp/ql/lib/semmle/code/csharp/security/dataflow/ZipSlipQuery.qll
        both modified:   csharp/ql/lib/semmle/code/csharp/security/dataflow/TaintedPathQuery.qll
        both modified:   csharp/ql/src/Security Features/CWE-327/InsecureSQLConnection.ql
        both modified:   rust/ql/lib/codeql/rust/dataflow/internal/DataFlowImpl.qll

Conflicts were non-mututally exclusive: both changes accepted in all cases except in rust/ql/lib/codeql/rust/dataflow/internal/DataFlowImpl.qll, whereby the Github version was preferred.

d10c and others added 30 commits June 24, 2025 16:42
Leaves ReDoS.ql unmodified since it's not a dataflow query; just moves it to its own directory.
It's a non-path query, so the InlineExpectationsTest postprocessor doesn't do anything.
This fixes the failing diff-informed consistency check.
This is because it was failing the diff-informed consistency check, and like other ReDoS queries (Python?) the query tries to be helpful by showing a substring of a regex, which has a `hasLocation(...)` (intensional) but no corresponding `getLocation()` (extensional). Until the location overrides get updated to support `hasLocation`-based locations, it's probably best to turn off diff-informed support.
This commit changes pick-kotlin-version.py to use re.search() instead of
re.match(), so that it can better cope with warning messages.
C++: Support more complex 16-bit float types
This improves the implementation of the generated parent/child
relationship by adding a new `all_children` field to `ql.Class` which
lists all children (both direct and inherited) of a class, carefully
avoiding duplicating children in case of diamond inheritance. This:
* simplifies the generated code,
* avoid children ambiguities in case of diamond inheritance.

This only comes with some changes in the order of children in the
generated tests (we were previously sorting bases alphabetically there).
For the rest this should be a non-functional change.
Given that it's a non-path-problem dataflow query, the InlineExpectationsTest is not as useful.
The range `A-aa-z` was too permissive and
includes special characters between `Z` and `a`.
Low impact, but fix to address an internally
reported code scanning alert.
…-regex

QLDoc scripts: Fix overly permissive regex ranges
C++: Fix for the SQL query.
pick-kotlin-version.py: tolerate warnings
C++: Handle explicitly instantiated templates
hvitved and others added 18 commits July 1, 2025 10:17
…ponent-length

Ruby: Do not compute `StringlikeLiteralImpl.getStringValue` for large strings
…formatting

Fix markdown query help formatting
…lude-always

Rust: Assume prelude is always available in path resolution
…lap2

Rust: Apply inherent method prioritization inside type inference loop
Rust: add to `generate-code-scanning-query-list.py` and `shared-code-metrics.py` scripts
C++: Remove unused `external_package` tables from the dbscheme
Fixes in cpp/global-use-before-init
@ropwareJB ropwareJB self-assigned this Jul 1, 2025
@ropwareJB ropwareJB merged commit 4dfa5d2 into main Jul 10, 2025
24 checks passed
ropwareJB added a commit that referenced this pull request Jul 10, 2025
ropwareJB added a commit that referenced this pull request Jul 10, 2025
ropwareJB added a commit that referenced this pull request Jul 10, 2025
Revert #251, Reapply `codeql-cli/v2.22.1`
dilanbhalla pushed a commit that referenced this pull request Aug 8, 2025
This reverts commit 4dfa5d2, reversing
changes made to 8cd58aa.
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.