Ian Lynagh
ce9c8e6e9f
Merge pull request #20447 from github/release-prep/2.23.1
...
Release preparation for version 2.23.1
2025-09-17 10:26:24 +01:00
github-actions[bot]
02a1b1efcb
Release preparation for version 2.23.1
2025-09-16 14:14:42 +00:00
Asger F
7670a2bd77
Merge pull request #20375 from asgerf/js/promise-try
...
JS: Support Promise.try and Array.prototype.with
2025-09-16 14:44:07 +02:00
Jonas Jensen
eac8a79d49
Merge pull request #20420 from jbj/no-qll-deprecation
...
Docs: remove 1-year deprecation period for QL libraries
2025-09-16 14:18:36 +02:00
Napalys Klicius
97a11de1e3
Merge pull request #20435 from Napalys/js/promisification_modeling
...
JS: Promisification library modeling and enhance flow
2025-09-16 14:07:53 +02:00
Asger F
edf79a3730
JS: Change note
2025-09-16 13:53:31 +02:00
Michael Nebel
6d9e489e7c
Merge pull request #20445 from michaelnebel/csharp/fixintegrationtest
...
C#: Fix failing integration test after new version of `NewtonSoft.JSon` has been released.
2025-09-16 13:38:55 +02:00
Tom Hvitved
a2d83274bc
Merge pull request #20441 from geoffw0/fixrfquery
...
Rust: Fix a minor issue with the test for rust/request-forgery
2025-09-16 13:22:58 +02:00
Michael Nebel
8fbd720fe5
C#: Fix failing integration test after new version of NewtonSoft.JSon has been released.
2025-09-16 13:14:23 +02:00
Napalys Klicius
49ccb8ce2b
JS: Simplify exist clause to use Promisify::PromisifyAllCall instead of DataFlow::SourceNode
2025-09-16 13:13:15 +02:00
Asger F
429c4eac96
JS: Add support for Array.prototype.with
...
Note: This was authored by Copilot
2025-09-16 13:06:59 +02:00
Asger F
ee78b7dc96
JS: Add support for Promise.try
2025-09-16 13:06:57 +02:00
Asger F
45eff3dac8
Merge pull request #20399 from asgerf/js/default-interop2
...
JS: Refactor handling of ambiguous default imports
2025-09-16 13:02:22 +02:00
Asger F
78bfdfd931
Merge pull request #20390 from asgerf/post-update-consistency
...
DataFlow: Permit local flow between post-update nodes
2025-09-16 13:00:29 +02:00
Mathias Vorreiter Pedersen
fa36d9f84e
Merge pull request #20438 from MathiasVP/remove-antijoin-in-shared-guards
...
Shared: Remove antijoin from `Guards.qll`
2025-09-16 10:40:45 +01:00
Anders Schack-Mulligen
0ceb2f3f72
Merge pull request #20442 from aschackmull/csharp/default-tostring-enum
...
C#: Exclude enum types as they don't inherit the default toString.
2025-09-16 11:12:21 +02:00
Anders Schack-Mulligen
57e15b9a91
Merge pull request #20367 from aschackmull/shared/controlflow
...
Shared/Java: Introduce a shared control flow reachability library and replace the Java Nullness implementation.
2025-09-16 10:44:44 +02:00
Anders Schack-Mulligen
107d142b24
C#: Exclude enum types as they don't inherit the default toString.
2025-09-16 10:33:25 +02:00
Jeroen Ketema
6264f46970
Merge pull request #20440 from MathiasVP/converted-barrier-in-unbounded-write
...
C++: Fix barrier in `cpp/unbounded-write`
2025-09-16 10:19:21 +02:00
Geoffrey White
61faeef1d3
Rust: Pretty print models, so that the MaD IDs aren't reported raw / in continual flux.
2025-09-16 09:00:40 +01:00
Geoffrey White
5c33af32e3
Rust: Update .expected file.
2025-09-16 08:55:49 +01:00
Asger F
65102a073a
Merge pull request #19770 from trailofbits/VF/async-package-improvements
...
Improve data flow in the `async` package
2025-09-16 08:55:52 +02:00
Asger F
f587273828
Merge pull request #19768 from trailofbits/VF/lodash-group-by
...
Add lodash GroupBy as taint step
2025-09-16 08:55:13 +02:00
Chris Smowton
c375f24598
Merge pull request #20423 from smowton/smowton/fix/length-comparison-off-by-one-fp
...
JS: Recognise that a less-than test is as good as a non-equal test for mitigating off-by-one array access
2025-09-15 18:24:45 +01:00
Napalys Klicius
278a1efb4b
JS: Add change note
2025-09-15 18:21:45 +02:00
Mathias Vorreiter Pedersen
18c96fd7d4
Shared: Remove antijoin.
2025-09-15 17:12:23 +01:00
Ian Lynagh
9231119b07
Merge pull request #20437 from github/igfoo/tweak-release-note
...
C++: Tweak a release note
2025-09-15 16:39:51 +01:00
Mathias Vorreiter Pedersen
a4c845c418
C++: Fix barrier in 'cpp/unbounded-write'.
2025-09-15 16:34:05 +01:00
Ian Lynagh
cc72314219
C++: Tweak a release note
2025-09-15 16:26:32 +01:00
Ian Lynagh
7860857b55
Merge pull request #20434 from github/igfoo/fix-typo
...
javascript: Fix spelling error in documentation
2025-09-15 16:21:57 +01:00
Ian Lynagh
b797df6ad5
Merge pull request #20436 from github/igfoo/fix-typo-substract
...
Csharp: Fix typo in LeapYear qhelp
2025-09-15 16:21:26 +01:00
Napalys Klicius
3a75500f54
JS: Add modeling for call-me-maybe
2025-09-15 17:15:31 +02:00
Napalys Klicius
0d23ab07db
JS: Add data flow modeling for promisified user-defined functions
2025-09-15 17:13:13 +02:00
Napalys Klicius
2c6db00cbc
JS: Add modeling for util promisify*
2025-09-15 17:09:28 +02:00
Napalys Klicius
e002f2088f
JS: Add modeling for es6-promisify
2025-09-15 17:04:34 +02:00
Napalys Klicius
35c75c00ba
JS: Add modeling for @gar/promisify
2025-09-15 16:58:11 +02:00
Napalys Klicius
312471e9db
JS: Add modeling for @google-cloud/promisify
2025-09-15 16:55:27 +02:00
Napalys Klicius
d37425ae3e
JS: Treat promisify(obj).member as obj.member
2025-09-15 16:51:19 +02:00
Ian Lynagh
5cf052dec1
Csharp: Fix typo in LeapYear qhelp
...
Corrects "add/substract" to "add/subtract" in the UnsafeYearConstruction.qhelp
file to improve clarity.
2025-09-15 15:44:11 +01:00
Napalys Klicius
22b61852a1
JS: Add modeling for thenify-all
2025-09-15 16:31:14 +02:00
Napalys Klicius
d6a14e63ba
JS: Add test cases for promisification libraries.
2025-09-15 16:21:12 +02:00
Ian Lynagh
d0091e1b3c
javascript: Fix spelling error in documentation
...
Corrects the spelling of "occurrences" in the Incomplete Multi-Character
Sanitization documentation to improve clarity.
2025-09-15 14:53:22 +01:00
Simon Friis Vindum
78389c8897
Merge pull request #20133 from paldepind/rust/type-inference-blanket-impl
...
Rust: Support blanket implementations
2025-09-15 12:46:41 +02:00
Simon Friis Vindum
af49301332
Merge pull request #20381 from paldepind/rust/request-forgery-query
...
Rust: Add basic request forgery query
2025-09-15 12:46:23 +02:00
Geoffrey White
00f644888c
Merge pull request #20426 from geoffw0/cookie2
...
Rust: cookie and biscotti crypto query sinks
2025-09-15 11:07:46 +01:00
Anders Schack-Mulligen
acb4d9f681
Shared: Copy some qldoc from Guards.qll
2025-09-15 11:41:23 +02:00
Simon Friis Vindum
35438294d1
Rust: Remove condition that always holds
2025-09-15 10:58:27 +02:00
Anders Schack-Mulligen
be39c4c0cd
Shared: Minor precision improvement.
2025-09-15 10:38:49 +02:00
Simon Friis Vindum
875c7da87c
Rust: Improve comments in type inference
2025-09-15 10:37:38 +02:00
Anders Schack-Mulligen
b308c5438f
Java: Add a change note, and a minor ql comment.
2025-09-15 10:14:26 +02:00
Simon Friis Vindum
50bdc658ba
Rust: Apply documentation tweaks
2025-09-15 09:32:33 +02:00
Geoffrey White
989081ba4a
Rust: Change note.
2025-09-12 18:12:59 +01:00
Geoffrey White
118ac07b71
Rust: Convert 'from' models into one generic one.
2025-09-12 18:05:30 +01:00
Geoffrey White
9f83b67a7c
Rust: Model vec::from_elem.
2025-09-12 17:30:44 +01:00
Geoffrey White
e2d94127d6
Rust: Model vec::from.
2025-09-12 16:44:47 +01:00
Geoffrey White
5d3ea2f4d3
Rust: Add models for the cookie and biscotti crates.
2025-09-12 16:13:14 +01:00
Geoffrey White
2bb9e2f7be
Rust: Add test cases for hardcoded cryptographic constants in cookies.
2025-09-12 15:42:56 +01:00
Simon Friis Vindum
e2e6fd0683
Rust: Address feedback from PR review
2025-09-12 16:10:58 +02:00
Anders Schack-Mulligen
e302616135
Java: Accept qltest change.
2025-09-12 15:41:18 +02:00
Anders Schack-Mulligen
f9ffee010f
Java: Minor nullness cleanup.
2025-09-12 15:41:17 +02:00
Anders Schack-Mulligen
2743fc0be1
Guards: Include ConditionalExpr in exprHasValue.
2025-09-12 15:41:17 +02:00
Anders Schack-Mulligen
e8f1ec68db
Java: Accept guards test results.
2025-09-12 15:41:17 +02:00
Anders Schack-Mulligen
60d07cf30d
Java: Clean up IntegerGuards.qll
2025-09-12 15:41:16 +02:00
Anders Schack-Mulligen
03321ff910
Java: Replace nullness implementation.
2025-09-12 15:41:16 +02:00
Anders Schack-Mulligen
4a8ffea0f6
Shared: Add control flow reachability lib.
2025-09-12 15:41:15 +02:00
Simon Friis Vindum
12dcd751d3
Rust: Accept test changes
2025-09-12 15:34:09 +02:00
Simon Friis Vindum
29ba013580
Rust: Add support for resolving methods from blanket implementations
2025-09-12 15:34:04 +02:00
Chris Smowton
db5c58180e
Change note
2025-09-12 14:32:12 +01:00
Chris Smowton
f5780ae369
Amend docstring
2025-09-12 14:32:10 +01:00
Chris Smowton
4fb133a43d
Recognise that a less-than test is as good as a non-equal test for mitigating off-by-one array access
2025-09-12 14:32:07 +01:00
Simon Friis Vindum
d10cdfb7f1
Rust: Move existing blanket implementation test
2025-09-12 15:31:42 +02:00
Simon Friis Vindum
69a1c7e1e8
Rust: Add tests with blanket implementation
2025-09-12 15:26:19 +02:00
Anders Schack-Mulligen
452bbf7289
Java: Add some more nullness tests.
2025-09-12 13:38:21 +02:00
Anders Schack-Mulligen
924a8eac5c
Java: Improve precision of SuccessorType labels in CFG.
2025-09-12 13:38:21 +02:00
Anders Schack-Mulligen
1ebdcdfa8c
Guards: Support integer ranges.
2025-09-12 13:38:20 +02:00
Anders Schack-Mulligen
db1f399067
Java: Preparatory Nullness refactor.
2025-09-12 13:38:20 +02:00
Anders Schack-Mulligen
e8ddac08b7
Merge pull request #20377 from aschackmull/java/preconditions
...
Java: Consolidate Assertions.qll and Preconditions.qll.
2025-09-12 13:37:41 +02:00
Alexander Eyers-Taylor
e9fcd985f9
Merge pull request #20357 from github/alexet/java-global-virtual-dispatch
...
Java: Make Virtual Dispatch Global, but keep SSA local.
2025-09-12 12:20:46 +01:00
Geoffrey White
d638ee9741
Merge pull request #20404 from geoffw0/rustanalyzerdoc
...
Rust: add `rust-analyzer` update instructions
2025-09-12 11:17:10 +01:00
Jeroen Ketema
7c35835e25
Merge pull request #20422 from jketema/go-log
...
Go: Retrofit the change log to mention Go 1.25
2025-09-12 11:20:03 +02:00
Jeroen Ketema
a773042c5d
Merge pull request #20407 from jketema/dyn-too-many
...
C++: Add `cpp/uninitialized-local` test
2025-09-12 11:12:28 +02:00
Jeroen Ketema
0f5bd3799e
Merge branch 'main' into go-log
2025-09-12 11:12:01 +02:00
Jeroen Ketema
3de9356141
Go: Retrofit the change log to mention Go 1.25
...
This can only be a minor change (or something similar) to stay within the
semantic versioning contraints. This is because only the patch version of
the Go ql library pack was bumped during the release. Since there were no new
language features in Go 1.25, this might also be the most accurate choice here.
2025-09-12 11:08:42 +02:00
Jeroen Ketema
352610d651
C++: Add GOOD annotation
2025-09-12 10:29:27 +02:00
Simon Friis Vindum
fd5b5baa8f
Merge pull request #20403 from paldepind/rust/certain-struct-expr
...
Rust: Infer certain type information for struct expressions
2025-09-12 10:28:07 +02:00
Geoffrey White
92124a9033
Update rust/README.md
2025-09-12 09:01:13 +01:00
Jonas Jensen
5ac80353d2
Docs: remove outdated link to change notes.
...
The change notes are now maintained under each query pack, so there's no
single place where we can link to it.
2025-09-12 09:26:23 +02:00
Jonas Jensen
cb766de37e
Docs: remove 1-year deprecation period for QL libs
...
Internal reference: codeql-team ADR 0011.
2025-09-12 09:24:13 +02:00
Simon Friis Vindum
b456a8c4e5
Apply suggestions from code review
...
Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com >
2025-09-12 09:09:00 +02:00
Alex Eyers-Taylor
d5ee91b1e8
Java: Adress comments form code review.
2025-09-11 17:14:08 +01:00
Geoffrey White
aaa67a2da9
Update rust/README.md
...
Co-authored-by: Simon Friis Vindum <paldepind@github.com >
2025-09-11 17:12:22 +01:00
Ian Lynagh
ffeece1179
Merge pull request #20410 from igfoo/igfoo/bmn-med
...
C++: Remove the BMN filter from some queries, but reduce precision to medium
2025-09-11 17:01:35 +01:00
Ian Lynagh
050a9e155f
C++: Add changenote for changes to some queries
...
Queries affected:
cpp/wrong-type-format-argument
cpp/comparison-with-wider-type
cpp/integer-multiplication-cast-to-long
cpp/implicit-function-declaration
cpp/suspicious-add-sizeof
2025-09-11 15:56:41 +01:00
Idriss Riouak
8ce2d3954e
Merge pull request #20413 from github/idrissrio/java25-change-note
...
Java: Add change note and update supported versions
2025-09-11 16:39:28 +02:00
Ian Lynagh
cc131a09a1
C++: Accept changes to cpp/ql/integration-tests/query-suite
2025-09-11 15:01:04 +01:00
Michael Nebel
0b43203349
Merge pull request #20401 from michaelnebel/csharp/deprecatecapturedforeachvariable
...
C#: Deprecate `cs/captured-foreach-variable`.
2025-09-11 15:01:29 +02:00
Asger F
ae4cf302f2
Remove failures from dataflow-consistency expectations
2025-09-11 14:49:58 +02:00
Asger F
511308746c
DataFlow: Permit local flow between post-update nodes
2025-09-11 14:49:56 +02:00
idrissrio
a0e963f769
Java: Add change note and update supported versions
2025-09-11 14:37:36 +02:00
Ian Lynagh
b3f4c68a1d
C++: Remove the BMN filter from some queries, but reduce precision to medium
...
Remove the `not any(Compilation c).buildModeNone() and` clause from:
cpp/wrong-type-format-argument
cpp/comparison-with-wider-type
cpp/integer-multiplication-cast-to-long
cpp/implicit-function-declaration
cpp/suspicious-add-sizeof
but reduce their precision to `medium`.
2025-09-11 13:32:11 +01:00
Idriss Riouak
0b5745c24b
Merge pull request #20405 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2025-09-11 14:17:08 +02:00
Michael B. Gale
f4575d9d03
Merge pull request #20406 from github/dependabot/go_modules/go/extractor/extractor-dependencies-93606d20ee
...
Bump golang.org/x/tools from 0.36.0 to 0.37.0 in /go/extractor in the extractor-dependencies group
2025-09-11 13:11:28 +01:00
Simon Friis Vindum
4d0635dc8a
Update qhelp for request forgery query
...
Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com >
2025-09-11 13:55:51 +02:00
Jeroen Ketema
d87e9ec095
Merge pull request #20409 from jketema/jketema/swift-changenote
...
Swift: Mention in update playbook that we want a change note
2025-09-11 13:03:56 +02:00
Owen Mansel-Chan
f74913aa4d
Merge pull request #20411 from owen-mc/go/improve-pun-tests
...
Go: improve post-update node tests
2025-09-11 12:03:21 +01:00
Simon Friis Vindum
671bea58af
Rust: Add certain type information for struct patterns
2025-09-11 12:43:26 +02:00
Owen Mansel-Chan
d9e7c89af0
Add indirect method calls
2025-09-11 11:31:28 +01:00
Owen Mansel-Chan
84e70e166e
Add direct method calls
2025-09-11 11:27:56 +01:00
Owen Mansel-Chan
fa18fd2782
Add method defs
2025-09-11 11:24:53 +01:00
Owen Mansel-Chan
cbbf7c2578
Include pre-update node in output
2025-09-11 11:22:17 +01:00
Paolo Tranquilli
051da9d407
Merge branch 'main' into rustanalyzerdoc
2025-09-11 11:48:17 +02:00
Geoffrey White
32131cf9ae
Update rust/README.md
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-09-11 10:36:04 +01:00
Jeroen Ketema
2f9961888a
Swift: Mention in update playbook that we want a change note
2025-09-11 11:31:36 +02:00
Asger F
7a2391f848
JS: Deprecate Portals and delete tests
...
This is a super old attempt at model generation, from before MaD even existed. It's obsolete and just have to be removed.
2025-09-11 11:05:36 +02:00
Geoffrey White
8af8c6d95a
Rust: Move upgrade script to the very end, add a few details.
2025-09-11 09:47:15 +01:00
Geoffrey White
9a96372f53
Rust: Add some more details.
2025-09-11 09:40:36 +01:00
Jeroen Ketema
2bc035cfcf
C++: Update test results after extractor changes
2025-09-11 10:31:01 +02:00
Jeroen Ketema
d224f85b24
C++: Add uninitialized variable FP test
2025-09-11 10:31:00 +02:00
Idriss Riouak
59fc7aa8e1
Merge pull request #20385 from github/idrissrio/java-regression-statsfile
...
Java: Revert wrongly generated stats file
2025-09-11 10:28:59 +02:00
Anders Schack-Mulligen
e7df1b220c
Java: Add change note.
2025-09-11 10:00:53 +02:00
Simon Friis Vindum
eea70069e7
Rust: Infer certain type information for struct expressions
2025-09-11 09:53:56 +02:00
dependabot[bot]
b996dc3b62
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.36.0 to 0.37.0
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.36.0...v0.37.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-version: 0.37.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: extractor-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-09-11 03:08:27 +00:00
github-actions[bot]
a6714809c4
Add changed framework coverage reports
2025-09-11 00:22:32 +00:00
Paolo Tranquilli
a9a0cb928e
Rust: add rust-analyzer update instructions
2025-09-10 18:30:37 +01:00
Alex Eyers-Taylor
dcc5572767
Java: Hnalde global files as exceptions rather than annotating them
...
This allows us to merge them without redundent annoations for now.
2025-09-10 17:26:54 +01:00
Alex Eyers-Taylor
5c19aad012
Java: Make Virtual Dispatch Global, but keep SSA local.
...
Use forceLocal to achive this.
2025-09-10 17:26:54 +01:00
Mathias Vorreiter Pedersen
4227dd7d73
Merge pull request #20400 from MathiasVP/cleanup-incorrect-scanf-query
...
C++: Cleanup `ScanfChecks.qll`
2025-09-10 16:31:49 +01:00
Anders Schack-Mulligen
b5c7bc1b33
Java: Accept test output.
2025-09-10 15:42:18 +02:00
Anders Schack-Mulligen
3815503314
Java: Consolidate Assertions.qll and Preconditions.qll.
2025-09-10 15:42:18 +02:00
Simon Friis Vindum
065388df91
Rust: Fix formatting
2025-09-10 14:50:35 +02:00
Simon Friis Vindum
d1a3294f06
Merge branch 'main' into rust/request-forgery-query
2025-09-10 14:48:22 +02:00
idrissrio
762d2ef793
Java: Manually add new relation to stats file
2025-09-10 14:44:52 +02:00
idrissrio
a20737308a
Java: Revert wrongly generated stats file
...
The stats file generated in commit
a6b68ec7de (diff-a4cfdde566085b7f1c1315487c13ef64e4869729ae7886b6c8f4267e3cd4eab6)
was created using the wrong process.
This commit reverts that change and manually adds the new relation
for isImplicitClass.
2025-09-10 14:44:50 +02:00
Simon Friis Vindum
c73d081a32
Rust: Fix based on review
2025-09-10 14:41:20 +02:00
Simon Friis Vindum
50cd200ec5
Apply suggestions from code review
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2025-09-10 14:34:54 +02:00
Mathias Vorreiter Pedersen
edec76ae10
Merge pull request #20370 from MathiasVP/source-bounded-fast-tc-in-typetracking
...
Shared: Use `sourceBoundedFastTC` in TypeTracking
2025-09-10 13:04:49 +01:00
Michael Nebel
186e42b1fe
C#: Add change note.
2025-09-10 14:04:02 +02:00
Michael Nebel
e5da0b90ce
C#: Deprecate cs/captured-foreach-variable.
2025-09-10 14:04:01 +02:00
Asger F
d39263dcac
Merge pull request #20317 from asgerf/js/xunit
...
JS: Avoid overriding Expr predicates in xUnit.qll
2025-09-10 13:41:21 +02:00
Mathias Vorreiter Pedersen
72d7223fd0
C++: Small drive by cleanup. Delete unnecessary nested 'exists'.
2025-09-10 12:35:59 +01:00
Mathias Vorreiter Pedersen
d097946e1f
C++: No need for this additional case.
2025-09-10 12:35:24 +01:00
Mathias Vorreiter Pedersen
5a9b562f19
Merge branch 'main' into source-bounded-fast-tc-in-typetracking
2025-09-10 12:14:01 +01:00
Asger F
dacc9e26e9
JS: Refactor 'default' import interop
2025-09-10 13:03:36 +02:00
Mathias Vorreiter Pedersen
f8bdf924db
Shared: Make 'standardFlowsTo' private.
2025-09-10 11:26:36 +01:00
Mathias Vorreiter Pedersen
b7bc94b987
Update shared/typetracking/codeql/typetracking/internal/TypeTrackingImpl.qll
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2025-09-10 11:21:25 +01:00
Michael Nebel
046d0d4938
Merge pull request #20396 from michaelnebel/csharp/improveintegrationteststability
...
C#: Increase attempts to reach nuget.org in integration tests to reduce flakiness.
2025-09-10 12:19:49 +02:00
Michael Nebel
e5ba1c7a84
Merge pull request #20352 from michaelnebel/csharp/dotnet908
...
C#: Update to .NET SDK 9.0.300 and .NET Runtime 9.0.5.
2025-09-10 12:09:35 +02:00
Idriss Riouak
b89b68dfdb
Merge pull request #20339 from github/idrissrio/scoped-values
...
Java: Add MaDs for `java.lang.ScopedValue`
2025-09-10 11:21:34 +02:00
Idriss Riouak
166c77d776
Merge pull request #20345 from github/idrissrio/java-kdf
...
Java: Add MaDs for `java.crypto.KDF`
2025-09-10 11:21:19 +02:00
Asger F
09edc29979
Merge pull request #20322 from asgerf/js/react-no-override
...
JS: Do not override AST methods in React model
2025-09-10 10:42:59 +02:00
Michael Nebel
fbc4f0b84f
C#: Increase attempts to reach nuget.org in integration tests to reduce flakiness.
2025-09-10 09:03:11 +02:00
Asger F
d575d3c9e4
Merge pull request #20374 from asgerf/js/typescript-5.9
...
JS: Support TypeScript 5.9 and support 'import defer' syntax
2025-09-09 20:50:04 +02:00
Jeroen Ketema
174f89fbcb
Merge pull request #20384 from jketema/swift-6.1.3
...
Swift: Update to Swift 6.1.3
2025-09-09 17:06:12 +02:00
Tom Hvitved
125cc91ba6
Merge pull request #20358 from hvitved/shared/type-inference-generalize
...
Shared: Make some generalizations in type inference library
2025-09-09 16:08:30 +02:00
Tom Hvitved
e3e1bcd63f
Rename Environment -> AccessEnvironment
2025-09-09 15:06:56 +02:00
Tom Hvitved
2e90499df4
Rename State -> Environment
2025-09-09 15:05:58 +02:00
Tom Hvitved
a1980ee23c
Shared: Make some generalizations in type inference library
2025-09-09 15:05:56 +02:00
Simon Friis Vindum
b34fa7abc0
Merge pull request #20393 from paldepind/rust/impl-to-string
...
Rust: Improve `toString` for `impl`
2025-09-09 14:16:01 +02:00
Simon Friis Vindum
f7c74664fa
Rust: Improve a few toString implementations
2025-09-09 13:46:51 +02:00
Mathias Vorreiter Pedersen
417e79c3c0
Merge pull request #20382 from MathiasVP/simplify-ssl-result-not-checked
...
C++: Simplify `cpp/certificate-not-checked`
2025-09-09 12:23:39 +01:00
Mathias Vorreiter Pedersen
3aee4a88aa
Shared: Cache the sourceBoundedFastTC structure instead of the resulting materialized relation.
2025-09-09 12:22:37 +01:00
Mathias Vorreiter Pedersen
fd7d216fe3
Shared: Replace explicit recursion with a HOP.
2025-09-09 12:22:36 +01:00
Michael B. Gale
4b9d102f46
Merge pull request #20389 from github/dependabot/go_modules/go/extractor/extractor-dependencies-ee4a90dc36
...
Bump golang.org/x/mod from 0.27.0 to 0.28.0 in /go/extractor in the extractor-dependencies group
2025-09-09 11:12:31 +01:00
Michael Nebel
a0f8b5829a
C#: Update integration tests expected output.
2025-09-09 12:04:21 +02:00
Michael Nebel
30b93d18b7
C#: Update global.json files for most integration tests to se .NET SDK 9.0.304.
2025-09-09 12:04:19 +02:00
Paolo Tranquilli
51052c74bb
Bazel: patch rules_dotnet to avoid unit test failure
2025-09-09 12:04:18 +02:00
Paolo Tranquilli
6ea6f30cc5
Bazel: fix codeql_csharp_binary
...
A `publish` directory for a C# binary contains copies of some DLLs
inside localized subdirectories (e.g. `ru`). We want to ignore those, as
otherwise our packaging machinery now goes haywire, with the newer
version of `rules_csharp`. In any case we never shipped those.
2025-09-09 12:04:16 +02:00
Michael Nebel
91f9247c2b
C#: Update extractor to use .NET Runtime 9.0.5 and .NET SDK 9.0.300.
2025-09-09 12:04:15 +02:00
Simon Friis Vindum
4f9d8271a2
Rust: Add change node for request forgery query
2025-09-09 10:38:01 +02:00
Simon Friis Vindum
387d08a1b3
Rust: Update query suite expected files
2025-09-09 10:37:59 +02:00
Simon Friis Vindum
1c922f0f45
Rust: Add request forgery query qhelp
2025-09-09 10:37:58 +02:00
Simon Friis Vindum
e1047dc40b
Rust: Add request forgery query
2025-09-09 10:37:57 +02:00
Simon Friis Vindum
63a2c9da76
Rust: Add request forgery tests
2025-09-09 10:37:56 +02:00
Jeroen Ketema
c4633c7e23
Swift: Update LFS
2025-09-09 10:12:43 +02:00
Simon Friis Vindum
aa9d299230
Merge pull request #20348 from paldepind/rust/certain-shorthand-self
...
Rust: Infer certain type for shorthand `self`
2025-09-09 09:40:18 +02:00
Asger F
d8e943ea05
Update javascript/ql/lib/semmle/javascript/frameworks/React.qll
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-09-09 08:36:25 +02:00
dependabot[bot]
f104205538
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.27.0 to 0.28.0
- [Commits](https://github.com/golang/mod/compare/v0.27.0...v0.28.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/mod
dependency-version: 0.28.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: extractor-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-09-09 03:08:18 +00:00
Asger F
0752dbea9b
Merge pull request #20360 from asgerf/js/remove-angularjs-string-special-case
...
JS: Remove special treatment of strings in AngularJS code
2025-09-08 22:48:23 +02:00
Asger F
b5045b3407
Merge pull request #20363 from asgerf/js/remove-fallback-type
...
JS: Remove unused getFallbackTypeAnnotation()
2025-09-08 22:48:07 +02:00
Jon Janego
d51361cd35
Merge pull request #20387 from github/changedocs-2.23.0
...
Changedocs 2.23.0
2025-09-08 13:24:26 -05:00
Jon Janego
2505272af7
Changedocs for 2.23.0 - updating 2.22.4 golang note
2025-09-08 13:07:20 -05:00
Jon Janego
2d84f8a739
Changedocs for 2.23.0
2025-09-08 13:01:03 -05:00
Mathias Vorreiter Pedersen
702d6d80c4
Update cpp/ql/lib/semmle/code/cpp/controlflow/IRGuards.qll
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-09-08 16:19:33 +01:00
Idriss Riouak
dc247e03e0
Merge pull request #20383 from aschackmull/java/fix-more-broken-perf
...
Java: Fix more broken performance.
2025-09-08 14:49:43 +02:00
Michael Nebel
84df8f91a9
Merge pull request #20366 from michaelnebel/csharp/improvedatabasequalitydiagnostics
...
C#/Java/Rust: Improve database quality diagnostics query.
2025-09-08 14:43:57 +02:00
Jeroen Ketema
40c8c3a526
Swift: Update to Swift 6.1.3
2025-09-08 14:42:53 +02:00
Anders Schack-Mulligen
4c1fa58367
Java: Fix more broken performance.
2025-09-08 14:12:00 +02:00
Mathias Vorreiter Pedersen
a81989d2d8
C++: Simplify the 'SSLResultNotChecked' query.
2025-09-08 12:28:28 +01:00
Mathias Vorreiter Pedersen
9f47996448
C++: Lift a few more predicates to expression guards.
2025-09-08 12:28:18 +01:00
idrissrio
728a4aff22
Java: Add model for thenExpand and accept new results
2025-09-08 13:17:53 +02:00
idrissrio
3aba4d3e1e
Java: Add test showing missing model for thenExpand
2025-09-08 13:17:52 +02:00
idrissrio
55ff71b760
Java: Address review comment. Fix dataflow model
2025-09-08 13:17:51 +02:00
idrissrio
89e080cd99
Java: Add new change note
2025-09-08 13:17:50 +02:00
idrissrio
311690cffe
Java: accept new test results
2025-09-08 13:17:49 +02:00
idrissrio
f52a427295
Java: Add MaDs for java.crypto.KDF
2025-09-08 13:17:48 +02:00
idrissrio
16fbe8d96f
Java: add dataflow test for newly added KDF API
2025-09-08 13:17:46 +02:00
Simon Friis Vindum
eea11dbf5f
Rust: Relabel reqwest sinks as request-url
2025-09-08 13:05:58 +02:00
idrissrio
666678a582
Java: Address review comment. Inline dataflow annotation
2025-09-08 12:55:20 +02:00
idrissrio
117c41bd55
Java: Address review comment. Fix dataflow model
2025-09-08 12:55:19 +02:00
idrissrio
2f4c728bb9
Java: Add new change note
2025-09-08 12:55:17 +02:00
idrissrio
a8541b9f76
Java: accept new test results
2025-09-08 12:55:15 +02:00
idrissrio
9f1e60ca6d
Java: Add MaDs for java.lang.scoped
2025-09-08 12:55:14 +02:00
idrissrio
0159f5b422
Java: Add failing test for Scoped Values
2025-09-08 12:55:13 +02:00
Michael Nebel
29c22e6fcf
Rust: Add change note.
2025-09-08 12:05:57 +02:00
Michael Nebel
d9787efc10
Rust: Include metrics in the database quality diagnostics.
2025-09-08 12:05:44 +02:00
Michael Nebel
572da264d3
Java: Update integration test expected output.
2025-09-08 12:05:40 +02:00
Michael Nebel
3f4b2b7cc8
Java: Add change note.
2025-09-08 12:05:38 +02:00
Michael Nebel
b0ef0f06eb
Java: Include metrics in the database quality diagnostics and lower threshold.
2025-09-08 12:05:37 +02:00
Michael Nebel
ed11a32f42
C#: Update integration test expected output.
2025-09-08 12:05:34 +02:00
Michael Nebel
827ea4c769
C#: Address review comments.
2025-09-08 12:05:31 +02:00
Michael Nebel
7bf05297cf
C#: Update integration test expected output.
2025-09-08 12:05:29 +02:00
Michael Nebel
08298f48d0
C#: Add change note.
2025-09-08 12:05:27 +02:00
Michael Nebel
6c9a75eab3
C#: Include metrics in the database quality diagnostics.
2025-09-08 12:05:22 +02:00
Henry Mercer
b4e6d3009e
Merge pull request #20371 from github/henrymercer/actions-status
...
Actions: Add file coverage information for status page
2025-09-08 10:37:03 +01:00
Jeroen Ketema
ba5318f63f
Merge pull request #20369 from MathiasVP/value-numbering-unique-irfunc
...
C++: Protect the value numbering library from instructions with multiple enclosing functions
2025-09-08 10:47:55 +02:00
Joe Farebrother
869b7e09d7
Merge pull request #19932 from joefarebrother/python-qual-init-del-calls
...
Python: Modernize 4 queries for missing/multiple calls to init/del methods
2025-09-08 09:29:38 +01:00
Napalys Klicius
8c34b7eaea
Merge pull request #20146 from Napalys/js/move-cors-query-from-experimental
...
JS: Move cors-misconfiguration query from experimental to Security
2025-09-08 09:32:38 +02:00
Anders Schack-Mulligen
66379deadd
Merge pull request #20380 from aschackmull/java/fix-broken-perf
...
Java: Fix broken performance.
2025-09-08 08:59:31 +02:00
Anders Schack-Mulligen
c6adc51220
Java: Fix broken performance.
2025-09-08 08:30:07 +02:00
Idriss Riouak
c5cb86ac24
Merge pull request #20097 from github/idrissrio/module-import-declarations
...
Java: Add support to `ModuleImportDeclaration`
2025-09-06 13:11:48 +02:00
idrissrio
ed9ed43923
Java: Address review comment. Improve getAnImportedType definition
2025-09-06 12:38:44 +02:00
idrissrio
1caf18ede1
Java: Address review comment. Improve module-import documentation
2025-09-06 12:38:43 +02:00
idrissrio
7d479704e8
Java: Add change note
2025-09-06 12:38:42 +02:00
idrissrio
039b5af2e0
Java: Add module import declaration test
2025-09-06 12:38:40 +02:00
idrissrio
c5ee0f3c22
Java: Add ModuleImportDeclaration QL class
2025-09-06 12:38:39 +02:00
Alexander Eyers-Taylor
61485908b9
Merge pull request #20355 from github/alexet/update-java-tests-no-annotation=-proc
...
Java: Update tests results with disabled annotation processing when lombok is not used.
2025-09-05 18:18:56 +01:00
Alex Eyers-Taylor
fe7426740b
Javba: Update tests results with disabled annotation processing.
2025-09-05 17:30:54 +01:00
Michael B. Gale
e18b049d10
Merge pull request #20376 from github/mbg/go/use-codeql-verbosity
2025-09-05 15:53:08 +01:00
Henry Mercer
1e77891271
Merge branch 'main' into henrymercer/actions-status
2025-09-05 14:55:58 +01:00
Henry Mercer
fea05331aa
Add date to changelog note filename
2025-09-05 14:51:28 +01:00
Henry Mercer
526990e015
Add comment about GitHub API languages
2025-09-05 14:49:48 +01:00
Henry Mercer
e7fbd28505
Add changelog note
2025-09-05 14:48:12 +01:00
Michael B. Gale
8c13faf3d8
Go: Set log level based on CODEQL_VERBOSITY
2025-09-05 14:18:31 +01:00
Henry Mercer
a6fb45b9cb
Update expected files
2025-09-05 13:13:43 +01:00
Arthur Baars
82476b9efd
Merge pull request #20373 from github/aibaars/drop-nbsp
...
Remove non-breaking spaces from code
2025-09-05 13:02:34 +02:00
Napalys Klicius
b2feaaceea
Merge branch 'main' into js/move-cors-query-from-experimental
2025-09-05 12:11:09 +02:00
Asger F
ef114c4a07
JS: Add change note
2025-09-05 12:04:53 +02:00
Asger F
a08878f419
JS: Add upgrade and downgrade scripts
2025-09-05 12:03:56 +02:00
Idriss Riouak
e719dd912d
Merge pull request #20116 from github/idrissrio/compact-soruce-file
...
Java: Add support to Compact Source Files
2025-09-05 12:01:48 +02:00
Asger F
bab2a79055
JS: Add parsing support in JS parser
2025-09-05 11:57:34 +02:00
Asger F
215602c963
JS: Preserve information about 'defer' keyword
2025-09-05 11:57:33 +02:00
Asger F
76ca1a576f
JS: Add basic test for 'import defer' syntax in TypeScript
2025-09-05 11:57:31 +02:00
Asger F
0d03c813d0
JS: Also update @types/node version
2025-09-05 11:57:30 +02:00
Asger F
b2b5199055
JS: Bump TypeScript dependency to 5.9
2025-09-05 11:57:29 +02:00
Napalys Klicius
d8c4d6deb4
Rename cors-misconfiguration to cors-origin.
2025-09-05 11:30:07 +02:00
Napalys Klicius
e6eacca50b
Update change note to reflect changes
2025-09-05 11:27:29 +02:00
idrissrio
f1186432c1
Java: Accept new test result after extractor changes
2025-09-05 10:43:35 +02:00
idrissrio
fc1b9277b3
Java: extend definition of isCompilerGenerated for classes
2025-09-05 10:19:04 +02:00
idrissrio
b2ef60c165
Java: add tests for compact source files
2025-09-05 10:19:03 +02:00
idrissrio
a6b68ec7de
Java: Update stats file
2025-09-05 10:19:02 +02:00
idrissrio
c26a56a332
Java: Add change note
2025-09-05 10:19:01 +02:00
idrissrio
3a9a559d25
Java: Add upgrade and downgrade script
2025-09-05 10:19:00 +02:00
idrissrio
9363bc318a
Java: Add compact source file tests
2025-09-05 10:18:58 +02:00
idrissrio
81b1e73e18
Java: Add isImplict predicate to CompilationUnit and Class
2025-09-05 10:18:57 +02:00
idrissrio
f51ee4c04f
Java: Add isImplicitClass table to keep track of compact source files
2025-09-05 10:18:56 +02:00
Arthur Baars
5d3ec35e29
Remove non-breaking spaces from code
2025-09-05 09:41:15 +02:00
Idriss Riouak
2100dc1288
Merge pull request #20136 from github/idrissrio/flexible-constructors
...
Java: Add test for flexible constructor support
2025-09-04 21:35:02 +02:00
Mathias Vorreiter Pedersen
4645bd766a
C++: Sync identical files.
2025-09-04 19:27:31 +01:00
Mathias Vorreiter Pedersen
a551a55ca0
C++: Get rid of a parenthesis pair.
2025-09-04 19:27:23 +01:00
Mathias Vorreiter Pedersen
3c35e1e6ee
C++: Require a unique IRFunction for each value number case and assign instructions with a non-unique IRFUnction a unique value number.
2025-09-04 19:26:42 +01:00
Mathias Vorreiter Pedersen
76f2c6a9f1
C++: Remove the IRFunction column from the TUniqueValueNumber branch. The next commits will protect the recursion from instructions which has multiple IRFunctions and assign such instructions a unique value number so it won't make sense for them to have an IRFunction column.
2025-09-04 19:10:22 +01:00
idrissrio
1605438333
Java: Accept new test result after extractor changes
2025-09-04 17:01:45 +02:00
idrissrio
6c773a7473
Java: Add test to verify that the AST does not capture instance initializers
2025-09-04 17:01:44 +02:00
idrissrio
fffb4c03b0
Java: add flexible constructor test including CFG predecessor query
2025-09-04 17:01:43 +02:00
idrissrio
6b022edf06
Java: Address review comment. Add prologue field initialization tests
2025-09-04 17:01:42 +02:00
idrissrio
de6d9f4d50
Java: Add test for flexible constructor support
2025-09-04 17:01:41 +02:00
Idriss Riouak
c5e5b8a585
Merge pull request #20247 from github/idrissrio/java-upgrade-fix
...
Java: accept new test results after extractor update
2025-09-04 16:46:01 +02:00
Jeroen Ketema
af82da5db3
Merge pull request #20350 from michaelnebel/cpp/ql4qlexperimental
...
C++: Fix some Ql4Ql violations (crypto).
2025-09-04 16:21:44 +02:00
Napalys Klicius
c4c8dbcf7d
Merge remote-tracking branch 'origin/main' into js/move-cors-query-from-experimental
2025-09-04 15:24:44 +02:00
Napalys Klicius
d3d608fa33
Updated query description and added a sanitizer
2025-09-04 13:16:37 +00:00
Napalys Klicius
6c751ce934
Merged config classes
2025-09-04 12:31:24 +00:00
Napalys Klicius
4dac80a998
Replace complex wrapper classes with MaD
2025-09-04 12:19:22 +00:00
Michael Nebel
64d68feab3
Merge pull request #20325 from michaelnebel/cpp/ql4ql
...
C++: Fix some Ql4Ql violations.
2025-09-04 14:17:11 +02:00
Asger F
4926d278a2
JS: Update test output
2025-09-04 13:59:19 +02:00
Asger F
d8346ef106
JS: Remove unused getFallbackTypeAnnotation()
...
This private predicate was unused, but due to its recursive self-reference it was not reported as an unused predicate.
2025-09-04 13:40:49 +02:00
Michael Nebel
8009ddebce
Merge pull request #20329 from michaelnebel/javascript/ql4ql
...
JS: Fix some Ql4Ql violations.
2025-09-04 13:01:37 +02:00
Michael Nebel
61e8ad264f
C++: Address review comments.
2025-09-04 12:52:46 +02:00
Simon Friis Vindum
26919a6c6e
Rust: Rename variable as suggested in review
2025-09-04 12:50:14 +02:00
Asger F
5b0ef40a3e
JS: Remove special treatment of strings in AngularJS code
...
String literals are already SourceNodes. But we need to add template literals as well
2025-09-04 11:06:22 +02:00
Kasper Svendsen
dd99a2d3bd
Merge pull request #20294 from github/kaspersv/discard-fields-and-classes
...
Overlay: Add discarding for Java classes, interfaces & fields
2025-09-04 10:05:15 +02:00
Owen Mansel-Chan
2a45b28e5f
Merge pull request #20064 from Kwstubbs/go-path-separator
...
Update Go Path Injection Sanitizer and Sink
2025-09-03 16:45:15 +01:00
Napalys Klicius
7cbaa114a3
Merge pull request #20296 from Napalys/js/remote-property-injection-update
...
JS: Detect property injection via object enumeration patterns
2025-09-03 14:38:24 +02:00
Napalys Klicius
8fc81f4263
Merge branch 'main' into js/remote-property-injection-update
2025-09-03 14:02:19 +02:00
Simon Friis Vindum
e610465ee8
Rust: Suppress type inference inconsistency that can be explained by path resolution
2025-09-03 12:53:30 +02:00
Michael Nebel
a9baf34629
Merge pull request #20324 from michaelnebel/actions/ql4ql
...
Actions: Fix some Ql4Ql violations.
2025-09-03 12:29:06 +02:00
Tom Hvitved
f2b8ac127f
Merge pull request #20351 from hvitved/rust/summarized-callable-location
...
Rust: Assign locations to all `DataFlowCallable`s
2025-09-03 12:24:37 +02:00
Tom Hvitved
dff5ed7d29
Rust: Assign locations to all DataFlowCallables
2025-09-03 11:21:57 +02:00
Joe Farebrother
cd6a151d9b
Add missing predicate + update test output
2025-09-03 09:48:07 +01:00
Michael Nebel
fb1387340f
Merge pull request #20349 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2025-09-03 08:24:00 +02:00
Michael Nebel
83d53baf82
C++: Fix some Ql4Ql violations.
2025-09-03 08:19:18 +02:00
Michael Nebel
462d639627
C++: Fix some Ql4Ql violations.
2025-09-03 08:13:20 +02:00
github-actions[bot]
9f31f02c12
Add changed framework coverage reports
2025-09-03 00:21:42 +00:00
Joe Farebrother
2dcf3c7c45
Remove erronous private
2025-09-02 22:16:41 +01:00
Asger F
1ea843f23c
Merge pull request #20323 from asgerf/js/remove-totalorder
...
JS: Remove totalorder()
2025-09-02 22:08:33 +02:00
idrissrio
5d2268fa80
Java: accept new test results after extractor update
2025-09-02 20:19:38 +02:00
Jeroen Ketema
ab3ad20a1e
Merge pull request #20319 from jketema/ir-vla-sizeof
...
C++: Support `sizeof` VLAs in the IR
2025-09-02 17:29:18 +02:00
Jeroen Ketema
8de1ed0d85
C++: Address review comments
2025-09-02 17:03:48 +02:00
Simon Friis Vindum
de8e535c3a
Rust: Move predicates up to right before first usage
2025-09-02 16:34:03 +02:00
Simon Friis Vindum
1b683f6359
Rust: Infer certain type for self shorthand
2025-09-02 16:30:21 +02:00
Simon Friis Vindum
f7201023de
Rust: Add annotations to type inference tests
2025-09-02 16:24:40 +02:00
Simon Friis Vindum
17d23a9b78
Merge pull request #20343 from paldepind/rust/certain-type-inline-expectation
...
Rust: Change inline expectation annotation for inferred certain types
2025-09-02 15:07:41 +02:00
Michael Nebel
31852985e5
Merge pull request #20335 from michaelnebel/shared/ql4ql
...
Shared and Sync: Fix some Ql4Ql violations.
2025-09-02 14:37:34 +02:00
Arthur Baars
0bb7fdccf6
Merge pull request #20347 from github/post-release-prep/codeql-cli-2.23.0
...
Post-release preparation for codeql-cli-2.23.0
2025-09-02 14:14:03 +02:00
Anders Schack-Mulligen
f833fe0e6e
Merge pull request #20300 from aschackmull/cfg/successortype
...
Shared: Add a shared SuccessorType implementation
2025-09-02 14:09:35 +02:00
Michael Nebel
d3d737b383
Merge pull request #20330 from michaelnebel/python/ql4ql
...
Python: Fix some Ql4Ql violations.
2025-09-02 14:01:54 +02:00
Michael Nebel
9d521e9cb6
Merge pull request #20333 from michaelnebel/rust/ql4ql
...
Rust: Fix some Ql4Ql violations.
2025-09-02 14:00:47 +02:00
Michael Nebel
7490d8ddd2
Shared and Sync: Fix some Ql4Ql violations.
2025-09-02 13:54:22 +02:00
github-actions[bot]
e8a2600a0c
Post-release preparation for codeql-cli-2.23.0
2025-09-02 11:46:23 +00:00
Simon Friis Vindum
8a92b2d611
Rust: Change inline expectation annotation for certain inferred types
2025-09-02 13:44:06 +02:00
Michael Nebel
6f5da528a4
Update rust/ql/lib/codeql/rust/dataflow/internal/ModelsAsData.qll
...
Co-authored-by: Simon Friis Vindum <paldepind@github.com >
2025-09-02 13:34:23 +02:00
Michael Nebel
464d8b13a8
Rust: Address review comments.
2025-09-02 13:33:51 +02:00
Jeroen Ketema
9431b0c754
C++: Add change note for new VlaDeclStmt predicates
2025-09-02 13:17:26 +02:00
Arthur Baars
28f02c07d7
Merge pull request #20346 from github/release-prep/2.23.0
...
Release preparation for version 2.23.0
2025-09-02 13:13:45 +02:00
github-actions[bot]
0bfa93828b
Release preparation for version 2.23.0
2025-09-02 11:09:32 +00:00
Michael Nebel
90caded4fe
Apply suggestion from @aschackmull
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2025-09-02 13:08:31 +02:00
Jeroen Ketema
f4df3881f8
C++: Handle *& sequences in sizeof VLA expressions
2025-09-02 12:29:24 +02:00
Jeroen Ketema
438cc961da
C++: Document TranslatedSizeofExpr
2025-09-02 12:29:21 +02:00
Jeroen Ketema
8a7553232f
C++: Add more sizeof VLA tests
2025-09-02 12:29:19 +02:00
Jeroen Ketema
f68d3477d4
C++: Output necessary conversions in the sizeof VLA IR
2025-09-02 12:29:17 +02:00
Jeroen Ketema
f0f66c6d58
C++: Minor refactor
...
* Introduce new instruction tag for the base size
* Introduce some convenience predicates on `VlaDeclStmt`
2025-09-02 12:29:15 +02:00
Jeroen Ketema
6a9324fab0
C++: Fix obtaining the base type of a VLA
2025-09-02 12:29:13 +02:00
Jeroen Ketema
ffbc83deeb
C++: Update expected test results
2025-09-02 12:29:10 +02:00
Jeroen Ketema
6e8f44da42
C++: Handle sizeof VLAs with typedefs
2025-09-02 12:29:09 +02:00
Jeroen Ketema
74f5687660
C++: Update expected test results
2025-09-02 12:29:07 +02:00
Jeroen Ketema
fdab63fd5f
C++: Handle ArrayExprs in sizeof VLAs
2025-09-02 12:29:04 +02:00
Jeroen Ketema
5bd08e8174
C++: Add more sizeof VLA tests
2025-09-02 12:29:02 +02:00
Jeroen Ketema
dc78330529
C++: Update expected test results
2025-09-02 12:29:00 +02:00
Jeroen Ketema
d9320b3c16
C++: Support sizeof VLAs in the IR
2025-09-02 12:28:59 +02:00
Jeroen Ketema
60845001dd
C++: Add sizeof VLA IR test cases
2025-09-02 12:28:56 +02:00
Michael Nebel
7ae5d405fc
Merge pull request #20332 from michaelnebel/ruby/ql4ql
...
Ruby: Fix some Ql4Ql violations.
2025-09-02 12:04:03 +02:00
Michael Nebel
88ee20f189
Merge pull request #20331 from michaelnebel/ql/ql4ql
...
Ql: Fix some Ql4Ql violations.
2025-09-02 12:02:40 +02:00
Michael Nebel
2a932f0748
Merge pull request #20328 from michaelnebel/java/ql4ql
...
Java: Fix some Ql4Ql violations.
2025-09-02 12:01:16 +02:00
Joe Farebrother
ab641b3144
Merge pull request #20344 from joefarebrother/fix-changenote
...
Shared: Fix changenote
2025-09-02 10:58:16 +01:00
Michael Nebel
9a88e38d6f
Merge pull request #20327 from michaelnebel/go/ql4ql
...
Go: Fix some Ql4Ql violations.
2025-09-02 11:45:26 +02:00
Michael Nebel
39d3741a91
Merge pull request #20326 from michaelnebel/csharp/ql4ql
...
C#: Fix some Ql4Ql violations.
2025-09-02 11:44:22 +02:00
Michael Nebel
f73f9a0447
Merge pull request #20334 from michaelnebel/swift/ql4ql
...
Swift: Fix a Ql4Ql violation.
2025-09-02 11:40:33 +02:00
Joe Farebrother
11309e99ce
Fix changenote
2025-09-02 10:35:58 +01:00
Asger F
19fa29d527
Merge pull request #20307 from asgerf/js/overlay-extract-and-discard-only
...
JS: Add overlay support to extractor
2025-09-02 11:24:11 +02:00
Tom Hvitved
9bae0bfb35
Merge pull request #20295 from geoffw0/oldpaths1
...
Rust: Remove extractor path resolution.
2025-09-02 11:17:51 +02:00
Anders Schack-Mulligen
3d4d347150
SuccessorType: Address review comments.
2025-09-02 11:10:00 +02:00
Simon Friis Vindum
0ed6428a94
Merge pull request #20321 from paldepind/rust/trait-method-scope-2
...
Rust: Take trait visibility into account when resolving paths and methods
2025-09-02 10:58:00 +02:00
Michael Nebel
55e5281429
Go: Fix a couple more spelling errors.
2025-09-02 10:47:36 +02:00
Michael Nebel
a732b36fa8
Update java/ql/src/experimental/quantum/Analysis/ArtifactReuse.qll
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2025-09-02 10:39:37 +02:00
Michael Nebel
367027e777
Ql: Fix some Ql4Ql violations.
2025-09-02 10:01:14 +02:00
Tom Hvitved
1130595c67
Merge pull request #20340 from hvitved/rust/taint-tracking-implicit-deref-at-sinks
...
Rust: Deref as taint step
2025-09-02 09:44:33 +02:00
Michael Nebel
d0323a6425
Fix one more violation.
2025-09-02 09:42:05 +02:00
Michael Nebel
ef4b41ab6d
C#: Replace exists with any.
2025-09-02 09:26:37 +02:00
Michael Nebel
0c5c798ca5
Merge pull request #20290 from michaelnebel/csharp/xmldictionaryreader
...
C#: Add manual models for more some XML related classes.
2025-09-02 09:12:54 +02:00
Simon Friis Vindum
322ef4d985
Rust: Account for trait visibility when resolving paths and methods
2025-09-02 09:01:17 +02:00
Tom Hvitved
5b51bb2ef0
Rust: Deref as taint step
2025-09-02 08:55:10 +02:00
Joe Farebrother
f7097136f1
Rank multiple calls so only the first 2 calls are alerted
2025-09-01 16:23:42 +01:00
Henry Mercer
d71991fdc0
Merge pull request #20320 from github/henrymercer/default-queries
...
Specify default queries in `codeql-extractor.yml`
2025-09-01 15:52:47 +01:00
Joe Farebrother
8545c7d36f
Fix doc typo
2025-09-01 15:12:52 +01:00
Joe Farebrother
8c9c66c002
Fix typo in example
2025-09-01 15:12:52 +01:00
Joe Farebrother
ba68fe9a0f
Adress review suggestions - cleanups
2025-09-01 15:12:52 +01:00
Joe Farebrother
fb0380bfbc
Inline locationBefore
2025-09-01 15:12:52 +01:00
Joe Farebrother
cc486ddb08
Remove tostring
2025-09-01 15:12:51 +01:00
Joe Farebrother
72df584e9b
Update integration test outout and fix qhelp
2025-09-01 15:12:51 +01:00
Joe Farebrother
c9dc54abf8
Fix typos
2025-09-01 15:11:59 +01:00
Joe Farebrother
58f2bd4000
Fix changenote formatting
2025-09-01 15:11:59 +01:00
Joe Farebrother
5992dc3b0a
Add qldoc
2025-09-01 15:11:59 +01:00
Joe Farebrother
e01519f547
Add change note
2025-09-01 15:11:59 +01:00
Joe Farebrother
74a312735c
Update integration test output
2025-09-01 15:11:58 +01:00
Michael Nebel
55dd098307
C#: Address review comments.
2025-09-01 15:43:49 +02:00
Michael Nebel
aa8a72d639
C#: Add change-note.
2025-09-01 15:43:48 +02:00
Michael Nebel
525c095287
C#: Update expected test output.
2025-09-01 15:43:46 +02:00
Michael Nebel
5cd30f023c
C#: Add some XmlTextReader models.
2025-09-01 15:43:44 +02:00
Michael Nebel
8a480b6be1
C#: Update test expected output.
2025-09-01 15:43:42 +02:00
Michael Nebel
8b2ebaa047
C#: Promote some generated- and refine models for XmlReader.
2025-09-01 15:43:40 +02:00
Michael Nebel
1d35bd1a59
C#: Update expected test output.
2025-09-01 15:43:38 +02:00
Michael Nebel
beeb91dd2a
C#: Add some XmlDictionaryReader models.
2025-09-01 15:43:36 +02:00
Michael Nebel
011f8dd3b3
Swift: Fix a Ql4Ql violation.
2025-09-01 15:22:56 +02:00
Michael Nebel
37997c0561
Rust: Fix some Ql4Ql violations.
2025-09-01 15:21:41 +02:00
Michael Nebel
c5cf46bc2c
Ruby: Fix some Ql4Ql violations.
2025-09-01 15:19:25 +02:00
Michael Nebel
8b10ad49d7
JS: Fix some Ql4Ql violations.
2025-09-01 15:17:53 +02:00
Michael Nebel
dbd31259b3
Python: Fix some Ql4Ql violations.
2025-09-01 15:16:25 +02:00
Joe Farebrother
ba8658491a
Update qhelp + alert messages
2025-09-01 14:11:01 +01:00
Joe Farebrother
86bb0e8af2
qhelp: move examples to subfolder
2025-09-01 14:10:58 +01:00
Joe Farebrother
daa5525a10
Update tests and add an additional test
2025-09-01 14:10:55 +01:00
Joe Farebrother
b4b20d7d3f
Update multiple calls queries to include call targets in alert message
2025-09-01 14:10:53 +01:00
Joe Farebrother
18b949c0a9
Remove case excluding classes with a __new__ method; as it doesn't make much sense (__init__ is still called anyway)
2025-09-01 14:10:50 +01:00
Joe Farebrother
9619ae8a2d
Add additional test case + update missing del tests
2025-09-01 14:10:47 +01:00
Joe Farebrother
c9932e187a
Update tests for calls to init + fixes
2025-09-01 14:10:44 +01:00
Joe Farebrother
9ac95266c7
Fixes
2025-09-01 14:10:41 +01:00
Joe Farebrother
3c74e12b9c
Change implenetation of missing calls to use getASuperCallTarget, and change alerts to alert on the class and provide clearer information, using optional location links.
2025-09-01 14:10:39 +01:00
Joe Farebrother
99a05ed5a4
Update test outputs + fix semantics
2025-09-01 14:10:36 +01:00
Joe Farebrother
732c818916
Move tests and add inline expectation postprocessing
2025-09-01 14:10:33 +01:00
Joe Farebrother
45b5efad25
Fix FPs and typo
2025-09-01 14:10:30 +01:00
Joe Farebrother
4f63528844
Update alert messages
2025-09-01 14:10:25 +01:00
Joe Farebrother
d0daacd17e
Modernize multple calls to init/del
2025-09-01 14:10:22 +01:00
Joe Farebrother
a02016a95f
Add missing call to del
2025-09-01 14:10:17 +01:00
Joe Farebrother
38af3ac925
Update missing call to init
2025-09-01 14:10:14 +01:00
Joe Farebrother
bea8502cc5
Move missing/multiple calls to init/del queries to folder
2025-09-01 14:10:11 +01:00
Michael Nebel
77113b2e42
Java: Fix some Ql4Ql violations.
2025-09-01 15:04:08 +02:00
Michael Nebel
ea664e08d1
Go: Fix some Ql4Ql violations.
2025-09-01 15:00:34 +02:00
Michael Nebel
7491352278
C#: Fix some Ql4Ql violations.
2025-09-01 14:57:30 +02:00
Michael Nebel
64f9758c29
Actions: Fix some Ql4Ql violations.
2025-09-01 14:45:00 +02:00
Anders Schack-Mulligen
4e70627629
Guards: Use shared SuccessorType.
2025-09-01 13:55:29 +02:00
Anders Schack-Mulligen
0d9b8d0592
Cfg: Allow for multiple exception successors.
2025-09-01 13:48:27 +02:00
Anders Schack-Mulligen
bbf7995100
C#: Fix caching dependencies.
2025-09-01 13:48:25 +02:00
Anders Schack-Mulligen
144e34c669
Shared: Use shared SuccessorType in shared Cfg and BasicBlock libs.
2025-09-01 13:43:32 +02:00
Asger F
45b8158fe5
JS: Remove totalorder()
...
This was once as input to the shared data flow library, but has since been removed from the input signature.
2025-09-01 13:39:54 +02:00
Anders Schack-Mulligen
4685b4f8a9
Java: Use shared SuccessorType.
2025-09-01 13:00:20 +02:00
Asger F
ca393a9afe
JS: Do not override AST methods in React model
2025-09-01 12:57:06 +02:00
Anders Schack-Mulligen
92fcda3cc7
Actions: Use shared SuccessorType.
2025-09-01 12:56:08 +02:00
Anders Schack-Mulligen
1e25b4de4b
Swift: Use shared SuccessorType.
2025-09-01 12:56:07 +02:00
Anders Schack-Mulligen
c1662cf05c
C#/Ruby: Accept qltest changes.
...
Mostly toString changes, and a slight change to
splitting in C#.
2025-09-01 12:56:07 +02:00
Anders Schack-Mulligen
cf9196fb55
Rust: Use shared SuccessorType.
2025-09-01 12:56:07 +02:00
Anders Schack-Mulligen
d8c193df18
Ruby: Use shared SuccessorType.
2025-09-01 12:56:04 +02:00
Anders Schack-Mulligen
8b50ac291f
C#: Use shared SuccessorType.
2025-09-01 12:53:24 +02:00
Anders Schack-Mulligen
8434dc3890
Controlflow: Add a shared SuccessorType implementation.
2025-09-01 12:47:24 +02:00
Anders Schack-Mulligen
70a871c1e5
Merge pull request #20253 from aschackmull/shared/basicblock-signature2
...
Shared: Add and use a signature for basic blocks
2025-09-01 12:39:33 +02:00
Michael B. Gale
cbdc54adf7
Merge pull request #20313 from github/dependabot/github_actions/actions/checkout-5
...
Bump actions/checkout from 4 to 5
2025-09-01 11:34:41 +01:00
Jeroen Ketema
93f4721418
Merge pull request #20316 from jketema/stats
...
C++: Update dbscheme stats file
2025-09-01 11:54:43 +02:00
Joe Farebrother
42e8b32841
Merge pull request #20280 from joefarebrother/shared-loc-option
...
Shared: Add Option types with location
2025-09-01 10:54:04 +01:00
Anders Schack-Mulligen
09b2c5abf0
BasicBlock: Replace entryBlock predicate with subclass.
2025-09-01 11:48:44 +02:00
Anders Schack-Mulligen
e2eb6dbbf2
Ruby: Fix query compilation.
2025-09-01 11:26:37 +02:00
Anders Schack-Mulligen
6ffb9b129f
C++: Extend final IRBlock
2025-09-01 11:26:36 +02:00
Anders Schack-Mulligen
3821f172df
Guards/Java: Use BasicBlock signature in Guards library.
2025-09-01 11:26:36 +02:00
Anders Schack-Mulligen
a7b2a2fa9f
C++: Sync files.
2025-09-01 11:26:35 +02:00
Anders Schack-Mulligen
f459ddc40a
Languages: Adapt to api changes.
2025-09-01 11:26:33 +02:00
Anders Schack-Mulligen
e53b22dfa7
SSA/VariableCapture: Use shared BasicBlock signature.
2025-09-01 11:19:49 +02:00
Anders Schack-Mulligen
bb3abc815f
SSA: Update input to use member predicates.
2025-09-01 11:19:48 +02:00
Anders Schack-Mulligen
119837bb1d
BasicBlock: Add CFG signature.
2025-09-01 11:19:48 +02:00
Joe Farebrother
1b808fed34
Fix incorrect switch of None and Some cases
2025-09-01 09:51:00 +01:00
Joe Farebrother
80ab35c3a0
Apply review suggestions - rename things and clean up style.
2025-09-01 09:50:54 +01:00
Joe Farebrother
8e5efb5fba
Add change note
2025-09-01 09:50:47 +01:00
Joe Farebrother
fc5501b9c8
Add LocOption2 for types with getLocation.
2025-09-01 09:50:39 +01:00
Joe Farebrother
51f96deb2e
Add shared LocOption module for optional types with locations
2025-09-01 09:50:30 +01:00
Asger F
67a1c2ffef
Update javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-09-01 10:20:17 +02:00
Asger F
0d0eaa21a1
Merge pull request #20302 from asgerf/js/simpler-locations
...
JS: Remove synthetic locations
2025-09-01 09:46:13 +02:00
Tom Hvitved
aa604425a5
Merge pull request #20305 from hvitved/csharp/dataflow-base-non-exact-type
...
C#: Fix context-sensitive dispatch when using `base` qualifier
2025-09-01 09:20:15 +02:00
Simon Friis Vindum
c1c7127894
Rust: Add examples where trait visibility affects path and method resolution
2025-08-30 13:26:13 +02:00
Henry Mercer
71bac5eda8
Actions: Add file coverage baseline
2025-08-29 20:10:45 +01:00
Henry Mercer
67dc01b636
Actions: Add successfully extracted files query
2025-08-29 20:10:43 +01:00
Henry Mercer
55869f28c3
Specify default queries in codeql-extractor.yml
2025-08-29 17:34:45 +01:00
Jeroen Ketema
b361b0f3c3
Merge pull request #20310 from MathiasVP/add-comptr-model-now-with-more-models
...
C++: Add `ComPtr` conversion operators
2025-08-29 16:45:39 +02:00
Geoffrey White
45d6fc04ce
Merge pull request #20312 from geoffw0/dbquality
...
Rust: Tune rust/diagnostic/database-quality
2025-08-29 13:04:46 +01:00
Taus
f89fae39c5
Merge pull request #20276 from github/tausbn/python-model-psycopg2-connection-pools
...
Python: Add support for Psycopg2 database connection pools
2025-08-29 13:52:59 +02:00
Geoffrey White
d650d56485
Rust: Implement upgrade and downgrade scripts.
2025-08-29 12:37:52 +01:00
Asger F
57b4534d30
JS: Avoid overriding Expr predicates in xUnit.qll
2025-08-29 13:06:05 +02:00
Jeroen Ketema
7c5b04a0da
Merge pull request #20315 from jketema/uninit-test
...
C++: Add uninitialized local test
2025-08-29 12:52:28 +02:00
Asger F
cc8fe10801
JS: Update locations in expected files
2025-08-29 12:03:11 +02:00
Jeroen Ketema
277f5efa9c
C++: Update dbscheme stats file
2025-08-29 11:13:59 +02:00
Jeroen Ketema
6b580ac12d
C++: Update expected test results
2025-08-29 10:57:03 +02:00
Jeroen Ketema
a145e52faf
C++: Add uninitialized local test
2025-08-29 10:55:10 +02:00
Tom Hvitved
611eca41b9
Add change note
2025-08-29 10:22:11 +02:00
Geoffrey White
bdc1f1715d
Rust: Add upgrade and downgrade scripts (template).
2025-08-29 08:49:33 +01:00
Geoffrey White
a6bdab15f6
Merge branch 'main' into oldpaths1
2025-08-29 08:30:43 +01:00
Napalys Klicius
b4d6cb6e5f
Merge pull request #20178 from Napalys/java/visible-for-testing-abuse
...
Java: Added new query `java/visible-for-testing-abuse`
2025-08-29 08:38:04 +02:00
Napalys Klicius
bafe22c50c
Merge pull request #20048 from Napalys/js/xml_bomb_sinks
...
JS: Exclude patched libraries from `xml-bomb` sink
2025-08-29 08:10:55 +02:00
Napalys Klicius
6132900e12
Java: add full stops for ql docs
2025-08-29 08:09:03 +02:00
dependabot[bot]
6e1d9752d2
Bump actions/checkout from 4 to 5
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-29 03:04:30 +00:00
Tom Hvitved
0cc9ff8320
Merge pull request #20225 from hvitved/rust/path-resolution-crate-fallback
...
Rust: Fallback crate resolution
2025-08-28 20:48:51 +02:00
Geoffrey White
5d14ef5fd3
Rust: Change note.
2025-08-28 17:14:53 +01:00
Geoffrey White
9e0a31cafc
Rust: Change note.
2025-08-28 17:08:03 +01:00
Geoffrey White
5c90b908cd
Rust: Lower the thresholds in rust/diagnostic/database-quality to more pragmatic numbers.
2025-08-28 17:08:02 +01:00
Jeroen Ketema
b8917c8c19
Merge branch 'main' into add-comptr-model-now-with-more-models
2025-08-28 17:15:06 +02:00
Mathias Vorreiter Pedersen
b9cd7a80f9
C++: Fix conflation in models.
2025-08-28 17:10:06 +02:00
Mathias Vorreiter Pedersen
759e339444
C++: Add change note.
2025-08-28 17:02:26 +02:00
Mathias Vorreiter Pedersen
ddf0f37dac
C++: Accept test changes.
2025-08-28 16:58:49 +02:00
Mathias Vorreiter Pedersen
e59de9a3d6
C++: Add models for the remaining member functions (and conversions) in ComPtr.
2025-08-28 16:56:39 +02:00
Mathias Vorreiter Pedersen
3e78572a3a
C++: Drive-by fix: Add missing '@'.
2025-08-28 16:54:49 +02:00
Mathias Vorreiter Pedersen
f135ed957d
C++: Add testcases with missing model.
2025-08-28 16:54:46 +02:00
Mathias Vorreiter Pedersen
2c2b1e4116
Merge pull request #20306 from MathiasVP/fix-new-initializer-bug
...
C++: Fix IR construction for implicit conversions in `new` initializers
2025-08-28 16:40:37 +02:00
Jeroen Ketema
1847a450cc
Merge pull request #20298 from jketema/pch-expose
...
C++: Add class representing PCH files
2025-08-28 15:33:20 +02:00
Geoffrey White
e8b7ce43a5
Merge pull request #20270 from geoffw0/pathi
...
Rust: Improve FS models
2025-08-28 14:30:18 +01:00
Napalys Klicius
c836104717
Update java/ql/src/Violations of Best Practice/Implementation Hiding/VisibleForTestingAbuse.md
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2025-08-28 15:01:53 +02:00
Napalys Klicius
d3be456c5c
Update java/ql/src/Violations of Best Practice/Implementation Hiding/VisibleForTestingAbuse.ql
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2025-08-28 15:01:43 +02:00
Napalys Klicius
73c8f3ded9
Merge pull request #20205 from Napalys/java/mocking-all-non-private-methods-means-unit-test-is-too-big
...
Java: port quality query `java/mocking-all-non-private-methods-means-unit-test-is-too-big`
2025-08-28 14:59:37 +02:00
Joe Farebrother
7ef2b01119
Merge pull request #20142 from joefarebrother/python-qual-subclass-shadow
...
Python: Modernise Superclass attribute shadows subclass method query
2025-08-28 13:40:26 +01:00
Napalys Klicius
1949d9f8f3
Merge branch 'main' into java/mocking-all-non-private-methods-means-unit-test-is-too-big
2025-08-28 14:22:06 +02:00
Napalys Klicius
970167bc62
Java: moved java/mocking-all-non-private-methods-means-unit-test-is-too-big to a more appropriate location, namely Violation of Best Practice/Testing
2025-08-28 14:20:19 +02:00
Geoffrey White
e860600712
Rust: Remove the canonical_path_disabled test entirely.
2025-08-28 12:55:01 +01:00
Michael Nebel
919ed3cff0
Merge pull request #20304 from michaelnebel/csharp/prettyprintmad
...
C#: Convert Blazor test to use pretty print models processing.
2025-08-28 13:54:23 +02:00
Tom Hvitved
aa3f4e1eca
C#: Fix context-sensitive dispatch when using base qualifier
2025-08-28 13:24:47 +02:00
Jeroen Ketema
31126649a9
Update cpp/ql/lib/semmle/code/cpp/PchFile.qll
...
Co-authored-by: Idriss Riouak <idrissrio@github.com >
2025-08-28 13:10:39 +02:00
Mathias Vorreiter Pedersen
4116292888
C++: Accept test changes.
2025-08-28 12:13:19 +02:00
Mathias Vorreiter Pedersen
2033552bb2
C++: Handle conversions in new initializers.
2025-08-28 12:13:02 +02:00
Mathias Vorreiter Pedersen
d0e766da3e
C++: Add a testcase with invalid IR.
2025-08-28 12:06:21 +02:00
Napalys Klicius
ad6ca51ef2
Update java/ql/src/Likely Bugs/Frameworks/JUnit/ExcessivePublicMethodMocking.ql
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2025-08-28 12:03:56 +02:00
Tom Hvitved
fa7295f0a1
Merge pull request #20303 from hvitved/python/jump-to-def-unpack-tests
...
Python: Add jump-to-def tests for unpacking assignments
2025-08-28 12:03:55 +02:00
Geoffrey White
1e46dd8412
Rust: Remove redundant code.
2025-08-28 10:59:37 +01:00
Tom Hvitved
c2bb3797b0
C#: Add data flow test
2025-08-28 11:57:03 +02:00
Michael Nebel
73ce2a2f57
C#: Convert Blazor test to use pretty print models processing.
2025-08-28 11:46:08 +02:00
Asger F
d117c52d2f
JS: Use the LHS as the location for SsaExplicitDefinition
2025-08-28 11:35:15 +02:00
Asger F
4437f47a7b
Merge pull request #20297 from asgerf/js/simpler-summary-pruning
...
JS: Change pruning to not rely on Import
2025-08-28 11:20:14 +02:00
Michael Nebel
bd31e7f230
Merge pull request #20278 from michaelnebel/csharp/streamlinebulkmodels2
...
C#: Update MaD models to taint entire byte- and char collection.
2025-08-28 10:49:44 +02:00
Tom Hvitved
bf47f66691
Python: Add jump-to-def tests for unpacking assignments
2025-08-28 10:38:21 +02:00
Joe Farebrother
bde143e4c1
Merge pull request #20038 from joefarebrother/python-qual-comparison
...
Python: Modernize 3 quality queries for comparison methods
2025-08-28 09:37:20 +01:00
Joe Farebrother
45910b9505
Merge remote-tracking branch 'origin/python-qual-subclass-shadow' into python-qual-subclass-shadow
2025-08-28 09:23:42 +01:00
Tom Hvitved
f87f52d8d2
Address review comments
2025-08-28 10:08:48 +02:00
Joe Farebrother
c6ababd262
Fix test output
2025-08-28 08:49:34 +01:00
Tom Hvitved
dcaf4a735b
Rust: Fallback crate resolution
2025-08-28 09:34:05 +02:00
Geoffrey White
194363c107
Rust: Codegen.
2025-08-27 20:01:16 +01:00
Geoffrey White
f838494bf0
Rust: Remove empty impls.
2025-08-27 19:58:03 +01:00
Geoffrey White
9efb6ea995
Rust: Cargo fmt.
2025-08-27 19:16:43 +01:00
Geoffrey White
83df1137b6
Rust: Codegen.
2025-08-27 17:47:34 +01:00
Geoffrey White
2e747bb05c
Merge branch 'main' into oldpaths1 (some generated files are left unmerged).
2025-08-27 16:56:06 +01:00
Simon Friis Vindum
028f1cb7b4
Merge pull request #20299 from paldepind/rust/certain-extensions
...
Rust: Minor tweaks to certain type inference
2025-08-27 17:49:20 +02:00
Geoffrey White
a075ed595c
Rust: Remove telemetry about extractor generated paths.
2025-08-27 15:56:59 +01:00
Mathias Vorreiter Pedersen
bb08611f55
Merge pull request #20301 from MathiasVP/add-comptr-model
...
C++: Add `ComPtr` MaD models
2025-08-27 16:52:02 +02:00
Joe Farebrother
ada0b372c6
Merge pull request #20120 from joefarebrother/python-qual-unexpected-raise-special
...
Python: Modernize Unexpected Raise In Special Method query
2025-08-27 15:01:46 +01:00
Mathias Vorreiter Pedersen
bebfe03166
C++: Add missing model and accept test changes.
2025-08-27 15:15:26 +02:00
Mathias Vorreiter Pedersen
8c07a3e552
C++: Add testcase with missing model.
2025-08-27 15:12:52 +02:00
Mathias Vorreiter Pedersen
7c05622a91
C++: Add missing type and accept test changes.
2025-08-27 14:41:00 +02:00
Mathias Vorreiter Pedersen
96b6986660
C++: Fix duplicated entries.
2025-08-27 14:35:45 +02:00
Joe Farebrother
2c6b2df7cc
Update python/ql/src/Classes/SubclassShadowing/SubclassShadowing.qhelp
...
Co-authored-by: Taus <tausbn@github.com >
2025-08-27 13:20:54 +01:00
Joe Farebrother
5b0beb91d1
Update python/ql/src/Functions/IncorrectRaiseInSpecialMethod.qhelp
...
Co-authored-by: Taus <tausbn@github.com >
2025-08-27 13:19:55 +01:00
Mathias Vorreiter Pedersen
9e9f6dd11a
C++: Accept test changes.
2025-08-27 14:18:21 +02:00
Mathias Vorreiter Pedersen
246ed9d30b
C++: Add a model for ComPtr.
2025-08-27 14:18:12 +02:00
Mathias Vorreiter Pedersen
6f64129b04
C++: Add ComPtr tests.
2025-08-27 14:05:13 +02:00
Simon Friis Vindum
08f025f164
Rust: Infer range expressions certainly and support full ranges
2025-08-27 13:59:20 +02:00
Simon Friis Vindum
4c10f07d5f
Rust: Add type inference test with range full expression
2025-08-27 13:59:19 +02:00
Simon Friis Vindum
2f4e2d6d79
Rust: Infer certain types for logical operators
2025-08-27 13:59:18 +02:00
Simon Friis Vindum
0ff4dbcea0
Rust: Fix type inference inconsistency
2025-08-27 13:59:16 +02:00
Simon Friis Vindum
1981668f3c
Rust: Add pattern match type inference test
2025-08-27 13:59:15 +02:00
Jeroen Ketema
fd752d36cb
C++: Add missing QLDoc
2025-08-27 13:48:10 +02:00
Jeroen Ketema
97d3982061
C++: Add change note
2025-08-27 13:42:46 +02:00
Napalys Klicius
a3aacfb688
Merge pull request #20190 from Napalys/java/jvm-exit-query-promotion
...
Java: Enhance `java/jvm-exit` query and add to quality
2025-08-27 13:23:02 +02:00
Jeroen Ketema
9b19ccf884
C++: Update dbscheme stats file
2025-08-27 12:52:26 +02:00
Napalys Klicius
e0916c8750
JS: add change note
2025-08-27 10:32:45 +00:00
Napalys Klicius
32606584ea
JS: add enumeration taint flow to Remote Property Injection query
2025-08-27 10:23:03 +00:00
Napalys Klicius
c39c04cb86
JS: added new test case for remote prop injection via Object.keys
2025-08-27 10:20:57 +00:00
Napalys Klicius
10c10c7d30
JS: fixed typo in folder name
2025-08-27 10:17:39 +00:00
Kasper Svendsen
9cc6e9c8a9
Overlay: Add discarding for Java classes, interfaces & fields
2025-08-27 12:07:59 +02:00
Geoffrey White
1d815b16d6
Rust: Update test expectations.
2025-08-27 10:42:45 +01:00
Geoffrey White
5d060d621b
Rust: Remove leftover QL use of Resolvable.
2025-08-27 10:42:44 +01:00
Geoffrey White
152ae1d29b
Rust: Codegen.
2025-08-27 10:42:42 +01:00
Geoffrey White
c7947a0afa
Rust: Remove built-in methods from Addressable in the schema.
2025-08-27 10:42:11 +01:00
Tom Hvitved
f232335618
Merge pull request #20291 from hvitved/rust/type-inference-more-certain-types
...
Rust: Add more cases to `inferCertainType`
2025-08-27 11:25:24 +02:00
Asger F
4a687a1222
JS: Add deprecated alias
...
The old DbLocation class was public, hence the alias
2025-08-27 11:21:18 +02:00
Asger F
dcf63fc434
JS: Remove synthetic locations
2025-08-27 11:20:24 +02:00
Asger F
be32579cab
JS: Change pruning to not rely on Import
2025-08-27 10:44:23 +02:00
Jami
b7c1e1e8ce
Merge pull request #20006 from jcogs33/jcogs33/java/insecure-spring-actuator-config-promotion
...
Java: Promote Insecure Spring Boot Actuator Configuration query from experimental
2025-08-26 19:29:03 -04:00
Jeroen Ketema
896a802194
C++: Add upgrade and downgrade scripts
2025-08-26 23:12:15 +02:00
Jeroen Ketema
e20ce57023
C++: Expose PCH file creation as usage in QL
2025-08-26 22:12:27 +02:00
Jeroen Ketema
e9b00f1e0d
C++: Add tables that represent the creation and use of PCH files
...
This allows a use to be linked to a creation.
2025-08-26 22:12:12 +02:00
Florin Coada
499e432065
Merge pull request #20268 from github/changedocs/2.22.4
...
Add changelog entry for CodeQL CLI version 2.22.4
2025-08-26 20:29:35 +01:00
Geoffrey White
3cd057fe39
Rust: Remove Resolvable from the schema.
2025-08-26 17:32:02 +01:00
Florin Coada
feca56582a
Update codeql-cli-2.22.4.rst
2025-08-26 16:48:23 +01:00
Paolo Tranquilli
dd68d68064
Merge pull request #20288 from github/redsun82/rust-less-warnings
...
Rust: downgrade uncompiled source files from warning to info
2025-08-26 17:45:17 +02:00
Paolo Tranquilli
531955e922
Merge branch 'main' into redsun82/rust-less-warnings
2025-08-26 17:29:20 +02:00
Napalys Klicius
b3f90bbdfc
Update java/ql/src/Violations of Best Practice/Undesirable Calls/CallsToSystemExit.ql
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2025-08-26 13:23:24 +00:00
Napalys Klicius
6c51ba80c7
Update java/ql/src/Violations of Best Practice/Undesirable Calls/CallsToSystemExit.ql
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2025-08-26 15:19:02 +02:00
Geoffrey White
a8f7f74812
Rust: Remove unused use decls.
2025-08-26 13:57:33 +01:00
Geoffrey White
70600fe6d9
Rust: Remove unused traits and things.
2025-08-26 13:55:29 +01:00
Geoffrey White
bd5f863efc
Rust: Remove uncalled methods.
2025-08-26 13:55:28 +01:00
Tom Hvitved
6453b71017
Rust: Add more cases to inferCertainType
2025-08-26 14:44:55 +02:00
Tom Hvitved
3527fca617
Merge pull request #20274 from hvitved/rust/type-synth-type-param
...
Rust: Include synthetic type parameters in `Type.getATypeParameter`
2025-08-26 14:42:29 +02:00
Simon Friis Vindum
87d1a14ff2
Merge pull request #20286 from github/rust/fix-examples
...
Rust: Fix examples in qldoc
2025-08-26 14:13:08 +02:00
Simon Friis Vindum
4ed0fb71f3
Merge pull request #20289 from github/rust/typo-in-bound
...
Rust: Fix minor typo in bound in comment
2025-08-26 14:12:33 +02:00
Jami
3675e4bb4f
Merge branch 'main' into jcogs33/java/insecure-spring-actuator-config-promotion
2025-08-26 08:02:17 -04:00
Paolo Tranquilli
42a40c14ac
Rust: reword macro expansion error
2025-08-26 13:58:47 +02:00
Geoffrey White
dd00df74dd
Rust: Remove unused wiring.
2025-08-26 12:54:31 +01:00
Simon Friis Vindum
600417a767
Rust: Fix minor typo in bound in comment
2025-08-26 13:43:30 +02:00
Jeroen Ketema
d5f4a3961e
Merge pull request #20287 from jketema/not-included
...
Java: Update integration test after query removal
2025-08-26 12:54:52 +02:00
Paolo Tranquilli
999920c968
Rust: accept test changes
2025-08-26 12:30:27 +02:00
Paolo Tranquilli
02b4c1fa85
Rust: downgrade uncompiled source files from warning to info
2025-08-26 11:56:53 +02:00
Jeroen Ketema
680aeea1ba
Merge pull request #14331 from asgerf/cpp/use-flow-state-inout-barriers
...
C++: use in/out barriers with flow state
2025-08-26 11:47:35 +02:00
Napalys Klicius
8017fae297
Java: Simplify mock call location check using getEnclosingCallable
2025-08-26 09:44:00 +00:00
Jeroen Ketema
54f264851a
Merge branch 'main' into cpp/use-flow-state-inout-barriers
2025-08-26 11:24:32 +02:00
Jeroen Ketema
704ae1a3b1
Java: Update integration test after query removal
2025-08-26 11:19:42 +02:00
Asger F
629a96c167
Merge pull request #5 from jketema/cpp/use-flow-state-inout-barriers
...
C++: Revert changes to `cpp/constant-array-overflow`
2025-08-26 11:08:56 +02:00
Tom Hvitved
80031e5c00
Merge pull request #20273 from hvitved/rust/attribute-in-macro-expansion
...
Rust: Include `getAttributeMacroExpansion` in `isInMacroExpansion`
2025-08-26 11:08:02 +02:00
Simon Friis Vindum
17f7b7f710
Rust: Fix examples in qldoc
2025-08-26 10:56:52 +02:00
Geoffrey White
078fbc6427
Rust: Remove resolve_paths from the translator.
2025-08-26 09:51:00 +01:00
Geoffrey White
456f56096f
Rust: Remove ResolvePaths enum and resolve_paths arguments up to Translator::new (hardcode to false).
2025-08-26 09:46:20 +01:00
Jeroen Ketema
75786e9a71
C++: Revert changes to cpp/constant-array-overflow
...
It is not clear that this does what we want here, and the query is severly
broken in any case.
2025-08-26 10:43:54 +02:00
Napalys Klicius
1abb8ad54a
Java: Use strictcount instead of count for method counting
...
Co-authored-by: michaelnebel <michaelnebel@github.com >
2025-08-26 08:41:33 +00:00
Napalys Klicius
b271f1fcd0
Java: Renamed query java/mocking-all-non-private-methods-means-unit-test-is-too-big to java/excessive-public-method-mocking and changed wording from non-private to public
2025-08-26 08:37:57 +00:00
Geoffrey White
d6d0645d7b
Rust: Remove skip_path_resolution config variable (hardhoded to true).
2025-08-26 09:33:52 +01:00
Tom Hvitved
fb7c3f32d3
Merge pull request #20283 from hvitved/rust/update-test-output
...
Rust: Update expected test output
2025-08-26 10:06:54 +02:00
Jeroen Ketema
7a3973b941
Merge pull request #20279 from jketema/loc-cleanup
...
C++: Update expected test results after extractor changes
2025-08-26 09:55:02 +02:00
Tom Hvitved
83ca08cad6
Rust: Update expected test output
2025-08-25 21:54:15 +02:00
Tom Hvitved
9b4d37df24
Add change note
2025-08-25 20:49:10 +02:00
Jeroen Ketema
a104600d4d
Merge branch 'main' into cpp/use-flow-state-inout-barriers
2025-08-25 17:04:30 +02:00
Paolo Tranquilli
7de34e4be0
Merge pull request #20055 from github/redsun82/cargo-upgrade-2
...
Rust: upgrade to rust-analyzer 0.0.300
2025-08-25 16:26:13 +02:00
Taus
1008ca9744
Python: Add psycopg2.pool tests
2025-08-25 14:14:16 +00:00
Jeroen Ketema
0752c07bc1
C++: Update expected test results after extractor changes
2025-08-25 15:56:00 +02:00
Michael Nebel
7394a80bf3
C#: Add change-note.
2025-08-25 14:53:23 +02:00
Michael Nebel
be123cf2bc
C#: Update test expected output.
2025-08-25 14:52:41 +02:00
Michael Nebel
311e3ac8b5
C#: Taint entire return for Byte- and Char array summaries.
2025-08-25 14:39:29 +02:00
Taus
d5e0298999
Python: Add support for Psycopg2 database connection pools
...
Our current modelling only treated `psycopg2` insofar as it implemented
PEP 249 (which does not define any notion of connection pool), which
meant we were missing database connections that arose from such pools.
With these changes, we add support for the three classes relating to
database pools that are defined in `psycopg2`. (Note that
`getAnInstance` automatically looks at subclasses, which means this
should also handle cases where the user has defined a new subclass that
inherits from one of these three classes.)
2025-08-25 12:35:57 +00:00
Tom Hvitved
88059d97c8
Merge pull request #20275 from hvitved/python/fix-print-ast-yaml
...
Python: Only include relevant YAML in `printAst.ql`
2025-08-25 14:22:14 +02:00
Tom Hvitved
bf7e3dabd6
Python: Only include relevant YAML in printAst.ql
2025-08-25 13:54:19 +02:00
Tom Hvitved
9ef839dc8a
Rust: Include synthetic type parameters in Type.getATypeParameter
2025-08-25 13:13:05 +02:00
Tom Hvitved
1d8f29136b
Rust: Include getAttributeMacroExpansion in isInMacroExpansion
2025-08-25 11:00:49 +02:00
Anders Schack-Mulligen
4be995dc19
Merge pull request #20267 from aschackmull/java/nullness-fix
...
Java: Add more nullness tests and fix a bug causing false negatives.
2025-08-25 09:13:25 +02:00
Anders Schack-Mulligen
891ce62948
Merge pull request #17660 from knewbury01/knewbury01/improve-quality-java-set
...
Remove unnecessary query
2025-08-25 08:37:02 +02:00
Paolo Tranquilli
e20c8e139c
Merge pull request #20250 from github/redsun82/redsun82/no-lld
...
Bazel: do not force `lld` and fix `platforms` warning
2025-08-25 08:32:25 +02:00
Napalys Klicius
38f517ecfa
Java: Add lambda-aware test detection to VisibleForTesting query
2025-08-24 10:02:43 +00:00
Napalys Klicius
4149968f33
Java: Remove the hardcoded path filter that excluded CodeQL's own unit tests from the java/visible-for-testing-abuse query.
2025-08-24 09:58:35 +00:00
Jami Cogswell
f0542dd828
Java: add summary to change note
2025-08-22 17:17:51 -04:00
Geoffrey White
4a4f782d86
Rust: Accept another consistency test change.
2025-08-22 16:57:51 +01:00
Geoffrey White
0e2bc7c95d
Merge remote-tracking branch 'upstream/main' into pathi
2025-08-22 16:57:41 +01:00
Geoffrey White
08cb038086
Rust: Accept changes to other tests.
2025-08-22 16:17:50 +01:00
Napalys Klicius
4a693d9b60
Update java/ql/src/Violations of Best Practice/Undesirable Calls/CallsToSystemExit.ql
...
Co-authored-by: Michael Nebel <michaelnebel@github.com >
2025-08-22 16:09:46 +02:00
Henning Makholm
3134c0aa38
Merge pull request #20269 from github/hmakholm/pr/test-run-output
...
rust integration test: use all output from codeql test run
2025-08-22 15:47:33 +02:00
Geoffrey White
701aec1c8e
Rust: Fix the canonicalize models.
2025-08-22 14:35:51 +01:00
Henning Makholm
2e69417d67
rust integration test: use all output from codeql test run
...
The integration test expectes to find a certain phrase from the
extractor repeated in the _stderr_ of `codeql test run`. However, that
subcommand is about to start reproducing the extractor output as-is,
which means the phrase will instead appear in _stdout_.
Change the integration test to capture all of the output, so it
will keep passing across the change.
2025-08-22 15:27:37 +02:00
Geoffrey White
49c4c34882
Merge pull request #20221 from github/copilot/fix-20220
...
Rust: Implement a new query for Log Injection
2025-08-22 14:01:49 +01:00
Anders Schack-Mulligen
e343fd32d3
Java: Add change note.
2025-08-22 14:29:27 +02:00
Paolo Tranquilli
e05eca6680
Merge branch 'main' into redsun82/cargo-upgrade-2
2025-08-22 13:52:28 +02:00
Geoffrey White
7279b0318b
Rust: Model a few more Path and PathBuf methods.
2025-08-22 11:31:43 +01:00
Jeroen Ketema
374c547fa2
Merge pull request #18722 from superboy-zjc/main
...
Fix the broken reference
2025-08-22 12:26:59 +02:00
Jeroen Ketema
6ce3aac7b7
Merge pull request #12660 from moshekaplan/patch-1
...
Correct menu title name of "Open Workspace"
2025-08-22 12:08:06 +02:00
Jeroen Ketema
6d7f6ff77d
Merge branch 'main' into patch-1
2025-08-22 11:51:33 +02:00
Florin Coada
ea0e31fc30
Add changelog entry for CodeQL CLI version 2.22.4
2025-08-22 10:19:12 +01:00
Geoffrey White
40b9754071
Rust: Change note.
2025-08-22 09:58:11 +01:00
Geoffrey White
2f2a975350
Rust: Model path::new.
2025-08-22 09:58:09 +01:00
Geoffrey White
d1a5c9b297
Rust: Add a test case resembling code seen in the wild.
2025-08-22 09:58:08 +01:00
Geoffrey White
8b04bc0ceb
Rust: Model std::fs::OpenOptions and similar.
2025-08-22 09:58:07 +01:00
Geoffrey White
9fbbe02da0
Rust: Compact these models a little.
2025-08-22 09:58:05 +01:00
Geoffrey White
fcce862cea
Rust: Add an explicit test case for sinks with two relevant args.
2025-08-22 09:58:04 +01:00
Geoffrey White
16e0de0cfb
Rust: Fill gaps in the tokio models.
2025-08-22 09:58:03 +01:00
Geoffrey White
29e7b6ad2c
Rust: Fill a gap in the std::fs model.
2025-08-22 09:58:01 +01:00
Geoffrey White
1d2ac33bb6
Rust: Model async-std::fs.
2025-08-22 09:58:00 +01:00
Geoffrey White
49b4adcc99
Rust: Add more tests for DirEntry, PathBuf, OsString.
2025-08-22 09:57:59 +01:00
Anders Schack-Mulligen
f2352f76c0
Java: Teach guards that exceptions in catch-clauses are non-null.
2025-08-22 10:16:42 +02:00
Anders Schack-Mulligen
02452704b2
Java: Fix bug in nullness
2025-08-22 10:15:22 +02:00
Anders Schack-Mulligen
9fc0793d6a
Java: More nullness qltests, including highlight of FN bug.
2025-08-22 10:12:48 +02:00
Anders Schack-Mulligen
1c724372f2
Java: More nullness qltests.
2025-08-22 10:08:17 +02:00
Anders Schack-Mulligen
ba252cb5cf
Java: Add a couple of difficult condition correlation tests.
2025-08-22 10:08:00 +02:00
Napalys Klicius
4705ad2e32
Java: Added extra test cases for fields
2025-08-22 09:23:49 +02:00
Napalys Klicius
38b3df07ee
Java: Address comments
2025-08-22 09:23:49 +02:00
Napalys Klicius
66f2911497
Update java/ql/src/Violations of Best Practice/Implementation Hiding/VisibleForTestingAbuse.ql
...
Co-authored-by: Michael Nebel <michaelnebel@github.com >
2025-08-22 09:23:49 +02:00
Napalys Klicius
0b172080aa
Update java/ql/src/Violations of Best Practice/Implementation Hiding/VisibleForTestingAbuse.ql
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-08-22 09:23:49 +02:00
Napalys Klicius
d20fd5beba
Java: updated visible-for-testing-abuse meta data and docs.
2025-08-22 09:23:49 +02:00
Napalys Klicius
ea831a8352
Java: Fix VisibleForTestingAbuse false positives in annotations
2025-08-22 09:23:49 +02:00
Napalys Klicius
eb46e54c43
Java: Refactor VisibleForTestingAbuse query to reduce complexity
2025-08-22 09:23:49 +02:00
Napalys Klicius
225723bfeb
Java: Exclude @VisibleForTesting-to-@VisibleForTesting access from VisibleForTestingAbuse alerts
2025-08-22 09:23:49 +02:00
Napalys Klicius
e4042402bc
Java: Resolve spurious VisibleForTestingAbuse alerts for inner class access patterns
2025-08-22 09:23:49 +02:00
Napalys Klicius
1e2e6eccd7
Java: Test @VisibleForTesting method accessing @VisibleForTesting members
2025-08-22 09:23:49 +02:00
Napalys Klicius
7e2a1944f6
Java: Fix Predicate QLDoc style.
2025-08-22 09:23:49 +02:00
Napalys Klicius
9dfb4d4301
Java: Enchanced isWithinType to also include lambdas, inner classes etc.
2025-08-22 09:23:49 +02:00
Napalys Klicius
fbf18af076
Java: enchanced check if it is within same package
2025-08-22 09:23:49 +02:00
Napalys Klicius
2a16f4829e
Java: Expanded test suite of java/visible-for-testing-abuse
2025-08-22 09:23:49 +02:00
Napalys Klicius
ff6ddd2893
Java: Promoted java/visible-for-testing-abuse to quality
2025-08-22 09:23:49 +02:00
Napalys Klicius
652e9cba3d
Java: Added inline test expectations for java/visible-for-testing-abuse
2025-08-22 09:23:49 +02:00
Napalys Klicius
0c14d93bc6
Java: Added new query java/visible-for-testing-abuse
2025-08-22 09:23:49 +02:00
Chris Smowton
2d9470ded8
Merge pull request #20264 from github/smowton/admin/merge-rc319-into-main
...
Merge rc/3.19 into main
2025-08-21 17:06:17 +01:00
Geoffrey White
8da44828a6
Rust: Add tests for std::fs::canonicalize and similar.
2025-08-21 16:47:12 +01:00
Geoffrey White
801be8fbbd
Rust: Add more tests for std::fs::DirBuilder and similar.
2025-08-21 16:47:11 +01:00
Geoffrey White
bc226e2117
Rust: Add more general test cases for async_std::fs and tokio::fs.
2025-08-21 16:47:10 +01:00
Geoffrey White
5da296d77f
Rust: Add tests for std::fs::OpenOptions and similar.
2025-08-21 16:47:08 +01:00
Chris Smowton
1829060fab
Merge remote-tracking branch 'origin/main' into smowton/admin/merge-rc319-into-main
2025-08-21 16:33:37 +01:00
Napalys Klicius
eb6e9b8fe6
Java: Fix java/jvm-exit false positives for local nested classes in test methods
2025-08-21 14:20:49 +00:00
Napalys Klicius
41a78a0c3d
Java: Added nested local class test case
2025-08-21 14:10:12 +00:00
Tom Hvitved
7a4bc80582
Merge pull request #20248 from hvitved/rust/jump-to-def-generic-args
...
Rust: Adjust jump-to-def for paths with generic arguments
2025-08-21 16:00:51 +02:00
Tom Hvitved
0144c77dd1
Merge pull request #20234 from hvitved/type-inference/rename-vars
...
Type inference: Rename some variables
2025-08-21 16:00:31 +02:00
Michael Nebel
c89f2e309d
Merge pull request #20089 from michaelnebel/csharp/allowsinkimplicitread
...
C#: Allow implicit collection reads in sink nodes.
2025-08-21 15:29:52 +02:00
Jami
771d7cb171
Merge pull request #20095 from jcogs33/jcogs33/java/finalizers-on-exit-and-garbage-collection
...
Java: Add `previous-id` and adjust tags for `java/garbage-collection` and `java/run-finalizers-on-exit`
2025-08-21 08:10:36 -04:00
Owen Mansel-Chan
f1c6064f4e
Merge pull request #20188 from github/dependabot/go_modules/go/extractor/extractor-dependencies-c0b353d580
...
Bump the extractor-dependencies group in /go/extractor with 2 updates
2025-08-21 12:44:15 +01:00
Napalys Klicius
46a2de69cd
Update java/ql/src/Violations of Best Practice/Undesirable Calls/CallsToSystemExit.ql
...
Co-authored-by: Michael Nebel <michaelnebel@github.com >
2025-08-21 13:21:17 +02:00
Mathias Vorreiter Pedersen
dfda5a0793
Merge pull request #20249 from MathiasVP/type-tracking-for-cpp-3
...
C++: Use the shared type-tracking library for virtual dispatch resolution
2025-08-21 11:14:12 +02:00
Napalys Klicius
3369e16b1b
Merge pull request #20254 from Napalys/cs/ldap-injection-qhelp
...
CS: Update `cs/ldap-injection` qhelp
2025-08-21 08:57:03 +02:00
Michael Nebel
ebfbc71104
C#: Address more review comments.
2025-08-21 08:07:17 +02:00
dependabot[bot]
e99b423e28
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.26.0 to 0.27.0
- [Commits](https://github.com/golang/mod/compare/v0.26.0...v0.27.0 )
Updates `golang.org/x/tools` from 0.35.0 to 0.36.0
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.35.0...v0.36.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/mod
dependency-version: 0.27.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: extractor-dependencies
- dependency-name: golang.org/x/tools
dependency-version: 0.36.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: extractor-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-21 03:46:43 +00:00
Jeroen Ketema
b79f0a2cf2
Merge pull request #20252 from knewbury01/knewbury01/add-uniform-Customizations
...
Add extra Customizations files
2025-08-20 20:14:02 +02:00
Kristen Newbury
cf0342410d
Merge branch 'knewbury01/add-uniform-Customizations' of https://github.com/knewbury01/codeql into knewbury01/add-uniform-Customizations
2025-08-20 13:19:16 -04:00
Kristen Newbury
854a5b5871
Add changenotes customizations addition
2025-08-20 13:18:17 -04:00
Napalys Klicius
71a8e10f3d
CS: added extra guidance in recommendation section for LDAPInjection
2025-08-20 13:37:02 +02:00
Napalys Klicius
c475bedf73
CS: removed dead links from LDAPInjection qhelp
2025-08-20 12:58:54 +02:00
Mathias Vorreiter Pedersen
70d3e69ce5
C++: Rename 'lambda' to 'virtual'.
2025-08-20 10:38:22 +02:00
Paolo Tranquilli
fd7668d94a
Merge pull request #20251 from github/redsun82/rust-remove-warning
...
Rust: update README to remove experimental warning
2025-08-20 10:12:19 +02:00
Michael Nebel
3e03728ffe
Merge pull request #20244 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2025-08-20 08:55:48 +02:00
Michael Nebel
b42c366250
C#: Address review comments.
2025-08-20 08:50:23 +02:00
Jeroen Ketema
c9f0e3a377
Apply suggestions from code review
2025-08-20 08:07:10 +02:00
github-actions[bot]
e74116b347
Add changed framework coverage reports
2025-08-20 00:23:14 +00:00
Kristen Newbury
d630e32ce9
Format Customizations.qll
2025-08-19 15:27:29 -04:00
Kristen Newbury
49ef6939d4
Add extra Customizations files
2025-08-19 14:49:31 -04:00
Paolo Tranquilli
65e5ded80d
Rust: update README to remove experimental warning
2025-08-19 16:02:45 +02:00
Paolo Tranquilli
d6f845ee17
Bazel: do not force lld and fix platforms warning
...
This was meant to avoid using `gold`, but `lld` might not be installed.
Having `gold` installed results in the following warning:
```
warning: the gold linker is deprecated and has known bugs with Rust
|
= help: consider using LLD or ld from GNU binutils instead
```
* if a user sees this warning, they can provide the `lld` or whatever
linker they prefer themselves, or make sure to uninstall `gold`
* in any case, this is not what we use for releasing (where we are sure
we don't use `gold`).
2025-08-19 15:56:16 +02:00
Paolo Tranquilli
fbeebd7d3c
Rust: fix old.dbscheme in downgrade script
2025-08-19 14:38:39 +02:00
Paolo Tranquilli
5e0f0c0408
Merge branch 'main' into redsun82/cargo-upgrade-2
2025-08-19 14:37:52 +02:00
Paolo Tranquilli
680b4abae2
Rust: accept test changes
2025-08-19 14:37:45 +02:00
Geoffrey White
963e028645
Merge pull request #20238 from geoffw0/scinit
...
Rust: Update StreamCipherInit to use getCanonicalPath.
2025-08-19 13:18:10 +01:00
Paolo Tranquilli
8ed277d6ee
Rust: adapt upgrade/downgrade scripts to new hash
2025-08-19 14:03:18 +02:00
Paolo Tranquilli
49bf48eda1
Rust: fix duplicate asm! expressions
2025-08-19 14:01:25 +02:00
Mathias Vorreiter Pedersen
02bf923f7e
C++: Add change note.
2025-08-19 13:57:15 +02:00
Mathias Vorreiter Pedersen
0631bd7466
C++: Add object/flow conflation for unions when resolving function pointers.
2025-08-19 13:57:13 +02:00
Mathias Vorreiter Pedersen
16508b1800
C++: Fix off-by-one error in getType on 'FinalGlobalValue' nodes and accept test changes.
2025-08-19 13:57:11 +02:00
Mathias Vorreiter Pedersen
302d35bedc
C++: Accept test changes.
2025-08-19 13:57:10 +02:00
Mathias Vorreiter Pedersen
cca5bd9ada
C++: Update 'mayBenefitFromCallContext' to not use the old virtual dispatch local flow predicate.
2025-08-19 13:57:07 +02:00
Mathias Vorreiter Pedersen
383799ce67
C++: Perform 6 rounds of virtual dispatch resolution like Java.
2025-08-19 13:57:05 +02:00
Mathias Vorreiter Pedersen
d4188d59a8
C++: Instantiate the type tracking module inside a reusable module like it's done in Java.
2025-08-19 13:57:03 +02:00
Mathias Vorreiter Pedersen
ea8d766ae8
Merge pull request #20242 from MathiasVP/fprintf-partial-flow
...
C++: Mark the write to `fprintf`'s 0'th argument as partial
2025-08-19 13:43:22 +02:00
Paolo Tranquilli
d38459a50a
Fix ForTypeRepr docs and test with proper instance
2025-08-19 12:46:16 +02:00
Mathias Vorreiter Pedersen
caf7464f3b
C++: Prefix with 'DataflowPrivate'.
2025-08-19 12:46:12 +02:00
Mathias Vorreiter Pedersen
fdb9f7ba2a
C++: Move these predicates to make the diff smaller.
2025-08-19 12:42:15 +02:00
Mathias Vorreiter Pedersen
42fcfca849
C++: Remove the old virtual dispatch case from 'defaultViableCallable' and slightly reorganize the code in preparation for the next commit.
2025-08-19 12:39:26 +02:00
Mathias Vorreiter Pedersen
c1b91db37a
C++: Add more virtual dispatch tests.
2025-08-19 12:32:09 +02:00
Paolo Tranquilli
ce48202b6a
Merge branch 'main' into redsun82/cargo-upgrade-2
2025-08-19 12:25:49 +02:00
Geoffrey White
401315c4f5
Update rust/ql/lib/codeql/rust/frameworks/rustcrypto/RustCrypto.qll
...
Co-authored-by: Tom Hvitved <hvitved@github.com >
2025-08-19 09:22:53 +01:00
Tom Hvitved
714423d6b9
Rust: Adjust jump-to-def for paths with generic arguments
2025-08-19 10:22:32 +02:00
Tom Hvitved
0cd8c9009f
Rust: Add more jump-to-def tests
2025-08-19 10:20:59 +02:00
Tom Hvitved
4684ac1ed9
Merge pull request #20191 from hvitved/rust/path-resolution-successor-kind
...
Rust: Distinguish internal/external items in path resolution
2025-08-19 10:20:05 +02:00
Anders Schack-Mulligen
a8f394fedb
Merge pull request #20237 from aschackmull/guards/nullguard-caching
...
Guards: Cache nullGuard predicate.
2025-08-19 09:51:31 +02:00
Geoffrey White
9f04de859f
Rust: Update test results following merge.
2025-08-19 08:50:23 +01:00
Geoffrey White
ab49c33915
Merge branch 'main' into scinit
2025-08-19 08:50:12 +01:00
Tom Hvitved
e6150e2079
Merge pull request #20243 from hvitved/rust/canonical-path-transitive-deps
...
Rust: Take transitive dependencies into account when computing canonical paths
2025-08-19 09:46:53 +02:00
Asger F
6783456213
JS: Add discard predicates
2025-08-19 09:20:00 +02:00
Asger F
ba585b8af5
JS: Add upgrade/downgrade scripts
2025-08-19 09:19:58 +02:00
Asger F
30baf0acec
JS: Add overlayChangedFiles
2025-08-19 09:19:57 +02:00
Asger F
c1df8a95cb
JS: Overlay extraction support
2025-08-19 09:19:55 +02:00
Asger F
6872f51725
JS: Add metadata to dbscheme and stats
2025-08-19 09:19:54 +02:00
Tom Hvitved
60b2cf6638
Rust: Take transitive dependencies into account when computing canonical paths
2025-08-18 22:02:44 +02:00
Tom Hvitved
5a69845485
Rust: Elaborate QL doc
2025-08-18 21:31:37 +02:00
Geoffrey White
bf33d1b870
Rust: Make a couple of new imports private.
2025-08-18 18:51:33 +01:00
Geoffrey White
fdec780921
Rust: Accept consistency .expected changes.
2025-08-18 18:42:06 +01:00
Geoffrey White
402e901811
Merge branch 'main' into scinit
2025-08-18 18:35:03 +01:00
Chris Smowton
238cb9ca68
Merge pull request #20241 from github/post-release-prep/codeql-cli-2.22.4
...
Post-release preparation for codeql-cli-2.22.4
2025-08-18 17:34:58 +01:00
Mathias Vorreiter Pedersen
af00e46fc8
C++: Mark fprintf and friends as a partial write of the stream argument.
2025-08-18 18:15:14 +02:00
Mathias Vorreiter Pedersen
6a57da79de
C++: Add a test with missing flow.
2025-08-18 18:12:52 +02:00
Mathias Vorreiter Pedersen
4551875e2e
C++: Drive-by improvement: Use 'partialFlowFunc' since it is in scope anyway.
2025-08-18 18:10:35 +02:00
Paolo Tranquilli
a658fa168d
Rust: refine upgrade script
2025-08-18 17:19:47 +02:00
Paolo Tranquilli
6266d6e7b0
Rust: add downgrade script
2025-08-18 17:12:05 +02:00
github-actions[bot]
42e3d31c49
Post-release preparation for codeql-cli-2.22.4
2025-08-18 14:42:42 +00:00
Chris Smowton
57378ec4e4
Merge pull request #20240 from github/release-prep/2.22.4
...
Release preparation for version 2.22.4
2025-08-18 15:09:03 +01:00
github-actions[bot]
90d29994c8
Release preparation for version 2.22.4
2025-08-18 14:06:09 +00:00
Paolo Tranquilli
3d2bd8fedb
Merge branch 'main' into redsun82/cargo-upgrade-2
2025-08-18 15:55:15 +02:00
Paolo Tranquilli
4df479471f
Rust: accept test changes
2025-08-18 15:55:06 +02:00
Tom Hvitved
f1ca0ecc3c
Merge pull request #20233 from hvitved/rust/remove-tc
...
Rust: Remove TC from `ImplTraitTypeRepr.isInReturnPos`
2025-08-18 14:46:26 +02:00
Paolo Tranquilli
a8671452fc
Rust: add upgrade script
2025-08-18 13:06:30 +02:00
Michael Nebel
4b0c725367
C#: Add change note.
2025-08-18 12:56:15 +02:00
Michael Nebel
7431ee8df9
C#: Update the barrier in HashWithoutSalt to avoid an FP. It worked by accident before as we didn't allow implicit element reads at sinks.
2025-08-18 12:56:13 +02:00
Michael Nebel
1d25a20c9c
C#: Update the external flow test and expected test output.
2025-08-18 12:56:12 +02:00
Michael Nebel
abd0b2e2f9
C#: Update test expected output.
2025-08-18 12:56:10 +02:00
Michael Nebel
81751ea591
C#: Allow implicit reads from collections in argument nodes (sinks and additional flow steps) for default taint tracking configurations.
2025-08-18 12:56:09 +02:00
Michael Nebel
d8215a35c0
C#: Add example of failing taint flow for collections in sinks.
2025-08-18 12:56:07 +02:00
Ian Lynagh
fd020b52e4
Merge pull request #20232 from igfoo/igfoo/SloppyGlobal
...
C++: SloppyGlobal: Don't alert on template instantiations, only the template
2025-08-18 11:39:30 +01:00
Tom Hvitved
299ccb68f5
Merge pull request #20230 from hvitved/cfg/standard-tree-skip-non-tree-children
...
Shared: Skip non-CFG children in `StandardTree`
2025-08-18 12:13:31 +02:00
Geoffrey White
4eea4431b5
Merge pull request #20222 from geoffw0/pathbuf
...
Rust: Add a type inference test case resembling PathBuf.canonicalize.
2025-08-18 11:06:41 +01:00
Geoffrey White
e84135a6de
Update rust/ql/src/queries/security/CWE-117/LogInjection.qhelp
...
Co-authored-by: Sophie <29382425+sophietheking@users.noreply.github.com >
2025-08-18 10:34:43 +01:00
Geoffrey White
265c2e3603
Rust: Change note.
2025-08-18 10:29:14 +01:00
Anders Schack-Mulligen
877d397eb9
Merge pull request #20228 from 5idg5/java/data-extensions-change
...
Add data extensions for remote tainted sources
2025-08-18 11:26:38 +02:00
Geoffrey White
a9650e02ca
Rust: Add a slightly simpler / more explicit test case.
2025-08-18 10:20:30 +01:00
Anders Schack-Mulligen
e17382d179
Guards: Cache nullGuard predicate.
2025-08-18 11:09:11 +02:00
Nora Dimitrijević
f1b55641e1
Merge pull request #20073 from d10c/d10c/diff-informed-phase-3-cpp
...
C++: Diff-informed queries: phase 3 (non-trivial locations)
2025-08-18 09:41:38 +02:00
Nora Dimitrijević
4199859eaa
Merge pull request #20079 from d10c/d10c/diff-informed-phase-3-python
...
Python: Diff-informed queries: phase 3 (non-trivial locations)
2025-08-18 09:33:57 +02:00
Napalys Klicius
b19d1e0f57
Merge pull request #20151 from Napalys/js/command-line-libs
...
JS: Enhance command injection detection for CLI argument parsing libraries
2025-08-18 09:32:29 +02:00
Napalys Klicius
b2346183d6
Merge pull request #20148 from Napalys/js/reg-exp-env-variable-threat-model
...
JS: Exclude environment variables from `js/regex-injection` query by default
2025-08-18 09:32:15 +02:00
Paolo Tranquilli
7a95d5aaa6
Merge branch 'main' into redsun82/cargo-upgrade-2
2025-08-18 09:21:37 +02:00
Sid Gawri
d84e5319c3
changenote
2025-08-15 15:59:05 -04:00
Sid Gawri
e697e89171
Merge branch 'main' of https://github.com/5idg5/codeql into java/data-extensions-change
2025-08-15 15:50:12 -04:00
Nora Dimitrijević
bb9daa00c3
Merge pull request #20072 from d10c/d10c/diff-informed-phase-3-actions
...
Actions: Diff-informed queries: phase 3 (non-trivial locations)
2025-08-15 14:05:44 +02:00
Jeroen Ketema
84119baa50
Merge pull request #20223 from jketema/go-1.25-doc
...
Go: Mention Go 1.25 as supported
2025-08-15 13:47:40 +02:00
Tom Hvitved
b104535b32
Type inference: Rename some variables
2025-08-15 13:46:30 +02:00
Ian Lynagh
0870cc370b
C++: Add a changenote for the change to cpp/short-global-name
2025-08-15 12:09:37 +01:00
Ian Lynagh
3157fcdf79
C++: Add some BAD annotations to SloppyGlobal test
2025-08-15 12:07:09 +01:00
Tom Hvitved
1af6ddd8e3
Rust: Remove TC from ImplTraitTypeRepr.isInReturnPos
2025-08-15 12:45:13 +02:00
Ian Lynagh
bfd4c41ed9
C++: SloppyGlobal: Accept test changes
...
We no longer alert on template instantiations, just the template.
2025-08-15 11:24:19 +01:00
Nora Dimitrijević
0512940c0c
Merge pull request #20075 from d10c/d10c/diff-informed-phase-3-go
...
Go: Diff-informed queries: phase 3 (non-trivial locations)
2025-08-15 12:23:53 +02:00
Ian Lynagh
4b786061d6
C++: SloppyGlobal: Don't alert on template instantiations, only the template
2025-08-15 11:23:48 +01:00
Ian Lynagh
0b68c1c974
C++: Add some more tests for SloppyGlobal
2025-08-15 11:20:31 +01:00
Nora Dimitrijević
8000e7c442
Merge pull request #20074 from d10c/d10c/diff-informed-phase-3-csharp
...
C#: Diff-informed queries: phase 3 (non-trivial locations)
2025-08-15 12:07:47 +02:00
Nora Dimitrijević
89788206d1
[DIFF-INFORMED] C++: TypeConfusion
2025-08-15 12:01:30 +02:00
Nora Dimitrijević
5b9e37cd8f
[DIFF-INFORMED] C++: TaintedCondition
2025-08-15 12:01:28 +02:00
Nora Dimitrijević
0c636dd400
[DIFF-INFORMED] C++: UnsafeDaclSecurityDescriptor
2025-08-15 12:01:25 +02:00
Nora Dimitrijević
194d9a9f44
[DIFF-INFORMED] C++: UnsafeCreateProcessCall
2025-08-15 12:01:23 +02:00
Nora Dimitrijević
39b430aa7e
[DIFF-INFORMED] C++: IteratorToExpiredContainer
2025-08-15 12:01:21 +02:00
Nora Dimitrijević
ec85e55069
[DIFF-INFORMED] C++: InsufficientKeySize
2025-08-15 12:01:19 +02:00
Nora Dimitrijević
c0c96eaf5b
[DIFF-INFORMED] C++: UseOfHttp
2025-08-15 12:01:17 +02:00
Nora Dimitrijević
8560868e95
[DIFF-INFORMED] C++: CleartextSqliteDatabase
2025-08-15 12:01:15 +02:00
Nora Dimitrijević
05df2f2216
[DIFF-INFORMED] C++: CWE-311/Cleartext…
2025-08-15 12:01:13 +02:00
Nora Dimitrijević
21914030e8
[DIFF-INFORMED] C++: SSLResultConflation (has secondary config but passes test)
2025-08-15 12:01:11 +02:00
Nora Dimitrijević
87016f399c
[DIFF-INFORMED] C++: AuthenticationBypass
2025-08-15 12:01:09 +02:00
Nora Dimitrijević
861a768b2c
[DIFF-INFORMED] C++: CWE-190/ArithmeticTainted,etc.
2025-08-15 12:01:07 +02:00
Nora Dimitrijević
62fa7301c3
[DIFF-INFORMED] C++: ImproperNullTerminationTainted
2025-08-15 12:01:05 +02:00
Nora Dimitrijević
f3098e7695
[DIFF-INFORMED] C++: UnboundedWrite
2025-08-15 12:01:03 +02:00
Nora Dimitrijević
7df09f369f
[DIFF-INFORMED] C++: SqlTainted
2025-08-15 12:01:01 +02:00
Nora Dimitrijević
36d43a4830
[DIFF-INFORMED] C++: CgiXss
2025-08-15 12:00:59 +02:00
Nora Dimitrijević
80da00b599
[DIFF-INFORMED] C++: ExecTainted
2025-08-15 12:00:57 +02:00
Nora Dimitrijević
a77cab6981
[DIFF-INFORMED] C++: TaintedPath
2025-08-15 12:00:54 +02:00
Nora Dimitrijević
91b9c3e647
[DIFF-INFORMED] C++: LeapYear
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/cpp/ql/src/Likely%20Bugs/Leap%20Year/UncheckedLeapYearAfterYearModification.ql#L57
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/cpp/ql/src/Likely%20Bugs/Leap%20Year/Adding365DaysPerYear.ql#L21
2025-08-15 12:00:52 +02:00
Nora Dimitrijević
2f56baace2
[DIFF-INFORMED] C++: NonConstantFormat
2025-08-15 12:00:50 +02:00
Nora Dimitrijević
e382cb5696
[DIFF-INFORMED] C++: DecompressionBombs
2025-08-15 12:00:48 +02:00
Nora Dimitrijević
fabdf9923c
[DIFF-INFORMED] C++: ConstantSizeArrayOffByOne
2025-08-15 12:00:46 +02:00
Nora Dimitrijević
448a1ea87a
[DIFF-INFORMED] C++: OverflowDestination
2025-08-15 12:00:39 +02:00
Nora Dimitrijević
43e99d0872
[TEST] C++: CleartextSqliteDatabase: add new test
2025-08-15 12:00:26 +02:00
Nora Dimitrijević
126d24a522
[DIFF-INFORMED] Actions: EnvVarInjection
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/actions/ql/src/Security/CWE-077/EnvVarInjectionMedium.ql#L35
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/actions/ql/src/Security/CWE-077/EnvVarInjectionCritical.ql#L46
2025-08-15 11:11:12 +02:00
Nora Dimitrijević
f1445eb52f
[DIFF-INFORMED] Actions: EnvPathInjection
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/actions/ql/src/Security/CWE-077/EnvPathInjectionMedium.ql#L30
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/actions/ql/src/Security/CWE-077/EnvPathInjectionCritical.ql#L37
2025-08-15 11:11:07 +02:00
Nora Dimitrijević
f1b995a736
[DIFF-INFORMED] Actions: CommandInjection
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/actions/ql/src/experimental/Security/CWE-078/CommandInjectionMedium.ql#L24
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/actions/ql/src/experimental/Security/CWE-078/CommandInjectionCritical.ql#L28
2025-08-15 11:11:03 +02:00
Nora Dimitrijević
418e4b4a3a
[DIFF-INFORMED] Actions: CodeInjection
...
Query: https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/actions/ql/src/Security/CWE-349/CachePoisoningViaCodeInjection.ql#L46
2025-08-15 11:10:58 +02:00
Nora Dimitrijević
bbda2902be
[DIFF-INFORMED] Actions: ArtifactPoisoning
...
Queries:
- https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/actions/ql/src/Security/CWE-829/ArtifactPoisoningMedium.ql#L23
- https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/actions/ql/src/Security/CWE-829/ArtifactPoisoningCritical.ql#L26
2025-08-15 11:10:42 +02:00
Nora Dimitrijević
896819fdf3
[DIFF-INFORMED] Actions: ArgumentInjection
...
Query:
- https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/actions/ql/src/experimental/Security/CWE-088/ArgumentInjectionMedium.ql#L23
- https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/actions/ql/src/experimental/Security/CWE-088/ArgumentInjectionCritical.ql#L27
2025-08-15 11:10:14 +02:00
Tom Hvitved
7501e621d1
Shared: Skip non-CFG children in StandardTree
2025-08-15 10:30:47 +02:00
Michael B. Gale
ec605b2c95
Merge pull request #20229 from github/mbg/ci/fix/csharp-create-extractor-pack
...
C#: Replace input interpolation with environment variable
2025-08-15 09:19:41 +01:00
Paolo Tranquilli
71edc48c0e
Merge branch 'main' into redsun82/cargo-upgrade-2
2025-08-15 10:15:26 +02:00
Paolo Tranquilli
0924d795b4
Rust: accept test changes
2025-08-15 10:12:12 +02:00
Michael B. Gale
e1ffb323a0
C#: Replace input interpolation with environment variable
2025-08-15 09:00:28 +01:00
Sid Gawri
a8889ff056
add extensions for remote sources
2025-08-14 16:10:49 -04:00
Tom Hvitved
a07e357e67
Rust: Distinguish internal/external items in path resolution
2025-08-14 20:42:47 +02:00
Tom Hvitved
f1bff93bc5
Merge pull request #20203 from hvitved/rust/if-let-chain-test
...
Rust: Handle chained `let` expressions
2025-08-14 19:51:43 +02:00
Geoffrey White
f05d815af9
Rust: Update the security-severity tag.
2025-08-14 17:59:54 +01:00
Geoffrey White
bc0d327278
Rust: Add log injection sinks to stats.
2025-08-14 17:42:04 +01:00
Geoffrey White
9e4f59ce30
Rust: Accept consistency check failures.
2025-08-14 17:39:06 +01:00
Geoffrey White
4328ed8fcb
Rust: Update suite lists.
2025-08-14 17:39:04 +01:00
Geoffrey White
9836592278
Rust: Fix compilation errors in example code.
2025-08-14 17:39:02 +01:00
Paolo Tranquilli
6ca1c587f6
Merge branch 'main' into redsun82/cargo-upgrade-2
2025-08-14 17:55:17 +02:00
Anders Schack-Mulligen
b67394a450
Merge pull request #20183 from aschackmull/java/barrierguard-wrappers
...
Java: Enable BarrierGuard wrappers
2025-08-14 16:06:21 +02:00
copilot-swe-agent[bot]
7b1aa2307f
Address PR feedback: trim examples, remove duplicate CWE ref, autoformat
...
Co-authored-by: geoffw0 <40627776+geoffw0@users.noreply.github.com >
2025-08-14 13:15:03 +00:00
Geoffrey White
49265b6e7e
Rust: Update inline test annotations accordingly.
2025-08-14 13:49:41 +01:00
Tom Hvitved
5c0300cbdf
Merge pull request #20224 from hvitved/rust/remove-extractor-resolution-references
...
Rust: Remove references to `getResolvedPath` and `getExtendedCanonicalPath`
2025-08-14 14:45:33 +02:00
Tom Hvitved
d09645bc96
Add change note
2025-08-14 14:38:44 +02:00
Geoffrey White
2a19a1789d
Rust: Run test, accept .expected and Cargo.lock.
2025-08-14 13:17:50 +01:00
Geoffrey White
6951f585c8
Merge pull request #20226 from geoffw0/stdlib
...
Rust: Update StartswithCall to use getCanonicalPath
2025-08-14 13:04:30 +01:00
Geoffrey White
02b9229be7
Rust: Update StartswithCall.
2025-08-14 12:09:49 +01:00
Geoffrey White
6941e7fef1
Rust: Add tags to intermediate steps in the test.
2025-08-14 11:37:22 +01:00
Geoffrey White
ecf0e08f55
Rust: Add some more path injection test case variants.
2025-08-14 11:05:48 +01:00
Tom Hvitved
51fb2157ef
Rust: Remove references to getResolvedPath and getExtendedCanonicalPath
2025-08-14 11:31:42 +02:00
Jeroen Ketema
28f2157a8c
Go: Mention Go 1.25 as supported
2025-08-14 10:49:19 +02:00
Geoffrey White
1c186e2a59
Merge remote-tracking branch 'upstream/main' into pathbuf
2025-08-14 09:38:38 +01:00
Tom Hvitved
f63e55c1fd
Rust: Handle chained let expressions
2025-08-14 10:36:43 +02:00
Tom Hvitved
fd1d9401c0
Rust: Add tests for chained let expressions
2025-08-14 10:36:41 +02:00
Jeroen Ketema
72c89ec076
Merge pull request #20218 from MathiasVP/fix-guard-conditions-for-likely
...
C++: Improvements to `IRGuard`s
2025-08-14 10:24:48 +02:00
copilot-swe-agent[bot]
d72efc52f7
Final validation and cleanup of Rust log injection query
...
Co-authored-by: geoffw0 <40627776+geoffw0@users.noreply.github.com >
2025-08-13 18:12:36 +00:00
copilot-swe-agent[bot]
39ea50746f
Implement Rust log injection query and test infrastructure
...
Co-authored-by: geoffw0 <40627776+geoffw0@users.noreply.github.com >
2025-08-13 18:09:03 +00:00
copilot-swe-agent[bot]
d954b504b4
Initial plan
2025-08-13 17:56:12 +00:00
Jon Janego
603f0f2d55
Merge pull request #20219 from github/changedocs-2.22.3
...
Sitedocs for 2.22.3
2025-08-13 11:54:05 -05:00
Jon Janego
cc302c0d1d
Sitedocs for 2.22.3
2025-08-13 11:32:31 -05:00
Mathias Vorreiter Pedersen
39f5e33dea
C++: Accept more test changes.
2025-08-13 17:46:06 +02:00
Mathias Vorreiter Pedersen
9c3bb87b89
C++: Add change note.
2025-08-13 16:42:39 +02:00
Mathias Vorreiter Pedersen
9ee313ff0a
C++: Remove code that is now subsumed.
2025-08-13 16:29:49 +02:00
Mathias Vorreiter Pedersen
bf4a84ba8f
C++: Drive-by: Add forgotten disjuncts involving '__builtin_expect'.
2025-08-13 16:29:42 +02:00
Mathias Vorreiter Pedersen
e6cd27a992
C++: Skip non-Boolean instructions in the new inference step.
2025-08-13 16:20:21 +02:00
Mathias Vorreiter Pedersen
e67b6d6c9a
C++: Add another inference step.
2025-08-13 16:20:19 +02:00
Jeroen Ketema
ff288d799e
Merge pull request #20210 from github/jketema/go-1.25
...
Go: Update Go version to 1.25.0
2025-08-13 16:07:36 +02:00
Chuan-kai Lin
4c263c0535
Merge pull request #20047 from github/cklin/alert-filtering-qldoc
...
Shared: Overhaul the AlertFiltering QLDoc
2025-08-13 06:58:38 -07:00
Jeroen Ketema
4b215d50e2
Go: Update maxGoVersion in the autobuilder
2025-08-13 14:09:53 +02:00
Jeroen Ketema
5e2a5600a7
Update go_rules to the latest version
...
This version includes https://github.com/bazel-contrib/rules_go/pull/4397 which
addresses the build fialure we were seeing.
2025-08-13 13:40:14 +02:00
Jeroen Ketema
976ef99d60
Go: Request go1.25.0 toolchain
2025-08-13 13:39:35 +02:00
Jeroen Ketema
4baf115c3a
Go: Use Go 1.25.0 to build the Go extractor
2025-08-13 13:39:34 +02:00
Jeroen Ketema
d5f8289bcd
Go: Update Go version in tests to 1.25.0
2025-08-13 13:39:32 +02:00
Jeroen Ketema
653a99779e
Merge pull request #20216 from github/redsun82/rust-fix-bazel
...
Bazel: regenerate cargo vendored files
2025-08-13 13:36:20 +02:00
Tom Hvitved
dc6e76a0d7
Merge pull request #20182 from hvitved/rust/type-inference-tuple-types-follow-up
...
Rust: Unify type inference for tuple indexing expressions
2025-08-13 13:32:53 +02:00
Paolo Tranquilli
ea320c2a7b
Bazel: regenerate cargo vendored files
2025-08-13 13:30:01 +02:00
Geoffrey White
91eb4dad4e
Rust: Add a type inference test case resembling PathBuf.canonicalize.
2025-08-13 12:25:12 +01:00
Mathias Vorreiter Pedersen
a27135495c
C++: Add tests.
2025-08-13 12:54:23 +02:00
Jeroen Ketema
fcbd333144
Merge pull request #20215 from github/redsun82/rust-fix-bazel
...
Rust: regenerate bazel files
2025-08-13 12:40:03 +02:00
Paolo Tranquilli
c997b29c1e
Rust: regenerate bazel files
2025-08-13 11:51:11 +02:00
Geoffrey White
17b468239b
Merge pull request #20208 from geoffw0/sqlmodels
...
Rust: Fill some gaps in our database models.
2025-08-13 08:54:23 +01:00
Mathias Vorreiter Pedersen
caa935d011
C++: Update the tests for guard conditions so that the tests print more detailed location information.
2025-08-13 09:41:28 +02:00
Chuan-kai Lin
34d546ce82
Merge branch 'main' into cklin/alert-filtering-qldoc
2025-08-12 11:11:27 -07:00
Paolo Tranquilli
92e94695e7
Rust: add ForBinder case in ClosureExpr and accept test changes
2025-08-12 17:29:11 +02:00
Paolo Tranquilli
fbc81cbb18
Rust: fix compilation errors
2025-08-12 17:10:02 +02:00
Paolo Tranquilli
338572f256
Rust: run codegen again
2025-08-12 17:04:26 +02:00
Paolo Tranquilli
0a42b7aba3
Bazel: regenerate vendored cargo dependencies
2025-08-12 16:51:13 +02:00
Paolo Tranquilli
6ad8af0ea9
Cargo: upgrade dependencies
2025-08-12 16:46:29 +02:00
Chuan-kai Lin
b20521b648
Shared: Overhaul the AlertFiltering QLDoc
...
This commit strengthens the contract for the restrictAlertsTo and the
restrictAlertsToExactLocation extensible predicates.
- restrictAlertsTo is now documented to match any alert location that
intersects with a specified line range. (Previously an alert location
matches only when its first line is in a specified line range.)
- restrictAlertsToExactLocation is now documented to match any alert
location that wholly contains a specific character range. (Previously
an alert location matchis only when it is exactly the same as a
specified character range.)
It also contains misc wording changes for clarity.
2025-08-12 07:43:46 -07:00
Paolo Tranquilli
a007230f21
Merge branch 'main' into redsun82/cargo-upgrade-2
2025-08-12 16:42:23 +02:00
Tom Hvitved
0a67902f5d
Merge pull request #20101 from mschwager/main
...
Fix #19294 , Ruby NetHttpRequest improvements
2025-08-12 14:42:32 +02:00
Paolo Tranquilli
2b92b83868
Merge pull request #20207 from github/redsun82/rust-toolchain
...
Cargo: align rust toolchain version with internal repository
2025-08-12 11:52:37 +02:00
Tom Hvitved
454ab4db8c
Rust: Unify type inference for tuple indexing expressions
2025-08-12 10:32:23 +02:00
Tom Hvitved
b2343f94c1
Rust: Add another type inference test
2025-08-12 10:32:21 +02:00
Tom Hvitved
8436f00b23
Merge pull request #20179 from hvitved/rust/type-inference-certain-follow-up
...
Rust: Generalize certain type inference logic
2025-08-12 10:30:02 +02:00
Paolo Tranquilli
0dfacf4be8
Rust: add test rust-toolchain.toml after fixing .gitignore
2025-08-12 10:06:32 +02:00
Paolo Tranquilli
565d607580
Merge branch 'main' into redsun82/rust-toolchain
2025-08-12 09:28:46 +02:00
Andrew Eisenberg
f5fbef9b83
Merge pull request #20196 from github/aeisenberg/indentation-fix
...
Fix indentation in the "Supported languages and frameworks" page
2025-08-11 13:58:46 -07:00
Andrew Eisenberg
cb541b52ed
Fix indentation in the "Supported languages and frameworks" page
...
I'm not sure why this works, but I see it is correct in my
dev tools page.
2025-08-11 13:44:30 -07:00
Geoffrey White
af20d335c8
Rust: Accept consistency test changes.
2025-08-11 20:25:41 +01:00
Geoffrey White
993f00b658
Rust: Change note.
2025-08-11 19:32:13 +01:00
Geoffrey White
398d2ac930
Rust: Fix a couple more gaps.
2025-08-11 19:24:54 +01:00
Geoffrey White
0544ea8728
Rust: Add postgres sources.
2025-08-11 18:43:11 +01:00
Geoffrey White
4bbffc56a8
Rust: Expand tokio-postgres sources.
2025-08-11 18:42:44 +01:00
Geoffrey White
35681d0617
Rust: Add SQLx sources.
2025-08-11 18:05:58 +01:00
Geoffrey White
5056ebf186
Rust: Fix typo in one of the models.
2025-08-11 18:05:42 +01:00
Geoffrey White
17741af88e
Rust: Fill out a few gaps in the models.
2025-08-11 17:45:51 +01:00
Geoffrey White
b31186451f
Rust: Test more variants of rusqlite usage.
2025-08-11 17:41:28 +01:00
Geoffrey White
31353e7efc
Rust: Test more variants of postgres usage.
2025-08-11 17:41:24 +01:00
Paolo Tranquilli
911d6f07b6
Shared tree-sitter extractor: run clippy
2025-08-11 17:04:22 +02:00
Paolo Tranquilli
45c0c46c9d
Cargo: align rust toolchain version with internal repository
...
Also:
* remove new warnings raised by the rust toolchain
* run new formatting and linting
* update the rust toolchain used by `cargo`
While we keep `bazel` builds using the same toolchain as internally
(now a nightly one), I opted for using a stable toolchain for `cargo`.
The nightly toolchain is only required internally for build reasons, we
should keep not using any unstable rust features in our sources.
2025-08-11 16:45:47 +02:00
Napalys Klicius
6e38087d20
Merge pull request #20204 from p-/p--actions-untrusted-checkout-doc
...
Actions: clarify doc for untrusted checkout
2025-08-11 14:42:12 +02:00
Matt Schwager
357964e789
Remove duplicate lines and format query
2025-08-11 08:11:36 -04:00
Napalys Klicius
ff648fcb27
Java: Removed redundant cast to Stmt
2025-08-11 13:43:36 +02:00
Napalys Klicius
f41cb67a69
Java: Promote java/mocking-all-non-private-methods-means-unit-test-is-too-big to quality status
2025-08-11 13:43:36 +02:00
Napalys Klicius
b56f8cca2d
Java: Fix QLDoc style compliance and qhelp for mocking query
2025-08-11 13:43:36 +02:00
Napalys Klicius
53ccc56959
Java: exclude single-method classes from mocking
2025-08-11 13:43:36 +02:00
Napalys Klicius
a9e9a62439
Java: add single-method class test case for mocking rule
...
Classes with only one public method should be compliant when mocked.
2025-08-11 13:43:36 +02:00
Napalys Klicius
22caa584ad
Java: Add inline test expectations for MockingAllNonPrivateMethodsMeansUnitTestIsTooBig.qlref
2025-08-11 13:43:36 +02:00
Napalys Klicius
50c7160819
Java: port java/mocking-all-non-private-methods-means-unit-test-is-too-big query
2025-08-11 13:43:36 +02:00
Tom Hvitved
9905cd6436
Merge pull request #20192 from hvitved/rust/path-resolution-remove-source-lib-dedup
...
Rust: Remove source/library deduplication in path resolution
2025-08-11 13:40:34 +02:00
Geoffrey White
5fc8db8244
Merge pull request #20137 from geoffw0/cleartextstorage
...
Rust: New Query rust/cleartext-storage-database
2025-08-11 12:33:24 +01:00
Geoffrey White
3382d06ede
Rust: Remove newline.
2025-08-11 11:51:21 +01:00
Peter Stöckli
98d312fda1
Actions: clarify doc for untrusted checkout
2025-08-11 09:56:53 +00:00
Jeroen Ketema
f9f99a043c
Merge pull request #20126 from MathiasVP/fix-missing-global-flow
...
C++: Fix missing global variable flow
2025-08-11 11:54:35 +02:00
Mathias Vorreiter Pedersen
c8eb1cf826
C++: Add change note.
2025-08-11 11:28:53 +02:00
Mathias Vorreiter Pedersen
851cb04d36
Merge pull request #20193 from MathiasVP/fix-fp-in-overflow-buffer
...
C++: Fix FP in `cpp/overflow-buffer`
2025-08-11 10:45:06 +02:00
Geoffrey White
a1bc865691
Merge pull request #20185 from geoffw0/typeconsistencycounts
...
Rust: Add rust/diagnostics/type-inference-consistency-counts.
2025-08-11 09:42:19 +01:00
Geoffrey White
04014d9bf0
Merge pull request #20150 from geoffw0/ctorinit
...
Rust: Update BadCtorInitialization.ql to use getCanonicalPath.
2025-08-11 09:41:16 +01:00
Mathias Vorreiter Pedersen
ccfcd90f08
Merge pull request #20156 from MathiasVP/value-numbering-for-noop-casts
...
C++: Value numbering for casts that only modify specifiers
2025-08-11 10:33:58 +02:00
Mathias Vorreiter Pedersen
56aacb1e55
Merge pull request #20145 from MathiasVP/fix-type-error-in-ir
...
C++: Fix missing `bool` -> `int` conversions in C code
2025-08-11 10:26:54 +02:00
Tom Hvitved
874f951727
Merge pull request #20172 from hvitved/shared/concepts-final-aliases
...
Shared: Use `final` aliases in `ConcentsShared.qll`
2025-08-11 10:14:55 +02:00
Napalys Klicius
f6aad96504
Java: Update docs and promote to quality java/jvm-exit
2025-08-11 09:24:01 +02:00
Napalys Klicius
4df613ce37
Java: Improved java/jvm-exit query to remove FP's.
2025-08-11 09:24:01 +02:00
Napalys Klicius
d41a5e3a25
Java: Added basic test cases for java/jvm-exit
2025-08-11 09:24:01 +02:00
Paolo Tranquilli
e02a2d8eae
Merge pull request #20189 from github/redsun82/java-17-in-gradle-no-wrapper-tests
...
Java: use java 17 in `no-wrapper` tests
2025-08-08 17:47:31 +02:00
Mathias Vorreiter Pedersen
b00107f927
C++: Add change note.
2025-08-08 15:23:40 +01:00
Mathias Vorreiter Pedersen
0c9d14f417
C++: Accept test changes.
2025-08-08 15:14:09 +01:00
Mathias Vorreiter Pedersen
d76ce4fb69
C++: Also handle reference types when computing 'trueSize'.
2025-08-08 15:12:45 +01:00
Mathias Vorreiter Pedersen
26be9839df
C++: Add FP.
2025-08-08 15:10:40 +01:00
Tom Hvitved
c043e30d46
Rust: Remove source/library deduplication in path resolution
2025-08-08 13:28:18 +02:00
Anders Schack-Mulligen
492a5ca087
Java: Add some more exception edges to the CFG to facilitate guard wrappers.
2025-08-08 10:40:07 +02:00
Anders Schack-Mulligen
e94f018e14
Kotlin: Support kotlin Throws annotations.
2025-08-08 10:28:58 +02:00
Paolo Tranquilli
72843b56e8
Java: use java 17 in no-wrapper tests
...
Gradle 9 requires Java 17.
2025-08-08 08:58:56 +02:00
Geoffrey White
1965fdb158
Rust: Update consistency .expected.
2025-08-07 18:41:47 +01:00
Chuan-kai Lin
72563ec5a4
Merge pull request #20080 from d10c/d10c/diff-informed-phase-3-ruby
...
Ruby: Diff-informed queries: phase 3 (non-trivial locations)
2025-08-07 07:37:40 -07:00
Geoffrey White
38f4f8d1d2
Rust: Update suite lists.
2025-08-07 15:28:01 +01:00
Geoffrey White
c5f83c4423
Rust: Add rust/diagnostics/type-inference-consistency-counts.
2025-08-07 14:43:48 +01:00
Anders Schack-Mulligen
3b3f4bc782
Java/Guards: Remove unused.
2025-08-07 15:43:00 +02:00
Anders Schack-Mulligen
b19f15b3aa
Java: Simplify ArithmeticCommon using BarrierGuards.
2025-08-07 15:43:00 +02:00
Anders Schack-Mulligen
9957cbe656
Java/Guards: Improve BarrierGuards to include validate(x = ...) checks.
2025-08-07 15:42:59 +02:00
Anders Schack-Mulligen
a04ff18ba4
Java: Enable validation wrappers in BarrierGuards.
2025-08-07 15:42:59 +02:00
Anders Schack-Mulligen
3674966946
Merge pull request #20121 from aschackmull/guards/wrapperguard
...
Guards: Improve support for wrapped guards
2025-08-07 15:41:04 +02:00
Anders Schack-Mulligen
2909def9b6
Guards: Rename predicate.
2025-08-07 14:51:50 +02:00
Anders Schack-Mulligen
b51c0e7cb6
Java: Add change note.
2025-08-07 14:51:50 +02:00
Anders Schack-Mulligen
d9cfe14729
Java: Accept qltest change.
2025-08-07 14:51:49 +02:00
Anders Schack-Mulligen
a40ae3a11a
Guards: Slight join-order improvement.
2025-08-07 14:51:49 +02:00
Anders Schack-Mulligen
ec513ead0d
Guards: Add support for extending BarrierGuards with wrapped invocations.
2025-08-07 14:51:48 +02:00
Anders Schack-Mulligen
f90b6ab005
Guards: Add support for wrappers that may throw exceptions.
2025-08-07 14:51:48 +02:00
Anders Schack-Mulligen
b156bd5ce2
Guards: Rename predicate.
2025-08-07 14:51:48 +02:00
Anders Schack-Mulligen
0c31a80f3c
Guards: Generalise wrapper guards.
2025-08-07 14:51:47 +02:00
Anders Schack-Mulligen
6e52df1639
Guards: Rename module.
2025-08-07 14:51:47 +02:00
Anders Schack-Mulligen
1bdaa2420d
Java: Simplify Guards instantiation a bit.
2025-08-07 14:51:46 +02:00
Anders Schack-Mulligen
3aaf48de11
Guards: Remove CustomGuard nesting in Guards instantiation.
2025-08-07 14:51:46 +02:00
Tom Hvitved
e172e74357
Rust: Remove comment from type inference test
2025-08-07 10:37:19 +02:00
Tom Hvitved
1be542ec56
Rust: Generalize certain type inference logic
2025-08-07 10:37:17 +02:00
Geoffrey White
aafdf1a279
Rust: Update StreamCipherInit to use getCanonicalPath.
2025-08-07 09:27:51 +01:00
Tom Hvitved
dfe4401f13
Merge pull request #20169 from hvitved/javascript/legacy-summary-steps
...
JS: Generate legacy flow steps for all flow summaries
2025-08-06 18:52:39 +02:00
Geoffrey White
e991aa3253
Merge branch 'main' into cleartextstorage
2025-08-06 15:49:44 +01:00
Tom Hvitved
ed3a33fdc6
Merge pull request #20177 from hvitved/rust/type-inference-where
...
Rust: Improve handling of where clauses in type inference and path resolution
2025-08-06 15:52:56 +02:00
Geoffrey White
d215ea16da
Merge pull request #19802 from geoffw0/sqlx
...
Rust: Update SqlxQuery, SqlxExecute to use getCanonicalPath
2025-08-06 14:52:03 +01:00
Simon Friis Vindum
b50a76693a
Rust: Handle multiple type bounds for the same type parameter in getTypeBound
2025-08-06 11:15:28 +02:00
Simon Friis Vindum
0cfb22ff3f
Rust: Add example with multiple where clause items for the same type parameter
2025-08-06 11:15:24 +02:00
Simon Friis Vindum
b302f3f98f
Rust: Improve handling of where clauses in type inference and path resolution
2025-08-06 11:08:18 +02:00
Simon Friis Vindum
766083290c
Rust: Add tests with where clause
2025-08-06 11:08:13 +02:00
Tom Hvitved
d201ce1705
Merge pull request #20155 from paldepind/rust/type-inference-certain
...
Rust: Add predicate for certain type information
2025-08-06 10:55:34 +02:00
Tom Hvitved
1f15fc8a35
Merge pull request #20173 from hvitved/rust/type-mention-remove-restriction
...
Rust: Remove restriction in `PathTypeMention`
2025-08-06 10:13:23 +02:00
Tom Hvitved
eb3c054b0f
JS: Generate legacy flow steps for all flow summaries
2025-08-06 09:38:49 +02:00
Geoffrey White
83ec1d0254
Rust: Add the new query sinks to the Stats.qll import, so that they're reported correctly.
2025-08-05 20:20:40 +01:00
Geoffrey White
0d4f8765a6
Merge pull request #20167 from geoffw0/mdlcleanup
...
Rust: Clean up some odds and ends
2025-08-05 19:25:46 +01:00
Tom Hvitved
a396f9345e
Rust: Remove restriction in PathTypeMention
2025-08-05 15:05:43 +02:00
Tom Hvitved
11dcd90435
Shared: Use final aliases in ConcentsShared.qll
2025-08-05 14:53:52 +02:00
Anders Schack-Mulligen
1823355fae
Merge pull request #20171 from aschackmull/java/nullness-fn
...
Java: document nullness false negative as qltest
2025-08-05 14:17:09 +02:00
Anders Schack-Mulligen
94274288d3
Merge pull request #20127 from aschackmull/java/joinorder3
...
Java: Improve a couple of join-orders
2025-08-05 14:15:42 +02:00
Anders Schack-Mulligen
c59d20a668
Merge pull request #20163 from aschackmull/java/postdom-normal
...
Java: Assume normal termination in post-dominance.
2025-08-05 14:01:04 +02:00
Anders Schack-Mulligen
23aac0ac51
Java: document nullness false negative as qltest
2025-08-05 13:49:51 +02:00
Geoffrey White
c8e9ed3eda
Merge branch 'main' into cleartextstorage
2025-08-05 12:44:55 +01:00
Tom Hvitved
6e90823bd9
Merge pull request #20158 from hvitved/csharp/has-callable-constructor
...
C#: Include constructors in `ValueOrRefType.hasCallable`
2025-08-05 12:59:29 +02:00
Paolo Tranquilli
27650267a1
Merge branch 'main' into redsun82/cargo-upgrade-2
2025-08-05 11:18:56 +02:00
Anders Schack-Mulligen
273429d14a
Java: Accept qltest output
2025-08-05 10:32:53 +02:00
Tom Hvitved
b426d84e1c
Merge pull request #20164 from hvitved/rust/fix-bad-join
...
Rust: Fix bad join
2025-08-05 09:55:51 +02:00
Geoffrey White
dcda6db88b
Rust: Lets not try to maintain this list.
2025-08-04 19:51:34 +01:00
Geoffrey White
0a49b65887
Rust: Make the rust/cleartext-transmission alert message more consistent with similar queries.
2025-08-04 19:47:33 +01:00
Chuan-kai Lin
e2b8d7b1ea
Merge pull request #20166 from github/post-release-prep/codeql-cli-2.22.3
...
Post-release preparation for codeql-cli-2.22.3
2025-08-04 11:38:38 -07:00
Geoffrey White
6c024a5f9e
Rust: Remove unnecessary pattern matching in cleartext logging query sinks (probably inherited from another query or language where it is used).
2025-08-04 19:28:40 +01:00
Geoffrey White
eab7481b97
Rust: Accept CWE-312 consistency check failures.
2025-08-04 18:26:09 +01:00
github-actions[bot]
fb4b0aac53
Post-release preparation for codeql-cli-2.22.3
2025-08-04 17:18:08 +00:00
Chuan-kai Lin
da3e5479df
Merge pull request #20165 from github/release-prep/2.22.3
...
Release preparation for version 2.22.3
2025-08-04 09:19:35 -07:00
Geoffrey White
def655f994
Rust: Accept changes to the CWE-089 test (there are some duplicate results that an existing unmerged PR will address).
2025-08-04 17:15:48 +01:00
Chuan-kai Lin
4df1c12876
Minor CHANGELOG updates
2025-08-04 09:09:25 -07:00
Geoffrey White
b60faadf70
Rust: Change note.
2025-08-04 17:07:58 +01:00
github-actions[bot]
fd82aeb1f8
Release preparation for version 2.22.3
2025-08-04 15:47:57 +00:00
Geoffrey White
836f797def
Rust: Accept suite changes.
2025-08-04 16:43:21 +01:00
Tom Hvitved
651e1624a6
Rust: Fix bad join
...
```
Evaluated relational algebra for predicate _Crate::Crate.getSourceFile/0#dispred#e7adf9d7_Crate::Generated::Crate.getName/0#dispred#f4d3b3bf_Pa__#join_rhs@5a04a7t0 with tuple counts:
34471980 ~0% {3} r1 = JOIN `PathResolution::isSourceFile/1#803de032` WITH `Crate::Crate.getSourceFile/0#dispred#e7adf9d7` CARTESIAN PRODUCT OUTPUT Rhs.0, Lhs.0, Rhs.1
34471980 ~37% {4} | JOIN WITH `Crate::Generated::Crate.getName/0#dispred#f4d3b3bf` ON FIRST 1 OUTPUT Lhs.1, Lhs.2, Rhs.1, _
{3} | REWRITE WITH NOT [Tmp.3 := "std", TEST InOut.2 != Tmp.3, Tmp.3 := "core", TEST InOut.2 != Tmp.3] KEEPING 3
93420 ~91% {3} | SCAN OUTPUT In.1, _, In.0
93420 ~87% {3} | REWRITE WITH Out.1 := "prelude"
return r1
```
2025-08-04 17:33:26 +02:00
Tom Hvitved
65bf76e3ed
Merge pull request #20161 from hvitved/rust/fix-bad-joins
...
Rust: Fix two bad joins introduced by magic
2025-08-04 17:32:54 +02:00
Geoffrey White
a86479eba9
Rust: Accept consistency check failures.
2025-08-04 16:26:41 +01:00
Geoffrey White
8b5603cf71
Merge pull request #20160 from geoffw0/exec
...
Rust: Add type inference test cases resembling missing call targets in SQLx.
2025-08-04 16:03:12 +01:00
Geoffrey White
e368ee4b1b
Rust: Accept that sql-injection sinks are sinks for this query, and that the existing sinks created for this query are also new sql-injection sinks.
2025-08-04 15:23:04 +01:00
Geoffrey White
989b48d576
Rust: Add tests for rusqlite.
2025-08-04 15:00:06 +01:00
Anders Schack-Mulligen
0a27a8c255
Java: Assume normal termination in post-dominance.
2025-08-04 15:08:26 +02:00
Geoffrey White
f1cb1a3f5a
Rust: Add computed security-severity tag.
2025-08-04 13:41:16 +01:00
Geoffrey White
6925d4e564
Merge pull request #20129 from codeqlhelper/main
...
C++: Static variables are initialized to zero or null by compiler
2025-08-04 13:23:45 +01:00
Tom Hvitved
125a4b9b10
Rust: Fix two bad joins introduced by magic
...
```
Evaluated relational algebra for predicate TypeInference::closureParameterPath/2#9d0bf423#bbf@ba08cc1s with tuple counts:
565067 ~172652% {2} r1 = JOIN `Callable::Callable.getParam/1#dispred#ce0254b3_01#count_range` WITH `Callable::Generated::Callable.getNumberOfParams/0#dispred#abb45996` ON FIRST 1 OUTPUT Rhs.1, Lhs.1
24684 ~11784% {3} | JOIN WITH Type::TTupleTypeParameter#5ca17706 ON FIRST 2 OUTPUT Rhs.2, Lhs.1, Lhs.0
2970 ~1391% {3} | JOIN WITH `TypeInference::TypePath::singleton/1#ee45de3b` ON FIRST 1 OUTPUT Lhs.1, Lhs.2, Rhs.1
664 ~242% {4} | JOIN WITH `Stdlib::FnOnceTrait.getTypeParam/0#dispred#93f20bbc` CARTESIAN PRODUCT OUTPUT Rhs.1, Lhs.0, Lhs.1, Lhs.2
303 ~49% {4} | JOIN WITH Type::TDynTraitTypeParameter#e16268df ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3
198 ~0% {8} | JOIN WITH `TypeInference::TypePath::singleton/1#ee45de3b` ON FIRST 1 OUTPUT Lhs.1, Lhs.2, _, _, Rhs.1, Lhs.3, _, _
{4} | REWRITE WITH Out.2 := (In.4 ++ In.5), Tmp.3 := (In.4 ++ In.5), Tmp.6 := "[0-9]+", Tmp.7 := "", Out.3 := regexpReplaceAll(Tmp.3,Tmp.6,Tmp.7) KEEPING 4
198 ~0% {6} | SCAN OUTPUT In.0, In.1, In.2, _, In.3, _
{4} | REWRITE WITH Out.3 := length(In.4), Tmp.5 := 10, TEST Out.3 <= Tmp.5 KEEPING 4
198 ~0% {3} | SCAN OUTPUT In.1, In.0, In.2
877984 ~1444714% {1} r2 = SCAN `CallExprBase::CallExprBase.getArg/1#dispred#d775f13d` OUTPUT In.1
299888 ~83707% {3} | JOIN WITH Type::TTupleTypeParameter#5ca17706_102#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.0, Rhs.2
515462762 ~59140% {4} | JOIN WITH `CallExprBase::Generated::CallExprBase.getNumberOfArgs/0#dispred#0975fe12_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.0, Lhs.2
9429188 ~25728933% {3} | JOIN WITH TypeInference::InvokedClosureExpr#24e5dacb_1#join_rhs ON FIRST 1 OUTPUT Lhs.3, Lhs.1, Lhs.2
53669 ~142315% {3} | JOIN WITH `TypeInference::TypePath::singleton/1#ee45de3b` ON FIRST 1 OUTPUT Lhs.1, Lhs.2, Rhs.1
4003 ~10522% {4} | JOIN WITH `Stdlib::FnOnceTrait.getTypeParam/0#dispred#93f20bbc` CARTESIAN PRODUCT OUTPUT Rhs.1, Lhs.0, Lhs.1, Lhs.2
370 ~910% {4} | JOIN WITH Type::TDynTraitTypeParameter#e16268df ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3
148 ~293% {8} | JOIN WITH `TypeInference::TypePath::singleton/1#ee45de3b` ON FIRST 1 OUTPUT Lhs.1, Lhs.2, _, _, Rhs.1, Lhs.3, _, _
{4} | REWRITE WITH Out.2 := (In.4 ++ In.5), Tmp.3 := (In.4 ++ In.5), Tmp.6 := "[0-9]+", Tmp.7 := "", Out.3 := regexpReplaceAll(Tmp.3,Tmp.6,Tmp.7) KEEPING 4
148 ~316% {6} | SCAN OUTPUT In.0, In.1, In.2, _, In.3, _
{4} | REWRITE WITH Out.3 := length(In.4), Tmp.5 := 10, TEST Out.3 <= Tmp.5 KEEPING 4
148 ~293% {3} | SCAN OUTPUT In.1, In.0, In.2
346 ~75% {3} r3 = r1 UNION r2
return r3
```
and
```
Evaluated relational algebra for predicate TypeInference::fnParameterPath/2#4dea2880#bbf@d56000vi with tuple counts:
1 ~0% {1} r1 = SCAN `Stdlib::FnOnceTrait.getTypeParam/0#dispred#93f20bbc` OUTPUT In.1
1 ~0% {1} | JOIN WITH Type::TTypeParamTypeParameter#868c69a5 ON FIRST 1 OUTPUT Rhs.1
1 ~0% {1} | JOIN WITH `TypeInference::TypePath::singleton/1#ee45de3b` ON FIRST 1 OUTPUT Rhs.1
877984 ~1350201% {2} | JOIN WITH `ArgList::Generated::ArgList.getArg/1#dispred#b07adc80` CARTESIAN PRODUCT OUTPUT Rhs.1, Lhs.0
321252 ~90755% {4} | JOIN WITH Type::TTupleTypeParameter#5ca17706_102#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.0, Rhs.2
553043191 ~65412% {5} | JOIN WITH `CallExprBase::Generated::CallExprBase.getNumberOfArgs/0#dispred#0975fe12_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.0, Lhs.3
10089088 ~26772053% {4} | JOIN WITH TypeInference::InvokedClosureExpr#24e5dacb_1#join_rhs ON FIRST 1 OUTPUT Lhs.4, Lhs.1, Lhs.2, Lhs.3
57729 ~157423% {8} | JOIN WITH `TypeInference::TypePath::singleton/1#ee45de3b` ON FIRST 1 OUTPUT Lhs.2, Lhs.3, _, _, Lhs.1, Rhs.1, _, _
{4} | REWRITE WITH Out.2 := (In.4 ++ In.5), Tmp.3 := (In.4 ++ In.5), Tmp.6 := "[0-9]+", Tmp.7 := "", Out.3 := regexpReplaceAll(Tmp.3,Tmp.6,Tmp.7) KEEPING 4
57729 ~157423% {6} | SCAN OUTPUT In.0, In.1, In.2, _, In.3, _
{4} | REWRITE WITH Out.3 := length(In.4), Tmp.5 := 10, TEST Out.3 <= Tmp.5 KEEPING 4
57729 ~157423% {3} | SCAN OUTPUT In.1, In.0, In.2
return r1
```
2025-08-04 14:22:50 +02:00
Simon Friis Vindum
3ba285c298
Rust: Implement certain type information for annotation and simple calls
2025-08-04 14:06:38 +02:00
Simon Friis Vindum
c3349bbb04
Rust: Add type inference example with cycle blowup
2025-08-04 14:06:37 +02:00
Tom Hvitved
361ef0f50d
C#: Include constructors in ValueOrRefType.hasCallable
2025-08-04 13:51:17 +02:00
Geoffrey White
2ec6dafd18
Rust: Add a type inference test case resembling missing call targets in SQLx.
2025-08-04 10:21:59 +01:00
Simon Friis Vindum
9aebc58214
Merge pull request #20147 from paldepind/rust/type-limit-metric
...
Rust: Add metric for DCA and debug predicates for type that reach the length limit
2025-08-04 07:53:14 +02:00
Mathias Vorreiter Pedersen
65b1b7f63e
C++: Add change note.
2025-08-03 12:17:37 +01:00
Mathias Vorreiter Pedersen
851c498b37
C++: Accept test changes. This is a FP that's been present since we put the IR into production in #2851 .
2025-08-03 12:17:36 +01:00
Mathias Vorreiter Pedersen
b807ee4718
C++: Accept test changes.
2025-08-03 12:17:34 +01:00
Mathias Vorreiter Pedersen
c726285cac
C++: Sync identical files.
2025-08-03 12:17:31 +01:00
Mathias Vorreiter Pedersen
0d9e298250
C++: Specifier-only converting instructions preserve GVNs.
2025-08-03 12:17:19 +01:00
Mathias Vorreiter Pedersen
fca49dde92
C++: Accept test changes.
2025-08-02 16:43:19 +01:00
Mathias Vorreiter Pedersen
73e4bfdd3e
C++: Fix missing flow by also generating final global uses for functions that have a post-update node for the global variable.
2025-08-02 16:41:23 +01:00
Mathias Vorreiter Pedersen
34c1ec73c2
C++: Add tests with missing flow through globals.
2025-08-02 16:38:32 +01:00
Mathias Vorreiter Pedersen
1aa8adb472
C++: Add test.
2025-08-02 13:00:26 +01:00
Mathias Vorreiter Pedersen
14345a8288
C++: Accept test changes.
2025-08-01 16:09:44 +01:00
Mathias Vorreiter Pedersen
7561190bd1
C++: Fix type errors in C code.
2025-08-01 16:09:42 +01:00
Napalys Klicius
881ea7631e
Added change note
2025-08-01 14:34:25 +02:00
Joe Farebrother
5e09c1d3d3
Merge remote-tracking branch 'origin/python-qual-subclass-shadow' into python-qual-subclass-shadow
2025-08-01 12:39:30 +01:00
Joe Farebrother
bc60914ed7
Update test output
2025-08-01 12:37:51 +01:00
Joe Farebrother
d8083add3e
Doc updates
2025-08-01 12:35:01 +01:00
Napalys Klicius
ae4077db72
add taint flow for arg/command-line-args with custom argv option
2025-08-01 13:34:08 +02:00
Napalys Klicius
d6508f34b6
Add taint flow for Commander.js direct property access and action callbacks
2025-08-01 13:24:19 +02:00
Napalys Klicius
39170f327c
Added couple more test cases for commander js
2025-08-01 13:14:39 +02:00
Napalys Klicius
6b4e34dd39
Added a step from parse to opts for commander js
2025-08-01 13:12:43 +02:00
Mathias Vorreiter Pedersen
1fab97b765
Merge pull request #20149 from MathiasVP/expose-definition-from-dataflow-ssa
...
C++: Expose SSA definitions from dataflow
2025-08-01 12:04:04 +01:00
Mathias Vorreiter Pedersen
0e9286dd34
C++: Fix QLDoc.
2025-08-01 11:37:12 +01:00
Mathias Vorreiter Pedersen
b70836e241
C++: Modify the API to not expose dataflow nodes.
2025-08-01 11:34:49 +01:00
Mathias Vorreiter Pedersen
33d05984c8
C++: Stick the exposed SSA classes into a public SSA module.
2025-08-01 11:34:47 +01:00
Mathias Vorreiter Pedersen
32e6d0934e
C++: Drive-by fix: These files imported both the public dataflow files and the internal ones. Let's only import the internal ones.
2025-08-01 11:34:45 +01:00
Napalys Klicius
e980798ede
Added step through yargs/yargs constructor and chained methods.
2025-08-01 12:01:30 +02:00
Mathias Vorreiter Pedersen
7ede3aa516
C++: Fix imports.
2025-08-01 10:35:34 +01:00
Mathias Vorreiter Pedersen
0d91622d18
C++: Rename SsaInternals to SsaImpl and SsaInternalsCommon to SsaImplCommon.
2025-08-01 10:34:14 +01:00
Napalys Klicius
e8eb9be3f6
Add command injection tests for CLI argument parsing libraries
2025-08-01 11:02:59 +02:00
Geoffrey White
01d24c4f83
Merge branch 'main' into sqlx
2025-07-31 16:02:36 +01:00
Mathias Vorreiter Pedersen
18289702ca
C++: Add an example of double negation to the IR tests.
2025-07-31 15:49:05 +01:00
codeqlhelper
4323e6853f
Update cpp/ql/src/change-notes/2025-07-27-avoid-reporting-static-global-variable.md
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2025-07-31 21:17:29 +08:00
Mathias Vorreiter Pedersen
c8f4b287d1
C++: Add a comment on the old SSA library.
2025-07-31 14:07:38 +01:00
Mathias Vorreiter Pedersen
7e93b99ff9
C++: Add change note.
2025-07-31 13:57:19 +01:00
Mathias Vorreiter Pedersen
8691075aae
Update cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/SsaInternals.qll
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-07-31 13:52:21 +01:00
Mathias Vorreiter Pedersen
5a91aa2105
C++: Expose SSA definitions from dataflow.
2025-07-31 13:45:03 +01:00
Geoffrey White
58680c94bc
Rust: Repair BadCtorInitialization.ql's StdCall using getCanonicalPath.
2025-07-31 13:28:56 +01:00
Simon Friis Vindum
abc58ac8b3
Rust: Add metric and debug predicates for type that reach the length limit
2025-07-31 14:20:32 +02:00
Mathias Vorreiter Pedersen
1dae787605
C++: Drive-by fix suggested by Schack. This now matches the predicate in C#.
2025-07-31 12:58:05 +01:00
Napalys Klicius
3f9061abdb
Added change note
2025-07-31 13:20:38 +02:00
Napalys Klicius
d28a6e6352
Added new test cases for regexp injection with enviromental variable threat model enabled
2025-07-31 13:20:37 +02:00
Napalys Klicius
8583257574
Created new folder for test with threat models disabled
2025-07-31 13:20:30 +02:00
Ian Lynagh
492e27b8e8
Merge pull request #20141 from igfoo/igfoo/kotlin-2.2.20-beta2
...
Kotlin: Support 2.2.20-beta2
2025-07-31 12:00:17 +01:00
Napalys Klicius
021aa13ee2
Added change note
2025-07-31 12:45:34 +02:00
Napalys Klicius
5f538209c9
Exlucde environmental variables from default detection in regexp injection
2025-07-31 12:09:30 +02:00
Napalys Klicius
791a7e242e
Updated qhelp for cors permissive configuration
2025-07-31 11:31:10 +02:00
Napalys Klicius
2baca58b27
Removed deprecations from cors as it was moved out experimental
2025-07-31 11:08:22 +02:00
Napalys Klicius
fd4233e30e
Moved apollo modeling to MaD
2025-07-31 10:58:38 +02:00
Joe Farebrother
79d1deb28d
Update python/ql/src/Classes/SubclassShadowing/SubclassShadowing.ql
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-07-31 06:05:48 +01:00
Joe Farebrother
71a6b22815
Update python/ql/src/Classes/SubclassShadowing/examples/SubclassShadowingBad.py
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-07-31 06:05:25 +01:00
Geoffrey White
42ced8aa3d
Rust: Add examples to tests.
2025-07-30 17:51:32 +01:00
Geoffrey White
b6e60e4087
Rust: Address small bugs in the test.
2025-07-30 17:51:31 +01:00
Geoffrey White
215fe7d0b3
Rust: Clean up the alert message.
2025-07-30 17:51:30 +01:00
Geoffrey White
e585e677c8
Rust: Add qhelp and examples.
2025-07-30 17:51:28 +01:00
Joe Farebrother
1efc09bbba
Update integration tests
2025-07-30 15:54:39 +01:00
Joe Farebrother
63577f0cca
Add extra example
2025-07-30 15:52:26 +01:00
Joe Farebrother
2516f9452e
Move to subfolder
2025-07-30 15:17:19 +01:00
Ian Lynagh
e589019e04
Kotlin: Use 2.2.20-Beta2 rather than 2.2.20-Beta1
2025-07-30 14:14:14 +01:00
Ian Lynagh
4ea6133042
Kotlin: Add 2.2.20-Beta2 jars
2025-07-30 14:13:02 +01:00
Ian Lynagh
c78818d7dd
Kotlin: Remove *2.2.20-Beta1* jars
2025-07-30 14:12:43 +01:00
Joe Farebrother
34317d2d4a
Update documentation
2025-07-30 13:56:28 +01:00
Joe Farebrother
796a6060b2
Exclude setters and update tests
2025-07-30 13:56:05 +01:00
Joe Farebrother
af94ebe1fc
Modernize attribute shadows subclass, Add cases for properties
2025-07-30 13:55:11 +01:00
Simon Friis Vindum
3bc1d47738
Merge pull request #20130 from paldepind/rust/type-inference-fn
...
Rust: Implement type inference for closures and calls to closures
2025-07-30 13:13:57 +02:00
Napalys Klicius
84ffbbec33
Added missing doc strings
2025-07-30 10:51:38 +00:00
Napalys Klicius
95743d7109
Added inline test expectations for cors permissive config
2025-07-30 10:42:55 +00:00
codeqlhelper
ee3e7e34ba
Merge pull request #1 from geoffw0/initnotrun .expected
...
CPP: Add .expected file for the InitialisationNotRun test
2025-07-30 18:36:29 +08:00
Napalys Klicius
92daa7d42c
Updated suite expectations
2025-07-30 10:32:11 +00:00
Geoffrey White
c0638a5fcb
CPP: Update .expected for the changes here.
2025-07-30 11:24:57 +01:00
Anders Schack-Mulligen
5ca9c090a8
Merge pull request #20132 from aschackmull/ssa/guardvalue
...
SSA: Update data flow integration and BarrierGuard interface to use GuardValue.
2025-07-30 12:23:17 +02:00
Napalys Klicius
358617f533
Move CORS misconfiguration query from experimental to Security
2025-07-30 10:22:59 +00:00
Geoffrey White
d6fddde6e0
CPP: Add .expected (results before query changes here).
2025-07-30 11:22:56 +01:00
Geoffrey White
43bca84310
CPP: Convert test to use a stub rather than a library include.
2025-07-30 11:22:53 +01:00
Geoffrey White
a3110a9091
Rust: Implement query.
2025-07-29 18:19:52 +01:00
Simon Friis Vindum
5b152cfdec
Rust: Fix typo in change note
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2025-07-29 18:38:14 +02:00
Simon Friis Vindum
5540b9df71
Merge branch 'main' into rust/type-inference-fn
2025-07-29 16:43:17 +02:00
Idriss Riouak
6c00ceaec9
Merge pull request #20134 from github/idrissrio/java-dca-fix
...
Java: Move `extractorInformationSkipKey` predicate to library pack
2025-07-29 15:32:02 +01:00
idrissrio
ac52a1b123
Java: Move extractorInformationSkipKey predicate to library pack
2025-07-29 09:45:18 +02:00
Geoffrey White
5c64d4e9b7
Rust: Query framework.
2025-07-28 16:59:01 +01:00
Geoffrey White
897822dff5
Rust: The Cargo.lock file has changed as well.
2025-07-28 16:55:43 +01:00
Geoffrey White
9972aaf6a1
Rust: Add tests cases for cleartext storage.
2025-07-28 16:12:34 +01:00
Simon Friis Vindum
9d72fab287
Merge pull request #20119 from paldepind/rust/type-inference-assoc-type-tp
...
Rust: Type inference for impl trait types with type parameters
2025-07-28 11:38:17 +02:00
Anders Schack-Mulligen
3b8234ecec
SSA: Update data flow integration and BarrierGuard interface to use GuardValue.
2025-07-28 11:29:12 +02:00
Simon Friis Vindum
92bce4e432
Rust: Split getFunctionReturnPos into two predicates
2025-07-28 10:45:59 +02:00
Simon Friis Vindum
9761580b7e
Merge branch 'main' into rust/type-inference-assoc-type-tp
2025-07-28 10:39:00 +02:00
Simon Friis Vindum
8e474c946e
Rust: Add change note for type inference for closures
2025-07-28 10:27:33 +02:00
Anders Schack-Mulligen
37b508bf43
Merge pull request #20128 from aschackmull/ccr/del-formatting-instruction
...
Copilot: Remove the formatting instructions, as they're confusing CCR.
2025-07-28 10:24:30 +02:00
Simon Friis Vindum
2c758a9842
Rust: Add type inference for closures and calls to first-class functions
2025-07-27 21:28:10 +02:00
Simon Friis Vindum
8c6c28d61f
Rust: Add type inference tests for closures
2025-07-27 21:16:30 +02:00
codeqlhelper
75e545a67f
Create 2025-07-27-avoid-reporting-static-global-variable.md
2025-07-28 00:00:41 +08:00
codeqlhelper
cf21997c0f
Reduce false alarms raised by static variables
...
Static variables are initialized to zero or null by compiler, no need to get an initializer of them.
See https://stackoverflow.com/questions/13251083/the-initialization-of-static-variables-in-c
See 6.7.8/10 in the C99 Standard.
A relevant PR: https://github.com/github/codeql/pull/16527
2025-07-27 23:46:53 +08:00
codeqlhelper
89dcad48f4
Create InitialisationNotRun.qlref
2025-07-27 23:42:50 +08:00
codeqlhelper
c2d0a12e1e
Create test for InitialisationNotRun
2025-07-27 23:40:00 +08:00
Simon Friis Vindum
13d9d8ad3f
Merge pull request #20122 from paldepind/rust/type-inference-dyn-assoc
...
Rust: Fix type inference for trait objects for traits with associated types
2025-07-26 12:40:09 +02:00
Geoffrey White
4b947db0f8
Merge pull request #19804 from geoffw0/dotdot
...
Rust: Update DotDotCheck to use getCanonicalPath
2025-07-25 15:50:29 +01:00
Geoffrey White
2951ae9c7c
Merge pull request #20124 from geoffw0/clone
...
Rust: Replace QL model for Clone with MaD
2025-07-25 15:46:44 +01:00
Simon Friis Vindum
b2ee625268
Rust: Expand doc and make predicate private
2025-07-25 15:22:10 +02:00
Geoffrey White
478f39a967
Rust: Accept (trivial) test changes.
2025-07-25 14:18:34 +01:00
Anders Schack-Mulligen
6511e21f81
Remove the formatting instructions, as they're confusing CCR.
2025-07-25 14:59:16 +02:00
Anders Schack-Mulligen
6c8275298b
Java: Improve ObjFlow performance.
2025-07-25 14:41:06 +02:00
Joe Farebrother
c0da9c407e
Fix typo in test dir name + update examples
2025-07-25 13:15:46 +01:00
Anders Schack-Mulligen
5ca35afb8c
Java: Improve joinorder in getErasedRepr.
2025-07-25 13:34:11 +02:00
Anders Schack-Mulligen
e3021f4a65
Java: Untangle code a bit to improve join order.
2025-07-25 13:33:14 +02:00
Joe Farebrother
958fddb638
cleanup order and remove duplicates for arithmetic methods
2025-07-25 10:57:19 +01:00
Joe Farebrother
d7b855c4e3
qhelp fix
2025-07-25 10:24:58 +01:00
Joe Farebrother
9af2ab83dc
Cleanups
2025-07-25 10:22:51 +01:00
Joe Farebrother
8bdf6801b3
Add qldoc
2025-07-25 10:05:09 +01:00
Joe Farebrother
3525e83ad2
Add changenote + some doc updates
2025-07-25 09:52:54 +01:00
Geoffrey White
2192ed04be
Rust: Add clone MaD trait model.
2025-07-25 09:43:34 +01:00
Geoffrey White
4140579dd6
Rust: Remove QL model for clone.
2025-07-25 08:17:52 +01:00
Geoffrey White
7f659804e4
Rust: Fix the canonical path.
2025-07-24 17:24:29 +01:00
Geoffrey White
cfe25593ee
Merge branch 'main' into dotdot
2025-07-24 16:32:36 +01:00
Joe Farebrother
871688f026
Update docs
2025-07-24 16:01:57 +01:00
Geoffrey White
67c170ffc1
Merge branch 'main' into sqlx
2025-07-24 15:25:35 +01:00
Simon Friis Vindum
466bf85a67
Rust: Fix type inference for trait objects for traits with associated types
2025-07-24 16:07:39 +02:00
Simon Friis Vindum
1b2f160b55
Rust: Add type inference tests for associated types
2025-07-24 16:07:37 +02:00
Joe Farebrother
362bfba049
Update unit tests
2025-07-24 14:50:36 +01:00
Joe Farebrother
b9f6657ade
Remove use of toString. This does also reduce reaults from cases where the exception is not a simple identifier.
2025-07-24 13:50:27 +01:00
Joe Farebrother
b1ee795225
Merge pull request #20086 from joefarebrother/python-qual-raise-not-implemented
...
Python: Modernise raise-not-implemented query
2025-07-24 13:18:21 +01:00
Ian Lynagh
621b4833f3
Merge pull request #20114 from igfoo/igfoo/kotlin-2.2.20
...
Kotlin: Add Kotlin 2.2.20 support
2025-07-24 11:58:51 +01:00
Joe Farebrother
b9738066de
try excluding set methods, add methods, update alert messages
2025-07-24 11:18:28 +01:00
Simon Friis Vindum
39f602c032
Rust: Create injective ids for impl trait type parameters
2025-07-24 12:07:11 +02:00
Simon Friis Vindum
bb56b0d45b
Rust: Add type inference test with consistency issue
2025-07-24 11:55:23 +02:00
Simon Friis Vindum
9a0c5877ea
Rust: Support impl trait types in return position with function type parameters
2025-07-24 11:00:01 +02:00
Joe Farebrother
97cf15affc
Merge pull request #20052 from joefarebrother/python-qual-minor-doc-updates
...
Python: Minor documantation updates to several quality queries
2025-07-24 09:38:07 +01:00
Simon Friis Vindum
a20fed8ae5
Rust: Add type inference tests for impl trait types
2025-07-24 10:36:51 +02:00
Joe Farebrother
a8cc14493f
Fix typo - add .
...
Co-authored-by: Napalys Klicius <napalys@github.com >
2025-07-24 09:35:05 +01:00
Simon Friis Vindum
82387461ee
Merge pull request #20084 from paldepind/rust/type-inference-trait-object
...
Rust: Implement type inference for trait objects/`dyn` types
2025-07-24 10:17:23 +02:00
Simon Friis Vindum
b3dc6cba78
Rust: Use getATypeParam for consistency
2025-07-23 20:56:45 +02:00
Mathias Vorreiter Pedersen
5da7ae877b
Merge pull request #20115 from MathiasVP/add-more-windows-memcpy-functions
...
C++: Add some more Windows specific memory copy models
2025-07-23 16:10:56 +01:00
Geoffrey White
199f2473e5
Merge pull request #20024 from geoffw0/moresensitive2
...
Shared: Improve sensitive data heuristics
2025-07-23 15:38:24 +01:00
Nora Dimitrijević
5f8c457295
Merge pull request #20081 from d10c/d10c/diff-informed-phase-3-rust
...
Rust: Diff-informed queries: phase 3 (non-trivial locations)
2025-07-23 16:31:23 +02:00
Geoffrey White
91ced7ea0c
Merge pull request #20109 from github/copilot/fix-20108
...
Rust: Remove sourceModelDeprecated, summaryModelDeprecated and sinkModelDeprecated
2025-07-23 14:33:22 +01:00
Joe Farebrother
73d257e538
Port unexpected raise away from pointsto
2025-07-23 14:13:58 +01:00
Mathias Vorreiter Pedersen
cbe5561eb6
C++: Accept test changes.
2025-07-23 14:05:42 +01:00
Nora Dimitrijević
83fe9e0d51
[DIFF-INFORMED] Rust: AccessInvalidPointer
2025-07-23 14:52:44 +02:00
Nora Dimitrijević
31a73d466b
[DIFF-INFORMED] Rust: AccessAfterLifetime
2025-07-23 14:52:32 +02:00
Nora Dimitrijević
56ae8684e1
[DIFF-INFORMED] Rust: UncontrolledAllocationSize
2025-07-23 14:52:14 +02:00
Nora Dimitrijević
fcc3800756
[DIFF-INFORMED] Rust: CleartextLogging
2025-07-23 14:52:07 +02:00
Nora Dimitrijević
091163bf8e
[DIFF-INFORMED] Rust: CleartextTransmission
2025-07-23 14:52:00 +02:00
Nora Dimitrijević
78c40e209b
[DIFF-INFORMED] Rust: SqlInjection
2025-07-23 14:51:52 +02:00
Nora Dimitrijević
574bb871e0
[DIFF-INFORMED] Rust: TaintedPath
2025-07-23 14:51:45 +02:00
Nora Dimitrijević
329fd803e2
[DIFF-INFORMED] Rust: RegexInjection
2025-07-23 14:51:33 +02:00
Mathias Vorreiter Pedersen
9d736723fb
C++: Add more Windows specific models for memcpy-like tings.
2025-07-23 13:45:20 +01:00
Mathias Vorreiter Pedersen
50785f7f21
C++: Add tests with missing flow.
2025-07-23 13:37:32 +01:00
Mathias Vorreiter Pedersen
63e5c52d7e
Merge pull request #20107 from MathiasVP/add-overrun-write-barriers
...
C++: Add more barriers to `cpp/overrun-write`
2025-07-23 13:30:07 +01:00
Simon Friis Vindum
f5605c94c5
Rust: Add change note for type inference of trait objects
2025-07-23 14:08:22 +02:00
Simon Friis Vindum
12942667bf
Rust: Add type inference for dyn types
2025-07-23 14:08:15 +02:00
Simon Friis Vindum
605c8e201e
Rust: Add type inference tests for dyn types
2025-07-23 14:03:53 +02:00
Ian Lynagh
604af65b02
Kotlin: Opt in to DeprecatedForRemovalCompilerApi
...
We'll need a proper fix for this, but this will keep things working in
the meantime.
2025-07-23 12:51:12 +01:00
Ian Lynagh
709c111522
Kotlin: Add getJvmModuleNameForDeserializedDescriptor wrapper
...
It has been removed in 2.2.20.
2025-07-23 12:51:12 +01:00
Mathias Vorreiter Pedersen
3a977b86d4
Update cpp/ql/lib/semmle/code/cpp/security/ProductFlowUtils/ProductFlowUtils.qll
...
Co-authored-by: Idriss Riouak <idrissrio@github.com >
2025-07-23 12:27:38 +01:00
Matt Schwager
d8b9d4d17a
Add change-note
2025-07-23 07:03:26 -04:00
Mathias Vorreiter Pedersen
5d6c4a63bb
Update cpp/ql/lib/semmle/code/cpp/security/ProductFlowUtils/ProductFlowUtils.qll
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-07-23 11:53:55 +01:00
Simon Friis Vindum
49ecc60c0f
Merge pull request #20076 from paldepind/rust/type-inference-cleanup-join
...
Rust: Type inference refactor and improve join orders
2025-07-23 12:53:43 +02:00
Ian Lynagh
d1da041fcf
Kotlin: Regenerate
...
Ran "../tools/bazel mod tidy"
2025-07-23 11:53:06 +01:00
Ian Lynagh
8432f6e42e
Kotlin: Add 2.2.20-Beta1 version
2025-07-23 11:52:48 +01:00
Ian Lynagh
965f1fc547
Kotlin: Add 2.2.20 deps
2025-07-23 11:51:45 +01:00
Ian Lynagh
f148f434e1
Kotlin: Add a changenote for the addition of 2.2.2x support
2025-07-23 11:49:38 +01:00
Mathias Vorreiter Pedersen
019447b681
C++: Add change note.
2025-07-23 11:49:07 +01:00
Ian Lynagh
ad391df03f
Kotlin: Support 2.2.20
2025-07-23 11:47:52 +01:00
copilot-swe-agent[bot]
defd4a1d08
Add change note for removal of deprecated dataflow predicates
...
Co-authored-by: geoffw0 <40627776+geoffw0@users.noreply.github.com >
2025-07-23 10:41:31 +00:00
copilot-swe-agent[bot]
f1df63657b
Add CodeQL autoformatter instructions to copilot-instructions.md
...
Co-authored-by: geoffw0 <40627776+geoffw0@users.noreply.github.com >
2025-07-23 10:08:51 +00:00
Nick Rolfe
28d3a6b404
Merge pull request #20113 from github/post-release-prep/codeql-cli-2.22.2
...
Post-release preparation for codeql-cli-2.22.2
2025-07-23 06:05:34 -04:00
Nora Dimitrijević
766b0bf773
Merge pull request #20082 from d10c/d10c/diff-informed-phase-3-swift
...
Swift: Diff-informed queries: phase 3 (non-trivial locations)
2025-07-23 11:56:04 +02:00
github-actions[bot]
68a96a44d8
Post-release preparation for codeql-cli-2.22.2
2025-07-23 09:53:25 +00:00
Nick Rolfe
ff54dfe8aa
Merge pull request #20112 from github/release-prep/2.22.2
...
Release preparation for version 2.22.2
2025-07-23 05:40:18 -04:00
Nick Rolfe
2c03d1f14a
Tweak changenotes
2025-07-23 10:38:57 +01:00
copilot-swe-agent[bot]
2cc732e235
Apply QL autoformatter to ModelsAsData.qll
...
Co-authored-by: geoffw0 <40627776+geoffw0@users.noreply.github.com >
2025-07-23 09:38:10 +00:00
github-actions[bot]
26296c44d3
Release preparation for version 2.22.2
2025-07-23 09:32:53 +00:00
Nick Rolfe
a883db0935
Merge pull request #20110 from github/revert-20105-release-prep/2.22.2
...
Revert "Release preparation for version 2.22.2"
2025-07-23 05:30:33 -04:00
Nick Rolfe
12ebf717eb
Revert "Release preparation for version 2.22.2"
2025-07-23 10:09:23 +01:00
copilot-swe-agent[bot]
0245cd872c
Remove deprecated Rust dataflow predicates and associated classes
...
Co-authored-by: geoffw0 <40627776+geoffw0@users.noreply.github.com >
2025-07-23 08:49:24 +00:00
copilot-swe-agent[bot]
69d50e103f
Initial plan
2025-07-23 08:41:24 +00:00
Geoffrey White
68f0dfe046
Shared: Fix after merge.
2025-07-23 08:55:44 +01:00
Geoffrey White
4f6b698ca3
Merge branch 'main' into moresensitive2
2025-07-23 08:50:25 +01:00
Simon Friis Vindum
f432cf9c4d
Merge pull request #20041 from paldepind/rust/type-inference-tuples
...
Rust: Type inference for tuples
2025-07-23 08:21:27 +02:00
Ian Lynagh
09dd708086
Merge pull request #20031 from igfoo/igfoo/kotlin-tests-2.2.0
...
Kotlin: Run the tests with 2.2.0
2025-07-22 22:20:40 +01:00
Mathias Vorreiter Pedersen
1189665970
C++: Add barriers to 'cpp/overrun-write'.
2025-07-22 18:35:56 +01:00
Mathias Vorreiter Pedersen
a502bb1ac2
C++: Add a copy of 'isSinkPairImpl' (named 'isSinkPairImpl0') with a few more columns that we'll need.
2025-07-22 18:35:50 +01:00
Mathias Vorreiter Pedersen
e0eadc75dd
C++: Remove the ad-hoc code for keeping track of increments/decrements on pointers in the 'cpp/overrun-write' query.
2025-07-22 18:35:31 +01:00
Mathias Vorreiter Pedersen
a1f4246c5f
C++: Extract the barriers from 'cpp/invalid-pointer-deref' into a library.
2025-07-22 18:35:29 +01:00
Mathias Vorreiter Pedersen
92a730c9ac
C++: Add a false positive.
2025-07-22 18:35:21 +01:00
Ian Lynagh
cd3143f106
Kotlin: Disable the custom plugin test for now
2025-07-22 17:38:14 +01:00
Ian Lynagh
9a03f2eb26
Kotlin: Accept test changes in 2.2.0
2025-07-22 17:38:14 +01:00
Ian Lynagh
65bd1aff83
Kotlin: Update default version to 2.2.0
...
Changes the default version from 2.1.20 to 2.2.0 in the wrapper.py file.
2025-07-22 17:38:14 +01:00
Nick Rolfe
dd8d04bb94
Merge branch 'main' into post-release-prep/codeql-cli-2.22.2
2025-07-22 10:30:14 -04:00
github-actions[bot]
37cc78255a
Post-release preparation for codeql-cli-2.22.2
2025-07-22 14:22:20 +00:00
Nick Rolfe
320f75fa51
Merge pull request #20105 from github/release-prep/2.22.2
...
Release preparation for version 2.22.2
2025-07-22 10:11:13 -04:00
Nick Rolfe
43d14c28c2
Tweak changenotes
2025-07-22 15:06:09 +01:00
github-actions[bot]
997547b8ef
Release preparation for version 2.22.2
2025-07-22 14:04:14 +00:00
Nick Rolfe
5fb7541a94
Merge pull request #20104 from github/revert-20100-release-prep/2.22.2
...
Revert "Release preparation for version 2.22.2"
2025-07-22 10:01:12 -04:00
Nick Rolfe
825c813095
Revert "Release preparation for version 2.22.2"
2025-07-22 14:33:45 +01:00
Geoffrey White
6efc19daac
Merge pull request #18943 from geoffw0/constcrypto
...
Rust: new query rust/hardcoded-crytographic-value
2025-07-22 13:36:14 +01:00
Geoffrey White
f7d822b19c
Rust: Remove empty file.
2025-07-22 12:43:22 +01:00
Nick Rolfe
96a32c0179
Merge pull request #20103 from github/post-release-prep/codeql-cli-2.22.2
...
Post-release preparation for codeql-cli-2.22.2
2025-07-22 06:01:34 -04:00
github-actions[bot]
deb035cf4e
Post-release preparation for codeql-cli-2.22.2
2025-07-22 09:36:07 +00:00
Nick Rolfe
0b7111b867
Merge pull request #20100 from github/release-prep/2.22.2
...
Release preparation for version 2.22.2
2025-07-22 04:55:58 -04:00
Nick Rolfe
74cd982aca
Tweak changenotes
2025-07-22 09:51:52 +01:00
Simon Friis Vindum
6b366d8384
Merge branch 'main' into rust/type-inference-tuples
2025-07-22 10:45:41 +02:00
Simon Friis Vindum
79cc7318ba
Merge pull request #20096 from paldepind/rust/path-resolution-associated-type-fix
...
Rust: Path resolution associated type fix
2025-07-22 10:12:07 +02:00
Owen Mansel-Chan
e2f3c9d1b6
Reword change note
2025-07-22 00:09:37 +01:00
Kevin Stubbings
b4b848a25c
Fix tests and simplify sanitizer
2025-07-21 21:53:35 +00:00
Geoffrey White
1945fb8258
Rust: Accept changes to query suites.
2025-07-21 21:09:42 +01:00
Geoffrey White
43ac82f6a3
Rust: Update consistency check .expected files.
2025-07-21 21:01:01 +01:00
Geoffrey White
d53dada67f
Rust: Update barrier logic to use getCanonicalPath.
2025-07-21 20:56:48 +01:00
Geoffrey White
ec3ad85504
Rust: Add another test case for barriers (that still functions).
2025-07-21 20:53:37 +01:00
Matt Schwager
5192f3128a
Update expected test output
2025-07-21 15:26:39 -04:00
Matt Schwager
9da94fb880
Fix #19294 , Ruby NetHttpRequest improvements
2025-07-21 15:17:54 -04:00
github-actions[bot]
c8632b70b7
Release preparation for version 2.22.2
2025-07-21 16:45:45 +00:00
Geoffrey White
796cb193fc
Rust: Accept test regressions with new format MaD.
2025-07-21 17:24:19 +01:00
Geoffrey White
fc8a662f0d
Rust: Update the models.
2025-07-21 17:24:07 +01:00
Nick Rolfe
05572b49de
Merge pull request #20099 from github/nickrolfe/revert-2.22.2-prep
...
Revert post-release preparation for codeql-cli-2.22.2
2025-07-21 10:58:49 -04:00
Nick Rolfe
ad9b637bec
Revert "Merge pull request #19994 from github/post-release-prep/codeql-cli-2.22.2"
...
This reverts commit e5b4a15e35 , reversing
changes made to 33e63109bb .
2025-07-21 15:18:59 +01:00
Simon Friis Vindum
ad5c5acae5
Merge pull request #20094 from paldepind/rust/type-inference-path-mention
...
Rust: Refactor `PathTypeMention`
2025-07-21 14:00:20 +02:00
Owen Mansel-Chan
472a6b5fe1
Merge pull request #20018 from owen-mc/java/snakeyaml-safe-unsafe-deserialization
...
Java: Update qhelp: SnakeYaml is safe from version 2.0
2025-07-21 12:22:36 +01:00
Geoffrey White
0ec10e5c30
Rust: Corrections after the merge.
2025-07-21 12:12:23 +01:00
Simon Friis Vindum
28850460b2
Rust: Accept test changes
2025-07-21 12:07:08 +02:00
Nora Dimitrijević
218fcbbec5
[DIFF-INFORMED] C#: HardcodedConnectionString
2025-07-21 11:28:55 +02:00
Nora Dimitrijević
b2fd58eea4
[DIFF-INFORMED] C#: ThreadUnsafeCryptoTransformLambda
2025-07-21 11:28:53 +02:00
Nora Dimitrijević
7f085e6bd9
[DIFF-INFORMED] C#: UnsafeDeserializationQuery
...
57c8b6e229/csharp/ql/src/Security%20Features/CWE-502/UnsafeDeserializationUntrustedInput.ql (L59)
2025-07-21 11:28:50 +02:00
Nora Dimitrijević
793f921291
[DIFF-INFORMED] C#: ConditionalBypass
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/csharp/ql/src/Security%20Features/CWE-807/ConditionalBypass.ql#L22
2025-07-21 11:28:48 +02:00
Anders Schack-Mulligen
d5cdfc673e
Merge pull request #20092 from aschackmull/java/joinorder2
...
Java: Improve more join-orders
2025-07-21 11:27:14 +02:00
Nora Dimitrijević
fbee6bbe21
Merge pull request #20077 from d10c/d10c/diff-informed-phase-3-java
...
Java: Diff-informed queries: phase 3 (non-trivial locations)
2025-07-21 11:23:12 +02:00
Simon Friis Vindum
8ebebf03c2
Rust: Add type inference test with associated type that collides with type parameter
2025-07-21 10:11:41 +02:00
Simon Friis Vindum
ac6715fb3a
Rust: Avoid mixing up type parameters and associated types in path resolution
2025-07-21 10:07:41 +02:00
Simon Friis Vindum
71a5e410d7
Rust: Add path resolution test
2025-07-21 09:59:12 +02:00
Anders Schack-Mulligen
937e3dc469
Merge pull request #20091 from aschackmull/java/fix-cfg-cp-assert
...
Java: Fix accidental CP in CFG for asserts.
2025-07-21 09:07:19 +02:00
Simon Friis Vindum
441cefd0bd
Rust: Accept test changes
2025-07-21 08:34:16 +02:00
Jami Cogswell
bca2c2da54
Java: Add 'previous-id' and adjust tags for 'java/garbage-collection' and 'java/do-not-use-finalizers'
2025-07-19 19:29:00 -04:00
Jami Cogswell
c9692a6d10
Java: fix test failures cause by alert msg change
2025-07-19 13:27:09 -04:00
Jami Cogswell
0dd33b2734
Java: remove version debugging from alert message
2025-07-19 13:01:00 -04:00
Simon Friis Vindum
27e5251285
Rust: Add resolveRootType predicate instead of using resolveType recursively
2025-07-19 13:57:31 +02:00
Simon Friis Vindum
804ffdb682
Rust: Split PathTypeMention into an alias and a non-alias subclass
2025-07-19 13:43:56 +02:00
Simon Friis Vindum
0e8c137a98
Rust: Only include paths as type mentions when they're used as such
...
On databend this changes the number of `PathTypeMention`s from 3,777,464 to 3,330,024. Not a huge difference, but there's also downstream predicates that are reduced as well.
2025-07-19 11:57:13 +02:00
Simon Friis Vindum
620d228ffa
Rust: Factor out getTypeMentionForTypeParameter
2025-07-19 08:41:38 +02:00
Jami Cogswell
7250265c1f
Java: consider all endpoints except for health and info as sensitive to align with Spring docs
2025-07-18 17:50:18 -04:00
Jami Cogswell
685f68d9d3
Java: support 'management.endpoints.web.expose' property
2025-07-18 17:50:17 -04:00
Jami Cogswell
8decc136c4
Java: add change note
2025-07-18 17:50:14 -04:00
Jami Cogswell
70d51504a7
Java: rename to align with 'java/spring-boot-exposed-actuators' query
2025-07-18 17:50:12 -04:00
Jami Cogswell
ea529b047b
Java: adjust metadata and alert msg
2025-07-18 17:50:10 -04:00
Jami Cogswell
7d5e939a86
Java: minor refactoring
2025-07-18 17:50:09 -04:00
Jami Cogswell
ea35fbbe3b
Java: support version 3.x
2025-07-18 17:50:07 -04:00
Jami Cogswell
afa6610cb9
Java: update qhelp
2025-07-18 17:49:54 -04:00
Anders Schack-Mulligen
46ebf503c7
Java: Improve join-order by controlling magic and breaking up TCs.
2025-07-18 16:13:11 +02:00
Anders Schack-Mulligen
ca8fe033d7
Java: Improve join by preventing ssa use-pair join.
2025-07-18 16:12:00 +02:00
Simon Friis Vindum
43b2977cb4
Shared, Rust: Reuse hasTypeConstraint in potentialInstantiationOf and factor out multipleConstraintImplementations
2025-07-18 15:33:17 +02:00
Simon Friis Vindum
bdcecdfc2c
Shared, Rust: Ensure that the constraints in satisfiesConstraintType are in relevantConstraint
2025-07-18 15:33:16 +02:00
Simon Friis Vindum
475d872ffb
Shared, Rust: Adjust type inference predicates to better match use sites
2025-07-18 15:32:42 +02:00
Anders Schack-Mulligen
d64a9368d2
Merge pull request #20088 from aschackmull/java/joinorders1
...
Java: Improve several join-orders
2025-07-18 14:54:26 +02:00
Anders Schack-Mulligen
bc2e7d4e0d
Java: Fix accidental CP in CFG for asserts.
2025-07-18 13:53:15 +02:00
Anders Schack-Mulligen
f6975117fe
Merge pull request #20083 from aschackmull/java/prune-csrf-unprotected-request-type
...
Java: Prune PathGraph for CsrfUnprotectedRequestType.ql
2025-07-18 13:25:00 +02:00
Anders Schack-Mulligen
d9f47bdec9
Java: Improve join-order by properly annotating haveIntersection.
2025-07-18 11:48:50 +02:00
Anders Schack-Mulligen
7883124abd
Java: getSourceDeclaration() and getASourceSupertype*() commute and this yields much better join-order.
2025-07-18 11:47:14 +02:00
Anders Schack-Mulligen
12732525b5
Java: Allow 2-column join on delta to improve join-order.
2025-07-18 11:45:45 +02:00
Joe Farebrother
8ccb2ed059
Merge remote-tracking branch 'origin/python-qual-raise-not-implemented' into python-qual-raise-not-implemented
2025-07-18 10:05:40 +01:00
Michael Nebel
ededa3c006
Merge pull request #20087 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2025-07-18 08:34:04 +02:00
github-actions[bot]
2f84a4a5b5
Add changed framework coverage reports
2025-07-18 00:25:03 +00:00
Jami Cogswell
0d2a4222fd
Java: add related location to alert message
2025-07-17 19:22:18 -04:00
Jami Cogswell
ae163a9f36
Java: add overlay annotations
2025-07-17 19:22:17 -04:00
Jami Cogswell
2bfc4b4ee2
Java: fix test case for version 1.4
...
Need the existence of an ApplicationProperties File, not an ApplicationProperties ConfigPair
2025-07-17 19:22:15 -04:00
Jami Cogswell
3823186dc6
Java: split tests by versions
...
splitting is required to properly test each scenario
2025-07-17 19:22:13 -04:00
Jami Cogswell
1b90a30d45
Java: move code to .qll file
2025-07-17 19:22:11 -04:00
Jami Cogswell
b479f5c8dc
Java: fix integration tests
2025-07-17 19:22:10 -04:00
Jami Cogswell
ed8da5e151
Java: convert tests to inline expectations
2025-07-17 19:22:08 -04:00
Jami Cogswell
fc930d9184
Java: update tests for non-experimental directory
2025-07-17 19:22:06 -04:00
Jami Cogswell
38260e76bf
Java: remove deprecation
2025-07-17 19:22:05 -04:00
Jami Cogswell
0dbddbdf0f
Java: remove experimental files
2025-07-17 19:22:03 -04:00
Jami Cogswell
a39cb40177
Java: copy out of experimental
2025-07-17 19:22:01 -04:00
Joe Farebrother
6d33a7ec70
Update test output
2025-07-17 22:25:18 +01:00
Joe Farebrother
f2dd96ecf4
Update python/ql/src/Exceptions/NotImplementedIsNotAnException.qhelp
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-07-17 22:08:01 +01:00
Joe Farebrother
57f1d07b2b
Undo module deprecation (used by another quality query)
2025-07-17 21:54:55 +01:00
Nora Dimitrijević
05df1d3cb9
[DIFF-INFORMED] Java: AndroidWebViewSettingsAllowsContentAccess
2025-07-17 19:02:15 +02:00
Nora Dimitrijević
24c28ed873
[DIFF-INFORMED] Java: UnsafeCertTrust
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/java/ql/src/Security/CWE/CWE-273/UnsafeCertTrust.ql#L21
2025-07-17 19:02:13 +02:00
Nora Dimitrijević
ea4af8323c
[DIFF-INFORMED] Java: TrustBoundaryViolation
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/java/ql/src/Security/CWE/CWE-501/TrustBoundaryViolation.ql#L18
2025-07-17 19:02:09 +02:00
Nora Dimitrijević
7888dcbce2
[DIFF-INFORMED] Java: TempDirLocalInformationDisclosure
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/java/ql/src/Security/CWE/CWE-200/TempDirLocalInformationDisclosure.ql#L56
2025-07-17 19:02:07 +02:00
Nora Dimitrijević
3785dbec9e
[DIFF-INFORMED] Java: TaintedEnvironmentVariable
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/java/ql/src/Security/CWE/CWE-078/ExecTaintedEnvironment.ql#L22
2025-07-17 19:02:05 +02:00
Nora Dimitrijević
b3b139bb02
[DIFF-INFORMED] Java: SqlConcatenated
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/java/ql/src/Security/CWE/CWE-089/SqlConcatenated.ql#L27
2025-07-17 19:02:04 +02:00
Nora Dimitrijević
45b627df1d
[DIFF-INFORMED] Java: SensitiveLogging
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/java/ql/src/Security/CWE/CWE-532/SensitiveInfoLog.ql#L20
2025-07-17 19:02:02 +02:00
Nora Dimitrijević
bc0b383595
[DIFF-INFORMED] Java: MaybeBrokenCryptoAlgorithm
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/java/ql/src/Security/CWE/CWE-327/MaybeBrokenCryptoAlgorithm.ql#L25
2025-07-17 19:02:00 +02:00
Nora Dimitrijević
b688df9dec
[DIFF-INFORMED] Java: LogInjection
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/java/ql/src/Security/CWE/CWE-117/LogInjection.ql#L20
2025-07-17 19:01:58 +02:00
Nora Dimitrijević
2d734056b1
[DIFF-INFORMED] Java: InsecureLdapAuth
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/java/ql/src/Security/CWE/CWE-522/InsecureLdapAuth.ql#L21
2025-07-17 19:01:56 +02:00
Nora Dimitrijević
74b37e71a0
[DIFF-INFORMED] Java: InsecureCookie
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/java/ql/src/Security/CWE/CWE-614/InsecureCookie.ql#L21
2025-07-17 19:01:52 +02:00
Nora Dimitrijević
19e5c3d805
[DIFF-INFORMED] Java: ImproperValidationOfArray…
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/java/ql/src/Security/CWE/CWE-129/ImproperValidationOfArrayIndexCodeSpecified.ql#L48
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/java/ql/src/Security/CWE/CWE-129/ImproperValidationOfArrayConstructionCodeSpecified.ql#L28
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/java/ql/src/Security/CWE/CWE-129/ImproperValidationOfArrayConstruction.ql#L26
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/java/ql/src/Security/CWE/CWE-129/ImproperValidationOfArrayIndex.ql#L24
2025-07-17 19:01:50 +02:00
Nora Dimitrijević
919fea53f0
[DIFF-INFORMED] Java: ExternallyControlledFormatString
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/java/ql/src/Security/CWE/CWE-134/ExternallyControlledFormatString.ql#L24
2025-07-17 19:01:34 +02:00
Nora Dimitrijević
1c6ecf1216
[DIFF-INFORMED] Java: UntrustedDataToExternalAPI
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/java/ql/src/Security/CWE/CWE-020/UntrustedDataToExternalAPI.ql#L20
2025-07-17 18:59:15 +02:00
Nora Dimitrijević
0cf1195678
[DIFF-INFORMED] Java: ConditionalBypass
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/java/ql/src/Security/CWE/CWE-807/ConditionalBypass.ql#L26
2025-07-17 18:59:14 +02:00
Nora Dimitrijević
0bcdb421ed
[DIFF-INFORMED] Java: ArithmeticUncontrolled
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/java/ql/src/Security/CWE/CWE-190/ArithmeticUncontrolled.ql#L36
2025-07-17 18:59:11 +02:00
Nora Dimitrijević
54546f6e99
[DIFF-INFORMED] Java: ArithmeticTainted
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/java/ql/src/Security/CWE/CWE-190/ArithmeticTainted.ql#L35
2025-07-17 18:59:09 +02:00
Nora Dimitrijević
8353fdd041
[DIFF-INFORMED] Java: (Android)SensitiveCommunication
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/java/ql/src/Security/CWE/CWE-927/SensitiveCommunication.ql#L20
2025-07-17 18:59:06 +02:00
Nora Dimitrijević
b33058c967
[TEST] Java: SensitiveCommunication: convert to qlref
2025-07-17 18:59:05 +02:00
Nora Dimitrijević
44bb5e7220
[TEST] Java: ConditionalBypass: convert to qlref
2025-07-17 18:59:03 +02:00
Nora Dimitrijević
6134518d60
[TEST] Java: SensitiveLogInfo: convert to qlref
2025-07-17 18:59:01 +02:00
Nora Dimitrijević
94386f0550
[TEST] Java: TrustBoundaryViolations: convert test to qlref
2025-07-17 18:58:59 +02:00
Nora Dimitrijević
49e03b4dfd
[TEST] Java: UnsafeCertTrust: convert test to qlref
2025-07-17 18:58:56 +02:00
Nora Dimitrijević
7aced48443
[TEST] Java: LogInjection: convert test to qlref
2025-07-17 18:58:54 +02:00
Nora Dimitrijević
5c2cf79785
[TEST] Java: CWE-020/ExternalAPI: new test based on qhelp
2025-07-17 18:58:52 +02:00
Geoffrey White
c2ddf25f11
Merge branch 'main' into constcrypto
2025-07-17 16:13:58 +01:00
Anders Schack-Mulligen
996de78a66
Java: Prune PathGraph for CsrfUnprotectedRequestType.ql
2025-07-17 15:06:38 +02:00
Anders Schack-Mulligen
1485d7072d
Merge pull request #19885 from aschackmull/java/annotated-exit-cfg
...
Java: Add AnnotatedExitNodes to the CFG.
2025-07-17 15:02:24 +02:00
Nora Dimitrijević
4342b2b799
[DIFF-INFORMED] Swift: UnsafeWebViewFetch
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/swift/ql/src/queries/Security/CWE-079/UnsafeWebViewFetch.ql#L24
2025-07-17 14:59:09 +02:00
Nora Dimitrijević
b1e723991e
[DIFF-INFORMED] Swift: InsecureTLS
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/swift/ql/src/queries/Security/CWE-757/InsecureTLS.ql#L18
2025-07-17 14:59:07 +02:00
Nora Dimitrijević
6dea73b081
[DIFF-INFORMED] Swift: CleartextStoragePreferences
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/swift/ql/src/queries/Security/CWE-312/CleartextStoragePreferences.ql#L32
2025-07-17 14:59:05 +02:00
Nora Dimitrijević
cd3fa64ee3
[DIFF-INFORMED] Swift: CleartextStorageDatabase
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/swift/ql/src/queries/Security/CWE-311/CleartextStorageDatabase.ql#L33
2025-07-17 14:59:03 +02:00
Michael Nebel
2f29459cda
Merge pull request #19931 from michaelnebel/ql4ql/qualitytagcheck
...
Ql4ql: Quality query tagging.
2025-07-17 14:53:14 +02:00
Idriss Riouak
36ebe99f2f
Merge pull request #19707 from microsoft/lwsimpkins/fix-qhelp-upstream
...
fix qhelp files
2025-07-17 14:51:01 +02:00
Nora Dimitrijević
4b6135c0f7
[DIFF-INFORMED] Ruby: MissingFullAnchor
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/ruby/ql/src/queries/security/cwe-020/MissingFullAnchor.ql#L18
2025-07-17 14:44:02 +02:00
Owen Mansel-Chan
af977e9ac7
Merge pull request #20067 from owen-mc/java/unsafe-deserialization-mad-sinks
...
Java: allow the definition of `java/unsafe-deserialization` sinks using data extensions
2025-07-17 13:42:31 +01:00
Nora Dimitrijević
20030d56a5
[DIFF-INFORMED] Python: (Possible)TimingAttackAgainstHash
2025-07-17 14:40:31 +02:00
Nora Dimitrijević
9408a96ba5
[TEST] Python: TimingAttackAgainstHash: add qlref test to existing source (TODO: add source with true positive)
2025-07-17 14:40:29 +02:00
Kasper Svendsen
a807db52ad
Merge pull request #19872 from github/kaspersv/overlay-java-enable
...
Overlay: Enable overlay compilation for Java
2025-07-17 14:38:17 +02:00
Geoffrey White
27bea33508
Rust: Accept consistency check change.
2025-07-17 12:44:31 +01:00
Jeroen Ketema
acc66c7b58
Merge pull request #19984 from jketema/jketema/sec-shared
...
Make a proper shared library out of the concept related libraries
2025-07-17 13:25:33 +02:00
Geoffrey White
69064b7f7f
Rust: Update the model.
2025-07-17 12:20:34 +01:00
Owen Mansel-Chan
6629bd8279
No need to deprecate classes when module is deprecated
2025-07-17 11:52:31 +01:00
Owen Mansel-Chan
b361f76643
Delete unused private class
2025-07-17 11:36:06 +01:00
Nora Dimitrijević
8824677e87
[DIFF-INFORMED] Go: BadRedirectCheck
2025-07-17 11:46:54 +02:00
Nora Dimitrijević
b4010ac2b4
[DIFF-INFORMED] Go: InsecureHostKeyCallback
2025-07-17 11:46:53 +02:00
Nora Dimitrijević
188fc0d933
[DIFF-INFORMED] Go: UnhandledCloseWritableHandle
2025-07-17 11:46:51 +02:00
Nora Dimitrijević
7b759f44f8
[DIFF-INFORMED] Go: AuthCookie
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/go/ql/src/experimental/CWE-1004/CookieWithoutHttpOnly.ql#L97
2025-07-17 11:46:49 +02:00
Nora Dimitrijević
a1fe72c423
[DIFF-INFORMED] Go: SSRF
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/go/ql/src/experimental/CWE-918/SSRF.ql#L23
2025-07-17 11:46:47 +02:00
Nora Dimitrijević
7bd6703f19
[DIFF-INFORMED] Go: ConditionalBypass
2025-07-17 11:46:46 +02:00
Nora Dimitrijević
19b373aa90
[DIFF-INFORMED] Go: SensitiveConditionBypass
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/go/ql/src/experimental/CWE-807/SensitiveConditionBypass.ql#L33
2025-07-17 11:46:44 +02:00
Nora Dimitrijević
d6ef585110
[DIFF-INFORMED] Go: RequestForgery, SafeUrlFlow
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/go/ql/src/Security/CWE-918/RequestForgery.ql#L21
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/go/ql/src/Security/CWE-601/OpenUrlRedirect.ql#L24
2025-07-17 11:46:42 +02:00
Nora Dimitrijević
8c8625d912
[DIFF-INFORMED] Go: ReflectedXss
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/go/ql/src/Security/CWE-079/ReflectedXss.ql#L23
2025-07-17 11:46:40 +02:00
Nora Dimitrijević
4b473622bc
[DIFF-INFORMED] Go: InsecureRandomness
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/go/ql/src/Security/CWE-338/InsecureRandomness.ql#L19
2025-07-17 11:46:39 +02:00
Nora Dimitrijević
ce7eb9b16a
[DIFF-INFORMED] Go: IncorrectIntegerConversion
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/go/ql/src/Security/CWE-681/IncorrectIntegerConversionQuery.ql#L23
2025-07-17 11:46:37 +02:00
Nora Dimitrijević
f228818b1f
[DIFF-INFORMED] Go: HardcodedCredentials
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/go/ql/src/Security/CWE-798/HardcodedCredentials.ql#L62
2025-07-17 11:46:35 +02:00
Nora Dimitrijević
109f6ddc2d
[DIFF-INFORMED] Go: ExternalAPIs
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/go/ql/src/Security/CWE-020/UntrustedDataToExternalAPI.ql#L18
2025-07-17 11:46:33 +02:00
Nora Dimitrijević
89f760460b
[DIFF-INFORMED] Go: CommandInjection
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/go/ql/src/Security/CWE-078/CommandInjection.ql#L28
2025-07-17 11:46:30 +02:00
Nora Dimitrijević
e0d16a863b
[DIFF-INFORMED] Go: AllocationSizeOverflow
...
https://github.com/d10c/codeql/blob/d10c/diff-informed-phase-3/go/ql/src/Security/CWE-190/AllocationSizeOverflow.ql#L24
2025-07-17 11:46:29 +02:00
Geoffrey White
944fd2aa11
Rust: Add explicit types in some (not all) of the test cases.
2025-07-17 10:45:40 +01:00
Anders Schack-Mulligen
448cc82ef9
Kotlin: Accept more test changes.
2025-07-17 11:21:27 +02:00
Anders Schack-Mulligen
54775e0958
Java: Adjust Paths.qll
2025-07-17 11:21:26 +02:00
Anders Schack-Mulligen
e7a6259bd7
Java: Accept test changes.
2025-07-17 11:21:26 +02:00
Anders Schack-Mulligen
fbe79e8a52
Java: Add AnnotatedExitNodes to the CFG.
2025-07-17 11:21:26 +02:00
Joe Farebrother
680e31dc48
Modernize raise-not-implemented
2025-07-17 10:02:00 +01:00
Owen Mansel-Chan
53e1939b60
Merge pull request #20053 from owen-mc/go/fix-dataflowconsistency
...
Go: Fix compilation of DataFlowImplConsistency.qll
2025-07-17 09:22:12 +01:00
Michael Nebel
01738c2e42
Merge pull request #19940 from michaelnebel/csharp/fixmodels
...
C#: Improve some existing manual models.
2025-07-17 07:58:14 +02:00
Kevin Stubbings
f86152d3bd
Add sanitizer changes and fix test
2025-07-16 21:27:33 +00:00
Jeroen Ketema
eabe651edf
Merge pull request #20069 from jketema/spaceship-ir
...
C++: Support the spaceship operator in the IR
2025-07-16 21:45:39 +02:00
Jeroen Ketema
29a6af4efd
C++: Fix instruction class name
2025-07-16 18:11:17 +02:00
Jeroen Ketema
f319381f27
C++: Support the spaceship operator in the IR
2025-07-16 17:53:55 +02:00
Geoffrey White
62b7d84638
Rust: Add Sqlx as MaD sinks instead.
2025-07-16 16:36:42 +01:00
Geoffrey White
87deab861f
Rust: Remove Sqlx.qll.
2025-07-16 16:23:50 +01:00
Geoffrey White
6f5e4ef5b9
Merge branch 'main' into sqlx
2025-07-16 15:59:42 +01:00
Jeroen Ketema
9b8302f983
Merge pull request #20068 from jketema/spaceship-test
...
C++: Add test that shows that IR generation for `<=>` is broken
2025-07-16 16:50:25 +02:00
Owen Mansel-Chan
805e31fdb9
Update test expectations
2025-07-16 15:25:45 +01:00
Jeroen Ketema
807ab986f4
C++: Update more exoected test results
2025-07-16 16:19:40 +02:00
Mathias Vorreiter Pedersen
a9fb49a2c3
Merge pull request #20066 from MathiasVP/dont-summarize-function-pointer-calls
...
C++: Don't wrap calls through function pointers in `FunctionWithWrappers`
2025-07-16 14:57:14 +01:00
Jeroen Ketema
2709bf0615
C++: Add test that shows that IR generation for <=> is broken
2025-07-16 15:54:18 +02:00
Owen Mansel-Chan
7d4a70cc1d
Add change notes
2025-07-16 14:44:24 +01:00
Owen Mansel-Chan
ad60aff860
Update which sink kinds are shared between languages
2025-07-16 14:42:12 +01:00
Owen Mansel-Chan
fdd1e3fefe
Use MaD models for unsafe deserialization sinks when possible
...
Many of the unsafe deserialization sinks have to stay defined in QL
because they have custom logic that cannot be expressed in MaD models.
2025-07-16 14:42:07 +01:00
Mathias Vorreiter Pedersen
8b953e4f22
C++: No need for 'resolveCall' anymore.
2025-07-16 14:28:04 +01:00
Mathias Vorreiter Pedersen
df4b338c5d
C++: Add change notes.
2025-07-16 14:11:09 +01:00
Jeroen Ketema
1990438376
JS: Fix import
...
The import should not have been private, because we want users to still be
able to import this file and have access to the crypto algorithms.
2025-07-16 14:41:50 +02:00
Jeroen Ketema
24bea738c9
Shared: Add missing QLDoc and change note
2025-07-16 14:37:43 +02:00
Simon Friis Vindum
7f8829ad8e
Rust: Add additional inline expectation
...
Co-authored-by: Arthur Baars <aibaars@github.com >
2025-07-16 14:00:27 +02:00
Mathias Vorreiter Pedersen
ca913b452c
C++: Don't summarize calls through function pointers in FunctionWithWrappers.
2025-07-16 11:51:46 +01:00
Jeroen Ketema
200d46f5c7
Merge pull request #20060 from jketema/typeid-fix
...
C++: Fix typeid IR translation
2025-07-16 12:40:03 +02:00
Simon Friis Vindum
bbd7ed57ce
Rust: Add inline expectation
2025-07-16 12:32:35 +02:00
Michael Nebel
e9fdca7d39
C#: Address review comments.
2025-07-16 11:12:25 +02:00
Chris Smowton
d6a3b2e91f
Merge pull request #20065 from smowton/smowton/fix/web.config
...
C#: Make web.config match case insensitive (with change note)
2025-07-16 09:52:34 +01:00
Michael Nebel
c5357ff556
Merge pull request #20008 from Hug0Vincent/csharp
...
feat: add getASupertype() predicate in ValueOrRefType.
2025-07-16 10:39:57 +02:00
Chris Smowton
a537c0091e
change note
2025-07-16 09:06:38 +01:00
Simon Friis Vindum
a508089df8
Rust: Improvements to tuple type inference based on PR feedback
2025-07-16 09:38:29 +02:00
Geoffrey White
d264fb5865
Merge pull request #20042 from geoffw0/sinknoise
...
Rust: Make rust/summary/query-sinks less noisy
2025-07-16 08:36:16 +01:00
Michael Nebel
70bf61dc57
C#: Convert Deserialization tests to use inline expectations.
2025-07-16 08:41:58 +02:00
Michael Nebel
8f8b0428ab
C#: Add change-note.
2025-07-16 08:41:56 +02:00
Michael Nebel
eba901f610
C#: Update flow summaries expected output.
2025-07-16 08:41:55 +02:00
Michael Nebel
95763dd225
C#: Add some models for SerializationInto and SerializationInfoEnumerator.
2025-07-16 08:41:53 +02:00
Michael Nebel
5c05ff843a
C#: Improve the models for System.Text.Encoding.[GetBytes|GetChars].
2025-07-16 08:41:52 +02:00
Michael Nebel
064c4fca12
C#: Add models for the remaining overloads of System.Xml.XmlDictionaryReader.CreateBinaryReader.
2025-07-16 08:41:50 +02:00
Michael Nebel
3ae69d5f3d
C#: Promote the generated System.Xml.XmlDictionaryReader.CreateBinaryReader models to manual models.
2025-07-16 08:41:49 +02:00
Michael Nebel
8ee16f68a7
C#: Update test expected output.
2025-07-16 08:41:48 +02:00
Michael Nebel
13b40bbab4
C#: Fix erroneous model the MemoryStream constructor (and align with the other models).
2025-07-16 08:41:46 +02:00
Michael Nebel
4036140f4b
C#: Add Deserialize testcase.
2025-07-16 08:41:45 +02:00
Kevin Stubbings
504ae0f35a
Update go path sanitizers and sinks
2025-07-16 06:12:45 +00:00
Hugo
8c82405b5b
Update 2025-06-10-getasupertype.md
2025-07-16 00:35:30 +02:00
Hugo
6384cf2e4f
Update predicate name
2025-07-16 00:35:14 +02:00
Jeroen Ketema
529712122c
C++: Address review comments
2025-07-15 22:15:11 +02:00
James Frank
b9acaa0cbd
Make web.config match case insensitive
2025-07-15 15:34:42 -04:00
Jeroen Ketema
a08d594371
C++: Introduce TypeidInstruction base class
2025-07-15 21:31:24 +02:00
Jeroen Ketema
58aa7588e5
Merge pull request #20059 from MathiasVP/no-more-as-expr-inUncontrolledProcessOperation
...
C++: Reduce duplication in `cpp/uncontrolled-process-operation`
2025-07-15 21:17:08 +02:00
Jeroen Ketema
54f11ca611
C++: Fix typo in comment
2025-07-15 20:40:57 +02:00
Jeroen Ketema
70bff4e726
C++: Fix typeid IR translation
2025-07-15 20:24:17 +02:00
Chris Smowton
16f3fc6c33
Merge pull request #20056 from github/smowton/fix/tainted-path-is-local
...
Golang: Mark filepath.IsLocal as a tainted-path sanitizer guard
2025-07-15 17:40:07 +01:00
Mathias Vorreiter Pedersen
327c4b345d
Merge pull request #20058 from jketema/typeid-test
...
C++: Add test showing that the IR translation for `typeid` is broken
2025-07-15 16:55:16 +01:00
Chris Smowton
b71f9ae240
Fix function qname
2025-07-15 16:37:30 +01:00
Jeroen Ketema
477edd215c
C++: Add test showing that the IR translation for typeid is broken
2025-07-15 17:29:00 +02:00
Paolo Tranquilli
fd8ab05724
Merge branch 'main' into redsun82/cargo-upgrade-2
2025-07-15 17:25:40 +02:00
Owen Mansel-Chan
9ef22fff8e
Update SnakeYaml reference to note that it is outdated
2025-07-15 15:27:01 +01:00
Kasper Svendsen
10a678dcbd
Java lib qlpack: Enable overlay compilation
2025-07-15 16:23:40 +02:00
Kasper Svendsen
9c3e275e66
Merge pull request #20011 from kaspersv/kaspersv/discard-xml
...
Overlay: Add XML and Java property discarding
2025-07-15 16:13:38 +02:00
Chris Smowton
ac72f8523a
Change note
2025-07-15 14:51:19 +01:00
Chris Smowton
c8eefb7c5c
Golang: Mark filepath.IsLocal as a tainted-path sanitizer guard
2025-07-15 14:47:17 +01:00
Kasper Svendsen
f84a3084f0
Address review comment about ignored QL variable
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2025-07-15 15:34:08 +02:00
Anders Schack-Mulligen
b13f11883c
Merge pull request #20054 from aschackmull/java/fixup-control-char-query
...
Java: Restrict results to source literals.
2025-07-15 15:28:46 +02:00
Paolo Tranquilli
e79938b597
Bazel: bump rust toolchain version to 1.88
2025-07-15 14:54:52 +02:00
Anders Schack-Mulligen
9e87095bed
Java: Restrict results to source literals.
2025-07-15 14:54:02 +02:00
Owen Mansel-Chan
9661ee407f
Fix compilation of DataFlowImplConsistency.qll
2025-07-15 13:51:45 +01:00
Joe Farebrother
3a27758d85
Remove old py2-specific tests
2025-07-15 13:38:48 +01:00
Joe Farebrother
0f5be2d096
Update python/ql/src/Expressions/DuplicateKeyInDictionaryLiteral.py
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-07-15 13:33:57 +01:00
Paolo Tranquilli
c5afc65491
Rust: run codegen again
2025-07-15 14:32:13 +02:00
Joe Farebrother
909f57261c
Minor doc updates; updating python 2 references to python 3 and updating grammar
2025-07-15 13:26:46 +01:00
Paolo Tranquilli
7b48cb2ce8
Bazel: regenerate cargo vendored files
2025-07-15 14:22:43 +02:00
Paolo Tranquilli
f0466ae9ca
Cargo: upgrade dependencies
2025-07-15 14:14:39 +02:00
Napalys Klicius
ea93b392f7
Added change note for python
2025-07-15 13:43:08 +02:00
Napalys Klicius
638f6498f0
Removed lxml.etree.XMLParser from xml bomb sinks
2025-07-15 13:43:00 +02:00
Nick Rolfe
16e9e8e836
Merge pull request #20049 from github/nickrolfe/java-deleted-files
...
Java: use `overlayChangedFiles` in discard prediactes
2025-07-15 07:42:54 -04:00
Joe Farebrother
7a7db0efe8
Update unsupported format character documentaion, fix outdated reference link
2025-07-15 10:42:25 +01:00
Joe Farebrother
df5f76872f
Update docs for duplicate-key-in-dict-literal to relate. to python 3
2025-07-15 10:18:29 +01:00
Nick Rolfe
c199d0cbbe
Java: use overlayChangedFiles in discard prediactes
2025-07-15 10:10:32 +01:00
Joe Farebrother
15115f50c1
Remove old tests
2025-07-15 09:50:21 +01:00
Simon Friis Vindum
8858f213ff
Rust: Add a change note
2025-07-15 10:23:30 +02:00
Simon Friis Vindum
97e77944eb
Rust: Accept test changes
2025-07-15 10:21:53 +02:00
Simon Friis Vindum
7c04c9f969
Rust: Store arity in tuple type parameters
...
Type parameters are required to belong to a single type only. Since we store the arity for tuple types, we need to store the arity in tuple type parameters as well such that we can associate them to the tuple type of the same arity.
2025-07-15 09:50:15 +02:00
Napalys Klicius
887d80f49f
Added change note
2025-07-15 09:37:34 +02:00
Napalys Klicius
1851deb929
Removed libxmljs from being marked as sink for xml-bomb.
2025-07-15 09:33:11 +02:00
Mathias Vorreiter Pedersen
29cceeba1a
C++: Don't use asExpr to mark the sink in 'cpp/uncontrolled-process-operation'.
2025-07-14 18:08:58 +01:00
Jeroen Ketema
2ed54d52ad
Merge pull request #20040 from MathiasVP/fix-global-variable-recursion-fp
...
C++: Fix global variable dataflow FP
2025-07-14 18:59:34 +02:00
Geoffrey White
26dae8144c
Rust: Make rust/summary/query-sinks less noisy and thus more useful. This is the one in the DCA meta queries output, not the grand total used in metrics.
2025-07-14 17:26:43 +01:00
Jeroen Ketema
d33cd71685
Merge pull request #20030 from github/tausbn/javascript-ignore-tsconfig-outdirs-that-exclude-everything
...
JavaScript: Ignore `outDir`s that would exclude everything
2025-07-14 17:36:30 +02:00
Paolo Tranquilli
85d1e06335
Merge pull request #20039 from github/redsun82/kotlin-plugin-test
...
Kotlin: tweak plugin test
2025-07-14 17:20:27 +02:00
Mathias Vorreiter Pedersen
c83895fdd2
Merge branch 'main' into fix-global-variable-recursion-fp
2025-07-14 16:08:46 +01:00
Mathias Vorreiter Pedersen
1d36405084
C++: Accept path changes.
2025-07-14 15:47:06 +01:00
Simon Friis Vindum
03a9a1688e
Rust: Add type inference for tuples
2025-07-14 16:37:05 +02:00
Jeroen Ketema
199587095a
Add overlay annotations
2025-07-14 16:31:04 +02:00
Jeroen Ketema
cbde11ddc9
Properly share ConceptsShared.qll
2025-07-14 16:30:45 +02:00
Simon Friis Vindum
21c030fa46
Rust: Expand on type inference test for tuples
2025-07-14 16:24:11 +02:00
Mathias Vorreiter Pedersen
a825213c05
C++: Fix FP by not generating a global def entry node for variable 'v' in the 'IRfunction' for 'v' itself.
2025-07-14 15:22:52 +01:00
Mathias Vorreiter Pedersen
46627c677d
C++: Add FP in dataflow through global variables.
2025-07-14 15:20:08 +01:00
Simon Friis Vindum
87a8dccf7a
Merge pull request #20037 from paldepind/rust/type-inference-rename-expectations
...
Rust: Rename type inference test inline expectation tag
2025-07-14 15:54:18 +02:00
Joe Farebrother
0f04a8b2c0
Update integration test output
2025-07-14 14:35:12 +01:00
Paolo Tranquilli
31d0897f74
Kotlin: disable bazel cache in plugin test
2025-07-14 15:30:11 +02:00
Joe Farebrother
f784bb0a35
Fix qldoc errors + typos
2025-07-14 14:26:49 +01:00
Nick Rolfe
c941e917e7
Merge pull request #19731 from github/nickrolfe/ruby-compile-for-overlay-eval
...
Ruby: enable overlay compilation
2025-07-14 08:20:28 -04:00
Simon Friis Vindum
72854537f4
Merge branch 'main' into rust/type-inference-rename-expectations
2025-07-14 14:15:59 +02:00
Paolo Tranquilli
77cab9d068
Kotlin: tweak plugin test
...
Put less emphasis on plugin build isolation, to get a better DevEx out
of it. The crux of the test is the database extraction part, not the
plugin build.
2025-07-14 13:52:22 +02:00
Geoffrey White
918700ff6f
Merge branch 'main' into moresensitive2
2025-07-14 11:58:08 +01:00
Geoffrey White
da0742f3ec
Rust: Update path resolution consistency .expected.
2025-07-14 11:45:45 +01:00
Geoffrey White
30c6082b5d
Sync identical files.
2025-07-14 11:45:34 +01:00
Geoffrey White
b43a0e758b
Merge pull request #19946 from geoffw0/models3b
...
Rust: Update legacy MaD models 3
2025-07-14 11:19:47 +01:00
Geoffrey White
e121579a85
Rust: Adjust the test labels slightly.
2025-07-14 11:19:31 +01:00
Geoffrey White
9f59a3501c
Rust: Revert ipaddr and fingerprint terms (too many FPs).
2025-07-14 11:17:09 +01:00
Joe Farebrother
61af4e4514
Add changenote and update integraion test output
2025-07-14 11:00:05 +01:00
Geoffrey White
be7db8079a
Rust: Accept consistency check change (from CI).
2025-07-14 10:59:03 +01:00
Joe Farebrother
ea48fcca8f
Update doc for equalsNotEquals
2025-07-14 10:49:28 +01:00
Ian Lynagh
86ebf3d9f6
Merge pull request #20034 from github/igfoo/fix_regex_in_dbscheme_parser
...
Kotlin: Update regex patterns to use raw string notation
2025-07-14 10:43:45 +01:00
Jeroen Ketema
f07d8ee493
Remove duplicate copies of CryptoAlgorithms and CryptoAlgorithmNames
2025-07-14 11:39:06 +02:00
Jeroen Ketema
f4ba2e1fd0
Properly share CryptoAlgorithms and CryptoAlgorithmNames
2025-07-14 11:39:00 +02:00
Jeroen Ketema
c582a9ccd6
Remove duplicate copies of SensitiveDataHeuristics
2025-07-14 11:38:52 +02:00
Jeroen Ketema
8b828cecf1
Use shared SensitiveDataHeuristics
2025-07-14 11:38:47 +02:00
Jeroen Ketema
01ee3f7011
Shared: Add shared concepts library
2025-07-14 11:38:39 +02:00
Michael B. Gale
27f2000eff
Merge pull request #20035 from github/dependabot/go_modules/go/extractor/extractor-dependencies-5538d87460
...
Bump golang.org/x/tools from 0.34.0 to 0.35.0 in /go/extractor in the extractor-dependencies group
2025-07-14 10:12:38 +01:00
Simon Friis Vindum
1f2e0683e7
Rust: Rename type inference test inline expectation tag
2025-07-14 11:02:22 +02:00
Napalys Klicius
cb6978063e
Merge pull request #19388 from AdnaneKhan/patch-1
...
Actions: Fix Critical Artifact poisoning False Positive
2025-07-14 09:58:18 +02:00
dependabot[bot]
c267a88f88
Bump golang.org/x/tools
...
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-version: 0.35.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: extractor-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-07-14 03:37:24 +00:00
Ian Lynagh
a6701ced8d
Kotlin: Update regex patterns to use raw string notation
...
Fixes warnings like
SyntaxWarning: invalid escape sequence '\S'
2025-07-13 23:42:50 +01:00
Jeroen Ketema
d82d5c23bf
Merge pull request #20026 from jketema/concept-fix
...
C++: Fix C++20 concept related class extensions
2025-07-13 10:20:10 +02:00
Owen Mansel-Chan
391e9f7471
Merge pull request #20000 from owen-mc/go/request-forgery
...
Go: Add `Head` and `Client.Head` from `net/http` as request forgery sinks
2025-07-12 00:30:23 +01:00
Owen Mansel-Chan
03e8865933
Merge pull request #20025 from owen-mc/java/unsafe-deserialization
...
Java: add extra sink for `java/unsafe-deserialization`
2025-07-11 23:59:22 +01:00
Joe Farebrother
58f503de38
Update docs for incomplete ordering + inconsistent hashing
2025-07-11 23:08:50 +01:00
Geoffrey White
05e1cd437d
Rust: Fix garbled merge.
2025-07-11 17:50:24 +01:00
Geoffrey White
e20ae48699
Merge branch 'main' into models3b
2025-07-11 17:37:52 +01:00
Adnan Khan
c95b5ce598
Merge branch 'main' into patch-1
2025-07-11 09:12:39 -07:00
AdnaneKhan
6ac0f0e031
Fix change note filename.
2025-07-11 12:11:58 -04:00
Geoffrey White
68a37f99e3
Rust: Add something similar as a type inference test case.
2025-07-11 17:08:05 +01:00
Arthur Baars
14a362d1bc
Merge pull request #20029 from github/aibaars/more-pattern-tests
...
Rust: add more type inference tests for patterns and a simple one for a closure call
2025-07-11 17:35:37 +02:00
Geoffrey White
33ea822f40
Rust: Workaround for type inference issue in the test.
2025-07-11 16:09:43 +01:00
Taus
30f705822d
JavaScript: Add test where outDir resolves to an unwanted path
2025-07-11 14:58:03 +00:00
Taus
344535b559
Merge pull request #19672 from github/tausbn/python-support-type-annotations-in-call-graph
...
Python: Support type annotations in call graph
2025-07-11 16:44:10 +02:00
Geoffrey White
4778ef616a
Rust: Add a test case for password_confirmation.
2025-07-11 15:43:31 +01:00
Tom Hvitved
88b4f971b5
Merge pull request #20027 from hvitved/rust/remove-resolves-as-item
...
Rust: Remove `Resolvable.resolvesAsItem`
2025-07-11 16:39:12 +02:00
Mathias Vorreiter Pedersen
1da42cb590
Merge pull request #20023 from MathiasVP/dataflow-for-functors
...
C++: Better dataflow for function objects
2025-07-11 15:14:27 +01:00
Joe Farebrother
843a6c8012
Remove total order check from equals not equals (doesn't make sense there; total order doesn't define eq or ne methods at all)
2025-07-11 15:12:59 +01:00
Joe Farebrother
083d258585
Add/update unit tests
2025-07-11 15:10:45 +01:00
Arthur Baars
519905ee9e
Rust: type inference: add test for closure argument
2025-07-11 15:59:43 +02:00
Arthur Baars
32e7a9d445
Rust: type inference: more pattern matching tests
...
Thanks to co-pilot for generating the examples
2025-07-11 15:55:45 +02:00
Taus
2f822cb0cd
JavaScript: Add change note
2025-07-11 13:32:35 +00:00
Taus
43accc50cd
JavaScript: Ignore outDirs that would exclude everything
...
In #19680 we added support for automatically ignoring files in the
`outDir` directory as specified in the TSconfig compiler options (as
these files were likely duplicates of `.ts` file we were already
scanning).
However, in some cases people put `outDir: "."` or even `outDir: ".."`
in their configuration, which had the side effect of excluding _all_
files, leading to a failed extraction.
With the changes in this PR, we now ignore any `outDir`s that are not
properly contained within the source root of the code being scanned.
This should prevent the files from being extracted, while still allowing
us to not double-scan files in, say, a `.github` directory, as seen in
some Actions workflows.
2025-07-11 13:28:59 +00:00
Mathias Vorreiter Pedersen
053a749e14
C++: Add change note.
2025-07-11 13:43:01 +01:00
Tom Hvitved
655b3de6bb
Rust: Remove Resolvable.resolvesAsItem
...
Removes one more use of extractor-based resolution.
2025-07-11 14:41:41 +02:00
Mathias Vorreiter Pedersen
649c8831ec
Merge pull request #20014 from jketema/wchar
...
C++: Do not alert on unreachable code in `cpp/incorrect-string-type-conversion`
2025-07-11 13:39:37 +01:00
Tom Hvitved
0a18db8960
Merge pull request #20020 from hvitved/rust/type-inference-pattern-matching
...
Rust: Type inference for pattern matching
2025-07-11 14:05:10 +02:00
Taus
c6c6a857df
Python: Add tests
...
Also fixes an issue with the return type annotations that caused these
to not work properly.
Currently, annotated assignments don't work properly, due to the fact
that our flow relation doesn't consider flow going to the "type" part of
an annotated assignment. This means that in `x : Foo`, we do correctly
note that `x` is annotated with `Foo`, but we have no idea what `Foo`
is, since it has no incoming flow.
To fix this we should probably just extend the flow relation, but this
may need to be done with some care, so I have left it as future work.
2025-07-11 12:03:14 +00:00
Taus
2c45550a9f
Python: Add change note
...
Co-authored-by: Napalys Klicius <napalys@github.com >
2025-07-11 12:03:14 +00:00
Taus
d1cf7f0624
Python: Support type annotations in call graph
...
Adds support for tracking instances via type annotations. Also adds a
convenience method to the newly added `Annotation` class,
`getAnnotatedExpression`, that returns the expression that is annotated
with the given type. For return annotations this is any value returned
from the annotated function in question.
Co-authored-by: Napalys Klicius <napalys@github.com >
2025-07-11 12:03:14 +00:00
Jeroen Ketema
232377a583
C++: Fix C++20 concept related class extensions
2025-07-11 13:38:06 +02:00
Geoffrey White
8f6f9f4359
Add change notes.
2025-07-11 11:54:59 +01:00
Tom Hvitved
edf6c7fbd6
Rust: Handle (Enum::)Variant::<TypeArg> type mentions
2025-07-11 12:44:47 +02:00
Tom Hvitved
a96d3d7be8
Rust: Add more type inference tests
2025-07-11 12:42:54 +02:00
Owen Mansel-Chan
7764fbb664
Change note
2025-07-11 11:05:48 +01:00
Owen Mansel-Chan
8e4bd1a102
Add sink for ObjectInput.readObject to make test pass
2025-07-11 11:05:38 +01:00
Owen Mansel-Chan
34fae324a0
Add test for ObjectInput.readObject
2025-07-11 11:03:47 +01:00
Mathias Vorreiter Pedersen
4f538a2b1f
C++: Accept taint test changes.
2025-07-11 09:46:22 +01:00
Mathias Vorreiter Pedersen
6d0c8c6d77
C++: Work around an extractor bug.
2025-07-11 09:46:20 +01:00
Mathias Vorreiter Pedersen
df241ad4f6
C++: Fix lambda creation for objects with no constructor.
2025-07-11 09:46:09 +01:00
Tom Hvitved
ac13f408e4
Add change note
2025-07-11 10:42:50 +02:00
Tom Hvitved
4ab2977358
Rust: Type inference for pattern matching
2025-07-11 10:37:40 +02:00
Mathias Vorreiter Pedersen
b53c3547d0
C++: Add lambda dispatch for functors.
2025-07-11 09:36:45 +01:00
Mathias Vorreiter Pedersen
663c3e7b6d
C++: Sync identical files.
2025-07-11 09:36:44 +01:00
Mathias Vorreiter Pedersen
11cba94032
C++: Add a missing predicate on 'UninitializedInstruction' that we will use later.
2025-07-11 09:36:42 +01:00
Mathias Vorreiter Pedersen
6736dd4e8f
C++: Add some tests with missing flow through function objects.
2025-07-11 09:36:38 +01:00
Tom Hvitved
53ee565fdb
Rust: Add more type inference tests
2025-07-11 10:22:24 +02:00
Jonas Jensen
76544f2966
Merge pull request #19943 from asgerf/approximate-related-location
...
Support approximate related locations
2025-07-11 10:16:24 +02:00
Tom Hvitved
742139927c
Merge pull request #19658 from hvitved/rust/type-inference-library-param-fix
...
Rust: Fix type inference for library parameters
2025-07-11 08:34:19 +02:00
Adnan Khan
07598e8b62
Add test results.
2025-07-11 05:59:13 +00:00
Owen Mansel-Chan
006d77ffdd
Refactor QL to make type check more concise
2025-07-11 06:13:01 +01:00
Tom Hvitved
1d7d45e16b
Rust: Update expected test output
2025-07-10 19:40:39 +02:00
Tom Hvitved
8cd357a8a0
Rust: Fix type inference for library parameters
2025-07-10 19:40:37 +02:00
Tom Hvitved
1e9520c737
Merge pull request #19995 from hvitved/rust/disambiguate-assoc-function-calls
...
Rust: Disambiguate associated function calls
2025-07-10 19:38:06 +02:00
Geoffrey White
123458fd21
Sync identical files.
2025-07-10 18:10:24 +01:00
Geoffrey White
6de5a618f3
Rust: Accept consistency changes as well.
2025-07-10 18:03:12 +01:00
Jeroen Ketema
6d8e2f8231
Merge pull request #20017 from jketema/final
...
C++: Add dataflow predicate for checking if a node is the final value of a parameter
2025-07-10 18:47:09 +02:00
Geoffrey White
01c75e38f7
Rust: The rusqlite row.get() calls are missing a canonical path.
2025-07-10 17:31:37 +01:00
AdnaneKhan
1b794e056a
Add extra test suggested by @Napalys
2025-07-10 12:24:36 -04:00
Adnan Khan
7be938c6c3
Handle multiple whitespaces in runner temp regex.
...
Co-authored-by: Napalys Klicius <napalys@github.com >
2025-07-10 12:22:14 -04:00
Geoffrey White
75078346c0
Rust: Accept .expected changes (mostly renumberings).
2025-07-10 17:05:12 +01:00
Owen Mansel-Chan
c39e5a7d97
Update qhelp: SnakeYaml is safe from version 2.0
2025-07-10 16:54:00 +01:00
Nick Rolfe
3a0def7848
Merge pull request #19989 from github/nickrolfe/ruby-annotations
...
Ruby: add overlay annotations to AST/CFG/SSA layers
2025-07-10 11:53:21 -04:00
Mathias Vorreiter Pedersen
fefb35bede
Merge pull request #20016 from MathiasVP/add-more-thread-create-models
...
C++: Add more thread creation models
2025-07-10 16:44:04 +01:00
Jeroen Ketema
96c379a076
C++: Fix formatting and typo
2025-07-10 15:56:11 +02:00
Geoffrey White
7ba18fa5d0
Merge branch 'main' into models3b
2025-07-10 14:53:09 +01:00
Jeroen Ketema
214969feaf
C++: Add change note
2025-07-10 15:52:27 +02:00
Geoffrey White
439cf7a659
Merge pull request #19942 from geoffw0/models1
...
Rust: Update legacy MaD models 2
2025-07-10 14:50:48 +01:00
Jeroen Ketema
b32a8c2489
C++: Add dataflow predicate for checking if a node is the final value of a parameter
2025-07-10 15:47:23 +02:00
Jeroen Ketema
990b7f0b70
C++: Add change note
2025-07-10 15:13:15 +02:00
Geoffrey White
0c075abe3f
Rust: Fix merge (I picked the wrong version).
2025-07-10 13:59:10 +01:00
Geoffrey White
a6b4a18d51
Rust: Add negative patterns.
2025-07-10 13:56:14 +01:00
Geoffrey White
8f95e26ed6
Rust: Combine regexs where possible (likely better performance).
2025-07-10 13:56:12 +01:00
Geoffrey White
99e62d66e5
Rust: Add sensitive data patterns.
2025-07-10 13:56:11 +01:00
Geoffrey White
2cd4d984cc
Merge pull request #20002 from geoffw0/moresensitive1
...
Rust: Add more test cases for sensitive data
2025-07-10 13:54:20 +01:00
Geoffrey White
117e330d53
Merge branch 'main' into models1
2025-07-10 13:52:48 +01:00
Geoffrey White
3debd1ada9
Merge pull request #19948 from geoffw0/models5
...
Rust: Update legacy MaD models 4
2025-07-10 13:50:54 +01:00
Tom Hvitved
70476c0e14
Add change note
2025-07-10 14:50:00 +02:00
Mathias Vorreiter Pedersen
7ddc909d4e
C++: Accept test changes after review.
2025-07-10 13:29:19 +01:00
Tamás Vajk
1351f57d2b
Merge pull request #19998 from tamasvajk/quality/label-in-switch
...
Java: Add query to detect non-case labels in switch statements
2025-07-10 14:13:38 +02:00
Mathias Vorreiter Pedersen
dda4a97080
Update cpp/ql/test/library-tests/dataflow/external-models/test.cpp
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2025-07-10 13:00:43 +01:00
Tom Hvitved
054bbc2ff7
Merge pull request #20015 from hvitved/rust/fix-bad-join
...
Rust: Fix bad join
2025-07-10 13:59:07 +02:00
Mathias Vorreiter Pedersen
b547dc4621
C++: Add change note.
2025-07-10 12:52:55 +01:00
Tom Hvitved
c7d20eb98a
Rust: Update expected test output
2025-07-10 13:52:19 +02:00
Tom Hvitved
ebde0bdc47
Rust: Disambiguate calls to associated functions
2025-07-10 13:52:17 +02:00
Tom Hvitved
95c2b9f8f7
Rust: Add more type inference tests
2025-07-10 13:52:09 +02:00
Mathias Vorreiter Pedersen
89cf215ebb
C++: Add models for 'std::thread' and accept test changes.
2025-07-10 12:45:20 +01:00
Mathias Vorreiter Pedersen
2062a774fc
C++: Add 'std::thread' test with missing flow.
2025-07-10 12:44:02 +01:00
Mathias Vorreiter Pedersen
d198a964e0
C++: Add a model for 'pthread_create' and accept test changes.
2025-07-10 12:20:24 +01:00
Mathias Vorreiter Pedersen
675a072639
C++: Add 'pthread_create' test with missing flow.
2025-07-10 12:16:23 +01:00
Owen Mansel-Chan
e362e536c0
Merge pull request #20009 from github/dependabot/go_modules/go/extractor/extractor-dependencies-0e1361fb85
...
Bump golang.org/x/mod from 0.25.0 to 0.26.0 in /go/extractor in the extractor-dependencies group
2025-07-10 11:51:03 +01:00
Tom Hvitved
d4de56c157
Rust: Fix bad join
...
Before
```
Evaluated relational algebra for predicate TypeInference::getRangeType/1#b4219ae9@c15c3f0b with tuple counts:
1 ~0% {1} r1 = CONSTANT(unique string)[".."]
692 ~0% {1} | JOIN WITH `RangeExpr::Generated::RangeExpr.getOperatorName/0#dispred#7c90645c_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1
453 ~0% {1} r2 = JOIN r1 WITH `RangeExpr::Generated::RangeExpr.getStart/0#dispred#914c8207` ON FIRST 1 OUTPUT Lhs.0
266 ~1% {1} r3 = JOIN r2 WITH `RangeExpr::Generated::RangeExpr.getEnd/0#dispred#6c692cfa` ON FIRST 1 OUTPUT Lhs.0
10684422 ~0% {3} | JOIN WITH cached_Synth::Synth::TStruct#c298e97c CARTESIAN PRODUCT OUTPUT Rhs.1, _, Lhs.0
10684422 ~0% {3} | REWRITE WITH Out.1 := "core::ops::range::Range"
266 ~0% {2} | JOIN WITH `Addressable::Addressable.getCanonicalPath/0#dispred#6044348f#bb` ON FIRST 2 OUTPUT Lhs.2, Lhs.0
363 ~3% {1} r4 = JOIN r1 WITH `RangeExpr::Generated::RangeExpr.getEnd/0#dispred#6c692cfa` ON FIRST 1 OUTPUT Lhs.0
97 ~2% {1} | AND NOT `RangeExpr::Generated::RangeExpr.getStart/0#dispred#914c8207_0#antijoin_rhs`(FIRST 1)
3896199 ~0% {3} | JOIN WITH cached_Synth::Synth::TStruct#c298e97c CARTESIAN PRODUCT OUTPUT Rhs.1, _, Lhs.0
3896199 ~0% {3} | REWRITE WITH Out.1 := "core::ops::range::RangeTo"
97 ~1% {2} | JOIN WITH `Addressable::Addressable.getCanonicalPath/0#dispred#6044348f#bb` ON FIRST 2 OUTPUT Lhs.2, Lhs.0
187 ~0% {1} r5 = r2 AND NOT `RangeExpr::Generated::RangeExpr.getEnd/0#dispred#6c692cfa_0#antijoin_rhs`(FIRST 1)
7511229 ~2% {3} | JOIN WITH cached_Synth::Synth::TStruct#c298e97c CARTESIAN PRODUCT OUTPUT Rhs.1, _, Lhs.0
7511229 ~0% {3} | REWRITE WITH Out.1 := "core::ops::range::RangeFrom"
187 ~1% {2} | JOIN WITH `Addressable::Addressable.getCanonicalPath/0#dispred#6044348f#bb` ON FIRST 2 OUTPUT Lhs.2, Lhs.0
1 ~0% {1} r6 = CONSTANT(unique string)["..="]
138 ~0% {1} | JOIN WITH `RangeExpr::Generated::RangeExpr.getOperatorName/0#dispred#7c90645c_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1
131 ~0% {1} r7 = JOIN r6 WITH `RangeExpr::Generated::RangeExpr.getStart/0#dispred#914c8207` ON FIRST 1 OUTPUT Lhs.0
131 ~0% {1} | JOIN WITH `RangeExpr::Generated::RangeExpr.getEnd/0#dispred#6c692cfa` ON FIRST 1 OUTPUT Lhs.0
5261877 ~0% {3} | JOIN WITH cached_Synth::Synth::TStruct#c298e97c CARTESIAN PRODUCT OUTPUT Rhs.1, _, Lhs.0
5261877 ~0% {3} | REWRITE WITH Out.1 := "core::ops::range::RangeInclusive"
131 ~3% {2} | JOIN WITH `Addressable::Addressable.getCanonicalPath/0#dispred#6044348f#bb` ON FIRST 2 OUTPUT Lhs.2, Lhs.0
138 ~0% {1} r8 = JOIN r6 WITH `RangeExpr::Generated::RangeExpr.getEnd/0#dispred#6c692cfa` ON FIRST 1 OUTPUT Lhs.0
7 ~0% {1} | AND NOT `RangeExpr::Generated::RangeExpr.getStart/0#dispred#914c8207_0#antijoin_rhs`(FIRST 1)
281169 ~0% {3} | JOIN WITH cached_Synth::Synth::TStruct#c298e97c CARTESIAN PRODUCT OUTPUT Rhs.1, _, Lhs.0
281169 ~2% {3} | REWRITE WITH Out.1 := "core::ops::range::RangeToInclusive"
7 ~0% {2} | JOIN WITH `Addressable::Addressable.getCanonicalPath/0#dispred#6044348f#bb` ON FIRST 2 OUTPUT Lhs.2, Lhs.0
688 ~0% {2} r9 = r3 UNION r4 UNION r5 UNION r7 UNION r8
return r9
```
After
```
Evaluated relational algebra for predicate TypeInference::getRangeType/1#b4219ae9@7d06d41t with tuple counts:
1 ~0% {2} r1 = SCAN Stdlib::RangeToStruct#236b6b84 OUTPUT _, In.0
1 ~0% {2} | REWRITE WITH Out.0 := ".."
692 ~0% {2} | JOIN WITH `RangeExpr::Generated::RangeExpr.getOperatorName/0#dispred#7c90645c_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1
363 ~0% {2} | JOIN WITH `RangeExpr::Generated::RangeExpr.getEnd/0#dispred#6c692cfa` ON FIRST 1 OUTPUT Lhs.0, Lhs.1
97 ~0% {2} | AND NOT `RangeExpr::Generated::RangeExpr.getStart/0#dispred#914c8207_0#antijoin_rhs`(FIRST 1)
1 ~0% {2} r2 = SCAN Stdlib::RangeFromStruct#8edcefe7 OUTPUT _, In.0
1 ~0% {2} | REWRITE WITH Out.0 := ".."
692 ~0% {2} | JOIN WITH `RangeExpr::Generated::RangeExpr.getOperatorName/0#dispred#7c90645c_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1
453 ~0% {2} | JOIN WITH `RangeExpr::Generated::RangeExpr.getStart/0#dispred#914c8207` ON FIRST 1 OUTPUT Lhs.0, Lhs.1
187 ~0% {2} | AND NOT `RangeExpr::Generated::RangeExpr.getEnd/0#dispred#6c692cfa_0#antijoin_rhs`(FIRST 1)
1 ~0% {2} r3 = SCAN Stdlib::RangeToInclusiveStruct#fe43a433 OUTPUT _, In.0
1 ~0% {2} | REWRITE WITH Out.0 := "..="
138 ~0% {2} | JOIN WITH `RangeExpr::Generated::RangeExpr.getOperatorName/0#dispred#7c90645c_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1
138 ~0% {2} | JOIN WITH `RangeExpr::Generated::RangeExpr.getEnd/0#dispred#6c692cfa` ON FIRST 1 OUTPUT Lhs.0, Lhs.1
7 ~0% {2} | AND NOT `RangeExpr::Generated::RangeExpr.getStart/0#dispred#914c8207_0#antijoin_rhs`(FIRST 1)
1 ~0% {2} r4 = SCAN Stdlib::RangeStruct#0fabc810 OUTPUT _, In.0
1 ~0% {2} | REWRITE WITH Out.0 := ".."
692 ~3% {2} | JOIN WITH `RangeExpr::Generated::RangeExpr.getOperatorName/0#dispred#7c90645c_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1
453 ~4% {2} | JOIN WITH `RangeExpr::Generated::RangeExpr.getStart/0#dispred#914c8207` ON FIRST 1 OUTPUT Lhs.0, Lhs.1
266 ~2% {2} | JOIN WITH `RangeExpr::Generated::RangeExpr.getEnd/0#dispred#6c692cfa` ON FIRST 1 OUTPUT Lhs.0, Lhs.1
1 ~0% {2} r5 = SCAN Stdlib::RangeInclusiveStruct#a869750a OUTPUT _, In.0
1 ~0% {2} | REWRITE WITH Out.0 := "..="
138 ~0% {2} | JOIN WITH `RangeExpr::Generated::RangeExpr.getOperatorName/0#dispred#7c90645c_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1
131 ~0% {2} | JOIN WITH `RangeExpr::Generated::RangeExpr.getStart/0#dispred#914c8207` ON FIRST 1 OUTPUT Lhs.0, Lhs.1
131 ~0% {2} | JOIN WITH `RangeExpr::Generated::RangeExpr.getEnd/0#dispred#6c692cfa` ON FIRST 1 OUTPUT Lhs.0, Lhs.1
688 ~7% {2} r6 = r1 UNION r2 UNION r3 UNION r4 UNION r5
return r6
```
2025-07-10 12:34:08 +02:00
Kasper Svendsen
0739c03d03
Overlay: Add discarding of base XML locatables for Java
2025-07-10 12:31:16 +02:00
Kasper Svendsen
d7094a96b5
Overlay: Add discarding of all Java base properties
2025-07-10 12:31:15 +02:00
Arthur Baars
b573246639
Merge pull request #20003 from github/aibaars/query-result
...
Rust: add test cases for basic unwrapping and pattern matching
2025-07-10 12:30:59 +02:00
Kasper Svendsen
767d55bb18
Merge pull request #20013 from kaspersv/kaspersv/ql4ql-discard-entity-preds-alive
...
QL4QL: Discard predicates are always alive
2025-07-10 12:30:44 +02:00
Kasper Svendsen
c7a3b6543e
Address copilot comment
2025-07-10 12:01:29 +02:00
Jeroen Ketema
399967b507
C++: Do not alert on unreachable code in cpp/incorrect-string-type-conversion
2025-07-10 11:49:12 +02:00
Jeroen Ketema
2907861075
C++: Add cpp/incorrect-string-type-conversion test with unreachable code
2025-07-10 11:48:53 +02:00
Jeroen Ketema
acc06fab20
C++: Convert cpp/incorrect-string-type-conversion test to inline expectations
2025-07-10 11:48:18 +02:00
Geoffrey White
4dea5eef70
Rust: Fix futures_io models.
2025-07-10 10:41:09 +01:00
Nick Rolfe
ab9ba02ea1
Ruby: enable overlay compilation
2025-07-10 10:38:06 +01:00
Arthur Baars
cc5e6b2195
Rust: add test cases for basic unwrapping and pattern matching
2025-07-10 11:15:07 +02:00
Jeroen Ketema
18760b4025
Merge pull request #10923 from dscho/patch-1
...
Download GitHub database: fix `gh` invocation
2025-07-10 11:11:59 +02:00
Kasper Svendsen
1723c6ed09
QL4QL: Add discard predicate to dead code test
2025-07-10 11:09:43 +02:00
Kasper Svendsen
9f260cf72f
QL4QL: Discard predicates are always alive
2025-07-10 11:09:42 +02:00
Kasper Svendsen
9de3617032
QL4QL: Add overlay[discard_entity] annotation
2025-07-10 11:09:42 +02:00
Arthur Baars
7c5cdd9a9b
Merge pull request #20001 from github/aibaars/trait-impl-int
...
Rust: fix missing canonical paths for trait impls on builtin numeric types
2025-07-10 10:53:01 +02:00
Jeroen Ketema
51f639111b
Merge pull request #20010 from jketema/change-typo
...
C++: Fix some typos in recent change notes
2025-07-10 10:48:40 +02:00
Geoffrey White
8177b0938d
Merge branch 'main' into models5
2025-07-10 09:41:48 +01:00
Jeroen Ketema
928b7475b2
C++: Fix some typos in recent change notes
2025-07-10 10:22:41 +02:00
Geoffrey White
ae3253b9c3
Merge pull request #20004 from geoffw0/tt
...
Rust: Add type inference test cases for tuples.
2025-07-10 09:12:47 +01:00
Johannes Schindelin
3bff6c4a4a
Download GitHub database: fix gh invocation on Windows
...
When running `gh api /repos/...` in the Git Bash on Windows, it leads to
a 404. The reason is the automatic path conversion from "Unix-y" paths
on the command-line to proper Windows paths, as described in detail
https://www.msys2.org/docs/filesystem-paths/ . Git Bash simply has no
chance to understnad that `/repos/...` is not referring to an absolute
path on the local filesystem.
Let's just skip the leading slash. This is as valid an invocation, and
sidesteps that path conversion on Windows.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de >
2025-07-10 10:01:18 +02:00
Tamas Vajk
5edb60ea04
Improve query documentation
2025-07-10 09:43:15 +02:00
Hugo
c3c8d5db13
Create 2025-06-10-getasupertype.md
...
Create 2025-06-10-getasupertype.md
2025-07-10 05:48:52 +02:00
dependabot[bot]
e57b272cfa
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.25.0 to 0.26.0
- [Commits](https://github.com/golang/mod/compare/v0.25.0...v0.26.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/mod
dependency-version: 0.26.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: extractor-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-07-10 03:41:42 +00:00
Adnan Khan
e40e4c3856
Remove unneeded test file.
2025-07-09 23:06:18 -04:00
Hugo
fb693837e4
feat: add getASupertype() predicate in ValueOrRefType.
...
Add the getASupertype() predicate in ValueOrRefType.
2025-07-10 02:19:17 +02:00
Geoffrey White
36720ca4dd
Rust: Update .expected file after autoformat.
2025-07-09 21:52:23 +01:00
Arthur Baars
d20bc98363
Rust: fix missing canonical paths
2025-07-09 21:42:53 +02:00
Geoffrey White
6c9c8904d7
Rust: Autoformat.
2025-07-09 18:43:33 +01:00
Geoffrey White
dfbdd2bd02
Rust: Add type inference test cases for tuples.
2025-07-09 16:54:24 +01:00
Geoffrey White
47a4ba33a4
Rust: Fix typo in models (also fixed in another open PR).
2025-07-09 16:00:35 +01:00
Geoffrey White
a034e29040
Rust: Simplify the test a little.
2025-07-09 15:52:54 +01:00
Geoffrey White
097ac69207
Rust: Current sources test regressions.
2025-07-09 15:52:19 +01:00
Joe Farebrother
8fb9bdd0af
move equals attr test to equals attr folder
2025-07-09 15:25:21 +01:00
Geoffrey White
8d0c14ca4e
Merge branch 'main' into models3b
2025-07-09 15:25:16 +01:00
Geoffrey White
4281fe74bd
Rust: We don't really need the split into two test cases any more.
2025-07-09 15:22:04 +01:00
Geoffrey White
4397863586
Rust: Update after merge with main.
2025-07-09 15:17:31 +01:00
Geoffrey White
597f678978
Merge branch 'main' into models1
2025-07-09 14:48:32 +01:00
Joe Farebrother
a687b60af9
Modernise equals-hash-mismatch
2025-07-09 14:14:38 +01:00
Joe Farebrother
eb1b5a35d7
Modernize inconsistent equality
2025-07-09 14:14:30 +01:00
Joe Farebrother
4c5c4e06c3
Move inconsistentEquality and equals-hash-mismatch to subfolder
2025-07-09 14:14:26 +01:00
Joe Farebrother
e71af8fd6d
Move to subfolder
2025-07-09 14:14:22 +01:00
Joe Farebrother
fccdc30ac5
Modernize incomplete ordering query
2025-07-09 14:14:17 +01:00
Nick Rolfe
c415795595
Ruby: add changenote for overlay[local] annotations
2025-07-09 13:32:49 +01:00
Jonas Jensen
3ffda2f341
Shared: Overhaul the AlertFiltering QLDoc
...
The documentation is now up-to-date with the new and more relaxed rules
that allow overapproximating the results. I have also attempted to make
a clearer distinction between the requirements of the specification and
the behaviour of the implementation.
2025-07-09 14:32:18 +02:00
Geoffrey White
3bb3fccfdb
Rust: Accept consistency check changes.
2025-07-09 12:02:30 +01:00
Nick Rolfe
e1f2433dbf
Ruby: make resolveConstant overlay[global]
2025-07-09 11:59:25 +01:00
Geoffrey White
22aa7f378a
Rust: Expand the test cases around IDs as sensitive data.
2025-07-09 11:33:47 +01:00
Geoffrey White
1124355cdb
Rust: Add a test case for 'from_trusted_iterator' as sensitive data FP.
2025-07-09 11:26:59 +01:00
Jonas Jensen
5a1246a586
Merge remote-tracking branch 'upstream/main' into approximate-related-location
2025-07-09 10:10:20 +02:00
Jonas Jensen
0d7a842e2f
Shared: improve documentation in AlertFiltering
2025-07-09 09:43:49 +02:00
Jonas Jensen
f1e9f0e323
Shared: improve join order in filterByLocation
...
It's better to join with the range expression first since that will only
multiply tuple counts by the number of lines in an average source/sink.
Joining with `restrictAlertsToStartLine` first would multiply tuple
counts by the number of sources/sinks in a given file.
2025-07-09 09:24:26 +02:00
Paolo Tranquilli
5722084dd5
Merge pull request #19999 from github/redsun82/rust-sha256s
...
Rust: set SHA256s in `MODULE.bazel`
2025-07-09 09:20:54 +02:00
Adnan Khan
db954d6d9f
Merge branch 'main' into patch-1
2025-07-08 23:31:35 -07:00
Arthur Baars
5b7485d11d
Rust: add testcase for impl trait on i32
2025-07-08 21:36:37 +02:00
Tom Hvitved
156f867c96
Merge pull request #19996 from hvitved/rust/type-inference-str-literal
...
Rust: Adjust the inferred type of string literals
2025-07-08 20:29:43 +02:00
Jaroslav Lobačevski
9393181c4e
Add tests and path normalization fix to handle $ expansion
2025-07-08 16:18:12 +00:00
Owen Mansel-Chan
a5333ae1a1
Add change note
2025-07-08 16:51:22 +01:00
Paolo Tranquilli
98195db500
Rust: set SHA256s in MODULE.bazel
2025-07-08 17:49:30 +02:00
AdnaneKhan
5d6a5d5cbb
Add change notes and test workflow file.
2025-07-08 10:35:39 -04:00
Adnan Khan
f4f919635a
Correctly specify regex.
...
Co-authored-by: Jaroslav Lobačevski <jarlob@github.com >
2025-07-08 10:17:29 -04:00
Geoffrey White
b1d5b8175c
Rust: Add the original test back as well.
2025-07-08 15:10:55 +01:00
Geoffrey White
d19259e6bb
Update rust/ql/test/library-tests/frameworks/postgres/main.rs
...
Co-authored-by: Arthur Baars <aibaars@github.com >
2025-07-08 15:03:44 +01:00
Geoffrey White
7211f4ace3
Update rust/ql/lib/codeql/rust/frameworks/rustcrypto/rustcrypto.model.yml
...
Co-authored-by: Arthur Baars <aibaars@github.com >
2025-07-08 15:01:43 +01:00
Tom Hvitved
22b833fbda
Rust: Fix bad join
2025-07-08 16:00:36 +02:00
Owen Mansel-Chan
990043ce86
Add net/http.Head and net/http.Client.Head as client requests
...
They were previously deliberately excluded.
2025-07-08 14:31:48 +01:00
Owen Mansel-Chan
71703aa497
Improve formatting of some QL
2025-07-08 14:29:11 +01:00
Geoffrey White
f3b5cc79ff
Merge branch 'main' into sqlx
2025-07-08 13:58:19 +01:00
Tamás Vajk
4f1ca21ef9
Merge pull request #19875 from tamasvajk/quality/spec_chars
...
Java: Add query to detect special characters in string literals
2025-07-08 14:56:35 +02:00
Tamas Vajk
5f7d746266
Java: Add query to detect non-case labels in switch statements
2025-07-08 14:53:39 +02:00
Owen Mansel-Chan
d437a096f1
Test more client request URL sinks
2025-07-08 13:20:04 +01:00
Nick Rolfe
b51940d1e2
Ruby: add overlay[local] annotations to AST/CFG/SSA layers
2025-07-08 13:09:27 +01:00
Tamas Vajk
ccbf7055f1
Adjust query precision
2025-07-08 13:31:08 +02:00
Tamas Vajk
d16570b05e
Revert "Adjust query tags"
...
This reverts commit 92685e6c2de69898d556706b04e6c562e54b26b8.
2025-07-08 13:28:26 +02:00
Tamas Vajk
c4def103f7
Improve query documentation
2025-07-08 13:28:26 +02:00
Tamas Vajk
15de398806
Adjust query tags
2025-07-08 13:28:25 +02:00
Tamas Vajk
a0c9c98373
Adjust references in query doc
2025-07-08 13:28:25 +02:00
Tamas Vajk
fd8b37cc28
Exclude Kotlin files
2025-07-08 13:28:24 +02:00
Tamas Vajk
09a2aeead6
Java: Add query to detect special characters in string literals
2025-07-08 13:28:18 +02:00
Tamás Vajk
f940cb2bdd
Merge pull request #19950 from tamasvajk/quality/useless-record-member
...
Java: Add 'Useless serialization member in record class' query
2025-07-08 13:26:11 +02:00
Tom Hvitved
2a207f9f6f
Rust: Update inline expectations
2025-07-08 13:03:16 +02:00
Tom Hvitved
73f854f073
Rust: Adjust the inferred type of string literals
2025-07-08 13:03:12 +02:00
Tom Hvitved
411aa6d2e5
Merge pull request #19971 from hvitved/rust/type-inference-for-range
...
Rust: Improve type inference for `for` loops and range expressions
2025-07-08 12:57:21 +02:00
Geoffrey White
3dabd51cf7
Rust: Fix a summaryModelDeprecated that was causing problems.
2025-07-08 11:24:57 +01:00
Tom Hvitved
1518cade7b
Address review comments
2025-07-08 11:29:24 +02:00
Tamas Vajk
813ce7d3f8
Rename query
2025-07-08 11:28:12 +02:00
Tamas Vajk
f2805ba80c
Improve query help
2025-07-08 11:28:11 +02:00
Tamas Vajk
82fe647a40
Improve alert message
2025-07-08 11:28:11 +02:00
Tamas Vajk
528389af38
Adjust expected file for query suite integration test
2025-07-08 11:28:10 +02:00
Tamas Vajk
a2d4f58af7
Use inline test expectations
2025-07-08 11:28:10 +02:00
Tamas Vajk
2cd0c64e41
Improve query quality
2025-07-08 11:28:09 +02:00
Tamas Vajk
e0cb1792bd
Java: Add 'Useless serialization member in record class' query
2025-07-08 11:28:09 +02:00
Tom Hvitved
6876838dd1
Rust: Add change note
2025-07-08 11:20:45 +02:00
Tom Hvitved
7701a31f4a
Rust: Improve type inference for for loops and range expressions
2025-07-08 11:20:42 +02:00
Tom Hvitved
52abf3ba02
Merge pull request #19997 from hvitved/java/use-mad-in-log-injection-test
...
Java: Use MaD in log injection test
2025-07-08 11:02:51 +02:00
Geoffrey White
f57d691424
Rust: Fix typo in model.
2025-07-08 09:51:20 +01:00
Tom Hvitved
6fdec47e83
Java: Use MaD in log injection test
2025-07-08 10:25:58 +02:00
Geoffrey White
c7de873a22
Rust: Update the libc models.
2025-07-08 08:44:44 +01:00
Geoffrey White
a1e9a4eddf
Rust: Accept test .expected changes.
2025-07-08 08:44:24 +01:00
Geoffrey White
2195f0bb78
Merge branch 'main' into models5
2025-07-08 08:41:43 +01:00
Ian Lynagh
e5b4a15e35
Merge pull request #19994 from github/post-release-prep/codeql-cli-2.22.2
...
Post-release preparation for codeql-cli-2.22.2
2025-07-07 19:44:16 +01:00
Tom Hvitved
33e63109bb
Merge pull request #19993 from hvitved/rust/type-inference-function-call-expectations
...
Rust: Add type inference inline expectations for all function calls
2025-07-07 20:40:57 +02:00
github-actions[bot]
24a0ac1223
Post-release preparation for codeql-cli-2.22.2
2025-07-07 18:15:04 +00:00
Arthur Baars
aef357c757
Merge pull request #19988 from github/aibaars/extern-blocks
...
Rust: path resolution: handle items in `extern` blocks
2025-07-07 19:53:36 +02:00
Arthur Baars
8114071804
Merge branch 'main' into models1
2025-07-07 19:47:53 +02:00
Ian Lynagh
bb0173c9af
Merge pull request #19992 from github/release-prep/2.22.2
...
Release preparation for version 2.22.2
2025-07-07 17:54:28 +01:00
Arthur Baars
7721d14314
Rust: use getADescendant instead of getAnItem
...
This should handle all cases where items contained in intermediate nodes, such as MacroCall,
ExternBlock and MacroItem nodes.
2025-07-07 18:04:00 +02:00
Arthur Baars
da2f0f6069
Rust: remove MacroCallItemNode
...
Macro calls are not really items, so they can just be skipped
2025-07-07 18:03:02 +02:00
Arthur Baars
7556d7b57b
Rust: add test with extern block
2025-07-07 18:02:58 +02:00
Tom Hvitved
fad5e0daa8
Rust: Add type inference inline expectations for all function calls
2025-07-07 17:20:15 +02:00
Geoffrey White
a25330e6ed
Rust: Update rustcrypto models.
2025-07-07 15:10:59 +01:00
github-actions[bot]
f12daefabe
Release preparation for version 2.22.2
2025-07-07 14:00:26 +00:00
Tamás Vajk
8d16d0225c
Merge pull request #19991 from tamasvajk/quality/improve-query-docs
...
Improve query docs for `java/java-util-concurrent-scheduledthreadpoolexecutor`
2025-07-07 15:02:56 +02:00
Geoffrey White
a486549956
Update rust/ql/lib/codeql/rust/frameworks/tokio/io.model.yml
...
Co-authored-by: Arthur Baars <aibaars@github.com >
2025-07-07 14:01:00 +01:00
Tamas Vajk
6013c347df
Improve query docs for java/java-util-concurrent-scheduledthreadpoolexecutor
2025-07-07 14:22:40 +02:00
Mathias Vorreiter Pedersen
7bb3758093
Merge pull request #19976 from jketema/incr-2
...
C++: Output `CopyValue` in the IR when there is a non-transparent conversion
2025-07-07 13:08:50 +01:00
Jeroen Ketema
a004d9b2a2
Merge pull request #19990 from igfoo/igfoo/rename
...
C++: Rename a changenote file
2025-07-07 13:59:15 +02:00
Ian Lynagh
fd733676cb
C++: Rename a changenote file
2025-07-07 12:53:42 +01:00
Nick Rolfe
eb30233d44
Merge pull request #19963 from github/nickrolfe/rb-discard-locations
...
Ruby/QL: add discard predicates for locations
2025-07-07 06:41:28 -04:00
Tom Hvitved
8c90250dfc
Merge pull request #19577 from hvitved/rust/remove-library-source-dedup-logic
...
Rust: Remove source vs library deduplication logic
2025-07-07 11:25:33 +02:00
Tom Hvitved
6a9ed88d6e
Merge pull request #19975 from hvitved/rust/ssa-phi-in-capture
...
Rust: Fix SSA inconsistencies
2025-07-07 09:21:57 +02:00
Jeroen Ketema
d6d7c6d55f
Revert "C++: Factor out transparent conversions in their own predicate"
...
This reverts commit b185cc8b95 .
2025-07-04 23:22:46 +02:00
Jeroen Ketema
463ae4b1eb
C++: Address review comments
2025-07-04 23:13:37 +02:00
Owen Mansel-Chan
0788a90d88
Convert RequestForgery test to inline expectations
2025-07-04 16:56:05 +01:00
Owen Mansel-Chan
d10b9e665c
Fix linter warnings in Request Forgery tests
2025-07-04 16:55:09 +01:00
Nick Rolfe
7c5b186c71
Ruby/QL: add discard predicates for locations
2025-07-04 16:15:38 +01:00
Nick Rolfe
f714e5c5ba
Merge pull request #19896 from github/nickrolfe/overlay-deleted-files
...
Java/Ruby/Rust/QL: add `overlayChangedFiles` relation to dbscheme
2025-07-04 11:10:20 -04:00
Arthur Baars
84e5f2846b
Merge branch 'main' into nickrolfe/overlay-deleted-files
2025-07-04 16:19:59 +02:00
Jeroen Ketema
5c9a401806
Merge pull request #19977 from jketema/ruby-typo
...
Ruby: Fix typo in query message
2025-07-04 16:09:22 +02:00
Jeroen Ketema
52bbfa30d2
Ruby: update expected test results
2025-07-04 15:32:07 +02:00
Jeroen Ketema
b3225cf7e3
Rubt: Fix typo in query message
2025-07-04 15:22:03 +02:00
Tom Hvitved
379c913ce3
Rust: Remove source vs library deduplication logic
2025-07-04 14:58:20 +02:00
Tom Hvitved
e33ddce79f
Merge pull request #19847 from hvitved/rust/type-inference-explicit-args
...
Rust: Handle more explicit type arguments in type inference
2025-07-04 14:46:02 +02:00
Tom Hvitved
d1dd05e7bb
Rust: Fix SSA inconsistencies
2025-07-04 14:43:10 +02:00
Jeroen Ketema
d010b6eb01
C++: Update expected test results
2025-07-04 14:28:17 +02:00
Arthur Baars
3d435ddca0
Merge branch 'main' into rust/type-inference-explicit-args
2025-07-04 14:17:52 +02:00
Jeroen Ketema
2908570ce9
C++: Do not consider expression results discardable when there is a conversion
2025-07-04 14:10:34 +02:00
Jeroen Ketema
b185cc8b95
C++: Factor out transparent conversions in their own predicate
2025-07-04 14:09:34 +02:00
Jeroen Ketema
e68d10119b
C++: Fix typo in comment
2025-07-04 14:09:09 +02:00
Jeroen Ketema
799f33eb3a
C++: Add more postfix-crement tests
2025-07-04 14:08:29 +02:00
Mathias Vorreiter Pedersen
9dd3b33410
Merge pull request #19973 from MathiasVP/add-glibc-models
...
C++: Add `glibc` flow summaries
2025-07-04 10:21:14 +01:00
Tom Hvitved
2b2bd17d10
Rust: Add more SSA tests
2025-07-04 10:47:56 +02:00
Kasper Svendsen
785e0273f2
Merge pull request #19968 from kaspersv/kaspersv/overlay-java-getastrictancestor-caller
...
Overlay: Mark `RefType.getAStrictAncestor`` overlay[caller?]`
2025-07-04 09:38:02 +02:00
Mathias Vorreiter Pedersen
cda671711f
C++: Add change note.
2025-07-04 00:05:41 +01:00
Mathias Vorreiter Pedersen
24728a3417
C++: Accept test changes.
2025-07-04 00:03:42 +01:00
Mathias Vorreiter Pedersen
e89662beb7
C++: Add glibc flow summaries.
2025-07-03 18:53:18 +01:00
Aditya Sharad
6124940f55
Merge pull request #19893 from github/changedocs/2.22.1
...
Add changelog entry for CodeQL CLI version 2.22.1
2025-07-03 10:21:12 -07:00
Jeroen Ketema
da924efedb
Merge pull request #19970 from jketema/incr
...
C++: Add test showing we miss the operands of postfix crement in dataflow
2025-07-03 17:16:00 +02:00
Jeroen Ketema
5b26a426dc
C++: Add test showing we miss the operands of postfix crement in dataflow
2025-07-03 16:49:37 +02:00
Mathias Vorreiter Pedersen
56490732bd
Merge pull request #19969 from MathiasVP/add-glibc-to-bulk-generation-targets
...
C++: Add glibc to the list of bulk generation targets
2025-07-03 15:12:11 +01:00
Geoffrey White
831509539b
Merge pull request #19934 from geoffw0/models0
...
Rust: Update legacy MaD models 1
2025-07-03 14:24:21 +01:00
Kasper Svendsen
de71758236
Merge pull request #19962 from kaspersv/kaspersv/overlay-java-local-TC-fixes
...
Overlay: Fix Java overlay compilation regressions
2025-07-03 15:03:02 +02:00
Paolo Tranquilli
8fda879461
Merge pull request #19967 from github/redsun82/format
...
Rust: format
2025-07-03 14:55:56 +02:00
Paolo Tranquilli
dee1ec31ee
Rust: format
2025-07-03 14:42:38 +02:00
Nick Rolfe
d8574a6919
Ruby: use overlayChangedFiles extensional in discard predicates
2025-07-03 12:44:15 +01:00
Nick Rolfe
ba01a70e0a
Rust: add upgrade scripts for overlayChangedFiles dbscheme addition
2025-07-03 12:44:14 +01:00
Nick Rolfe
ab74946e26
Ruby: add upgrade scripts for overlayChangedFiles dbscheme addition
2025-07-03 12:44:13 +01:00
Nick Rolfe
a02aabe797
Java: add upgrade scripts for overlayChangedFiles dbscheme addition
2025-07-03 12:44:12 +01:00
Nick Rolfe
838290d670
Ruby: bump overlay_support_version
2025-07-03 12:44:11 +01:00
Nick Rolfe
72b4e67477
Java/Ruby/Rust/QL: add overlayChangedFiles relation to dbscheme
2025-07-03 12:44:09 +01:00
Jeroen Ketema
a4de3110ae
Merge pull request #15233 from jketema/uncomment-function-kind
...
C++: Uncomment cases in the dbscheme
2025-07-03 13:37:55 +02:00
Kasper Svendsen
dd8af3baf7
Overlay: Mark RefType.getAStrictAncestor overlay[caller?]
2025-07-03 12:23:20 +02:00
Michael Nebel
11c4a638bc
Quality tags: Clarify the quality sub-category tagging policy.
2025-07-03 12:19:41 +02:00
Michael Nebel
aefd941135
Java/Javascript: Fix violations.
2025-07-03 11:56:33 +02:00
Michael Nebel
f810e17d9e
Ql4Ql: Address review comments and update expected test output.
2025-07-03 11:56:32 +02:00
Michael Nebel
b79e2dd0ba
Ql4Ql: Add some more quality tag testcases.
2025-07-03 11:56:30 +02:00
Michael Nebel
f58064e119
Ql4Ql: Address review comments.
2025-07-03 11:56:29 +02:00
Michael Nebel
af1c4e0896
Ql4Ql: Share the definition of TestFile between multiple tests.
2025-07-03 11:56:27 +02:00
Michael Nebel
60a1d02357
Ql4Ql: Add MissingQualityMetadata test.
2025-07-03 11:56:26 +02:00
Michael Nebel
e00b5351a4
Ql4Ql: Add a check for quality tag consistency.
2025-07-03 11:56:25 +02:00
Michael Nebel
c46b528c05
Ql4Ql: Add some quality tag testcases.
2025-07-03 11:56:23 +02:00
Michael Nebel
cce17743bb
Ql4Ql: Re-factor the ql/mising-security-metadata query.
2025-07-03 11:56:22 +02:00
Tom Hvitved
2924faf7f8
Rust: Tweak illFormedTypeMention consistency check
2025-07-03 11:56:16 +02:00
Asger F
552e156468
Merge pull request #19640 from asgerf/js/no-type-extraction
...
JS: Disable type extraction
2025-07-03 11:18:42 +02:00
Geoffrey White
1289f1483f
Merge pull request #19961 from geoffw0/locspeed
...
Rust: Speed up use of Location.contains
2025-07-03 10:16:39 +01:00
Asger F
bb45d0632b
Merge branch 'main' into approximate-related-location
2025-07-03 10:53:07 +02:00
Kasper Svendsen
649091c0ed
Fix java/local-temp-file-or-directory-information-disclosure overlay compilation regression
2025-07-03 10:47:33 +02:00
Kasper Svendsen
425448a10a
Fix java/netty-http-request-or-response-splitting overlay compilation regression
2025-07-03 10:47:33 +02:00
Paolo Tranquilli
064708620f
Merge pull request #19861 from github/redsun82/rust-reorg-ast-generator
...
Rust: refactor `ast-generator` to have all customization at the start
2025-07-03 10:09:17 +02:00
Asger F
98319ce2ad
Apply suggestions from code review
...
Co-authored-by: Taus <tausbn@github.com >
2025-07-03 08:44:33 +02:00
Geoffrey White
9728dbb247
Rust: Speed up use of Location.contains / isFromMacroExpansion.
2025-07-02 21:16:21 +01:00
Mathias Vorreiter Pedersen
d4bc38462f
C++: Add glibc to the list of bulk generation targets.
2025-07-02 18:59:15 +01:00
Mathias Vorreiter Pedersen
5e8b12a08b
Merge pull request #19955 from MathiasVP/flow-through-create-thread
...
C++: Add flow summaries for `CreateThread` and friends
2025-07-02 18:27:36 +01:00
Paolo Tranquilli
c10d89927d
Merge pull request #19945 from github/redsun82/fix-expansion-in-lib
...
Rust: fix macro expansion in library code
2025-07-02 18:11:36 +02:00
Paolo Tranquilli
2fffa9db3c
Merge pull request #19781 from github/redsun82/go-internal-tests
...
Go: remove language tests from workflows
2025-07-02 18:10:44 +02:00
Paolo Tranquilli
72bfbacaaf
Merge branch 'main' into redsun82/go-internal-tests
2025-07-02 16:21:26 +02:00
Mathias Vorreiter Pedersen
e6104981ff
C++: Add change note.
2025-07-02 14:32:17 +01:00
Mathias Vorreiter Pedersen
76678ef3d2
C++: Accept test changes.
2025-07-02 14:24:16 +01:00
Mathias Vorreiter Pedersen
f825904ee0
C++: Add flow models for 'CreateProcess' and friends.
2025-07-02 14:18:36 +01:00
Mathias Vorreiter Pedersen
5684ca5d51
C++: Add tests with 'CreateProcess' and fiends demonstrating missing flow.
2025-07-02 14:18:34 +01:00
Asger F
4a2d795076
Shared: Make approximate location filtering the default behaviour
2025-07-02 14:41:02 +02:00
Asger F
82d190f4bf
Java: use approximate related sink locations in polynomial redos
2025-07-02 14:40:56 +02:00
Asger F
a46b5f9529
Python: enable diff-informedness for poly redos using approximate related locations
2025-07-02 14:39:42 +02:00
Asger F
d65da1f8a1
Ruby: enable for PolyReDos but document why it still doesnt work
2025-07-02 14:39:41 +02:00
Asger F
8b345518f4
Shared: Add approximate version of getASelected{Source,Sink}Location
2025-07-02 14:39:39 +02:00
Asger F
d1b4172486
Shared: Factor out some helper predicates in alert filtering
2025-07-02 14:39:37 +02:00
Asger F
d85838477e
JS: Update Nest model
...
An external contribution added more uses of the now-deprecated getType()
predicate while this PR was open.
2025-07-02 14:11:31 +02:00
Asger F
47a90c8b32
Merge branch 'main' into js/no-type-extraction
2025-07-02 13:18:05 +02:00
Paolo Tranquilli
c70198e4e4
Rust: change dummy macro call expansion
2025-07-02 12:25:10 +02:00
Tom Hvitved
f7195f04f8
Rust: Handle more explicit type arguments in type inference
2025-07-02 11:37:05 +02:00
Tom Hvitved
b6d5225bf5
Rust: Add more type inference tests
2025-07-02 11:37:03 +02:00
Paolo Tranquilli
bf09c92528
Rust: add location to dummy MacroCalls in library mode
2025-07-02 10:33:53 +02:00
Paolo Tranquilli
63ccbec933
Rust: accept language test changes
2025-07-02 10:19:52 +02:00
Geoffrey White
3e11dbded0
Rust: Accept test changes.
2025-07-02 09:08:15 +01:00
Asger F
4b2025d2c4
JS: Remove obsolete unit tests
2025-07-02 09:54:18 +02:00
Asger F
2aad14771c
JS: Remove TypeScriptMode
2025-07-02 08:39:17 +02:00
Geoffrey White
7ef5586cc7
Rust: Translate more legacy models -> new models (mostly guesswork for these last few cases).
2025-07-01 17:15:26 +01:00
Geoffrey White
e56b9debf8
Rust: Fix mistake.
2025-07-01 16:55:06 +01:00
Geoffrey White
3027f75617
Rust: Translate more legacy models -> new models (from data).
2025-07-01 16:37:14 +01:00
Paolo Tranquilli
223f0c8684
Rust: fix macro expansion in library code
...
There was a mismatch between a `self.macro_context_level += 1` and the
corresponding `self.macro_context_level -= 1`, which resulted in an
`usize` underflow (panic in debug mode, wrong behaviour in release
mode).
This fixes it and adds a relevant assertion and test. In order to
properly test library mode extraction, a special option enforcing that
on source code as well is added.
2025-07-01 17:31:26 +02:00
Geoffrey White
cb6640474e
Rust: Translate more legacy models -> new models (from data + manual extrapolation).
2025-07-01 13:21:52 +01:00
Geoffrey White
59b74871c2
Rust: Accept regressions.
2025-06-30 21:13:44 +01:00
Geoffrey White
91072477b7
Rust: Trivial test changes.
2025-06-30 20:15:18 +01:00
Geoffrey White
8f56f8d5a0
Rust: Translate some legacy models -> new models.
2025-06-30 17:47:59 +01:00
Paolo Tranquilli
fa14f9540b
Merge branch 'main' into redsun82/go-internal-tests
2025-06-30 17:38:59 +02:00
Florin Coada
0103ee2872
Add changelog entry for CodeQL CLI version 2.22.1
2025-06-26 15:50:23 +01:00
Vasco-jofra
575da5c31c
Merge SummarizedCallable into single class
2025-06-26 10:10:52 +02:00
Asger F
5289e4f424
JS: Fix a bug in a unit test
...
The 'extractTypeScriptFiles' override did not incorporate the file type and one of our unit tests was expecting this. The test was previously passing for the wrong reasons.
2025-06-25 14:31:31 +02:00
Asger F
02cdde1447
JS: Fix imprecise condition
2025-06-25 14:31:28 +02:00
Asger F
aef362152e
JS: Change notes
2025-06-25 14:31:25 +02:00
Asger F
c8b2674206
JS: Add support for index expressions
2025-06-25 14:31:22 +02:00
Asger F
b1d4776b17
JS: Handle name resolution through dynamic imports
2025-06-25 14:31:20 +02:00
Asger F
7cc248703a
JS: Add test for dynamic imports
2025-06-25 14:31:17 +02:00
Asger F
92dd5bd1f4
JS: Add deprecation comment to qldoc
2025-06-25 14:31:14 +02:00
Asger F
488da145e8
JS: Don't try to augment invalid files
...
This check existed on the code path for full type extraction, but not for plain single-file extraction.
2025-06-25 14:31:11 +02:00
Asger F
74b817b642
JS: Remove code path for TypeScript full extraction
2025-06-25 14:31:05 +02:00
Geoffrey White
898c569f1b
Rust: Change note.
2025-06-24 11:37:54 +01:00
Paolo Tranquilli
a72ae9c960
Rust: refactor ast-generator to have all customization at the start
2025-06-24 10:42:16 +02:00
Asger F
8efa38be79
JS: Change default TypeScript extraction mode to basic
2025-06-23 12:55:20 +02:00
Asger F
e323833bc3
JS: Fix qldoc coverage
2025-06-23 12:55:19 +02:00
Asger F
07f84a5add
JS: Remove an unnecessary import
2025-06-23 12:55:18 +02:00
Asger F
1cab99290e
JS: Remove unneeded integration test
2025-06-23 12:55:16 +02:00
Asger F
f5f12c2f81
JS: Delete or simplify TypeScript type-specific tests
2025-06-23 12:55:15 +02:00
Asger F
ee9c4fa763
JS: Deprecate everything that depends on type extraction
2025-06-23 12:55:14 +02:00
Asger F
f5ac3fd611
JS: Remove old metric-meta query TypedExprs.ql
...
This was used in the very old dist-compare tool, but has no use anymore
2025-06-23 12:55:12 +02:00
Asger F
6d389c31c7
JS: Update an outdated QLDoc comment
2025-06-23 12:55:11 +02:00
Asger F
fcb6882f16
JS: Update API usage in MissingAwait
2025-06-23 12:55:09 +02:00
Asger F
e459884b69
JS: Update API usage in ViewComponentInput
2025-06-23 12:55:08 +02:00
Asger F
fb92d9b034
JS: Update type usage in UnreachableMethodOverloads
...
This query depended on the cons-hashing performed by type extraction to determine if two types are the same.
This is not trivial to restore, but not important enough to reimplement right now, so for now just simplifying the query's ability to recognise that two types are the same.
2025-06-23 12:55:06 +02:00
Asger F
8b2a424fb0
JS: Update type usage use in Express model
2025-06-23 12:55:05 +02:00
Asger F
b71d09630a
JS: Update type usage in Electron model
2025-06-23 12:55:03 +02:00
Asger F
ace8b09a36
JS: Update type usage in ClassValidator.qll
2025-06-23 12:55:01 +02:00
Asger F
9d4c38b5f1
JS: Update type usage in definitions.qll
2025-06-23 12:54:59 +02:00
Asger F
17a687b38f
JS: Update type usage in Nest library model
2025-06-23 12:54:57 +02:00
Asger F
b82e84930c
JS: Add public API
2025-06-23 12:54:56 +02:00
Asger F
2a0c7c8801
JS: Add classHasGlobalName into NameResolution
2025-06-23 12:54:55 +02:00
Asger F
de9dab9ba3
JS: Move some predicates into NameResolution
2025-06-23 12:54:53 +02:00
Geoffrey White
cd6975f7b7
Rust: Update DotDotCheck from getResolvedPath -> getCanonicalPath.
2025-06-17 17:07:39 +01:00
Geoffrey White
dc08274aa2
Rust: Update SqlxQuery, SqlxExecute from getResolvedPath -> getCanonicalPath.
2025-06-17 15:56:18 +01:00
Paolo Tranquilli
0d803698ac
Go: remove language tests from workflows
...
Now that they are run internally using QLucie.
2025-06-16 14:01:40 +02:00
Vasco-jofra
8c4dbca23c
Improve data flow in the async library
2025-06-15 17:59:49 +02:00
Vasco-jofra
26f3b40d35
Add lodash GroupBy as taint step
2025-06-14 00:13:03 +02:00
Lindsay Simpkins
f96a250ffc
fix qhelp files
2025-06-09 18:37:16 -04:00
Adnan Khan
aca3d897a2
Merge branch 'main' into patch-1
2025-05-19 08:52:56 -04:00
Adnan Khan
a9c4d6f383
Fix escaping.
2025-04-25 15:00:14 -04:00
Adnan Khan
38f00775bd
Exclude artifacts downloaded to runner temp.
2025-04-25 14:49:01 -04:00
Geoffrey White
07011f7460
Rust: Fix more after merge.
2025-03-17 12:22:09 +00:00
Geoffrey White
f5daec9da0
Rust: Fix after merge.
2025-03-17 12:10:59 +00:00
Geoffrey White
81edb4780d
Merge branch 'main' into constcrypto
2025-03-17 12:05:51 +00:00
Geoffrey White
704b3850f4
Rust: Fix a mistake in the test.
2025-03-17 11:24:58 +00:00
Geoffrey White
a0f4fa28b2
Rust: hardcoded -> hard-coded.
2025-03-11 09:40:47 +00:00
Geoffrey White
e3beacbda2
Rust: Print models (temporary, to see how this differs on CI).
2025-03-10 19:38:36 +00:00
Geoffrey White
1ca5c593f9
Rust: Replace imports of internal.DataFlowImpl where possible.
2025-03-10 11:47:23 +00:00
Geoffrey White
9e54d53537
Rust: Add barrier.
2025-03-10 11:41:48 +00:00
Geoffrey White
a34f9bef2b
Rust: Add a test case for getrandom.
2025-03-10 11:33:29 +00:00
Geoffrey White
e84a98bd97
Apply suggestions from code review
...
Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com >
2025-03-10 11:15:23 +00:00
Geoffrey White
b4e710f459
Rust: Add missing models (for some platforms???).
2025-03-07 22:28:38 +00:00
Geoffrey White
fdb4362b6f
Merge remote-tracking branch 'upstream/main' into constcrypto
2025-03-07 17:51:48 +00:00
Geoffrey White
3dc35f1fab
Rust: Accept more test changes.
2025-03-07 17:02:26 +00:00
Geoffrey White
c63c1be11c
Rust: Accept integration test .expected changes.
2025-03-07 16:12:31 +00:00
Geoffrey White
19416a9ee3
Rust: Correct test results.
2025-03-07 15:43:34 +00:00
Geoffrey White
b6c9be23c1
Merge branch 'main' into constcrypto
2025-03-07 09:11:10 +00:00
Geoffrey White
42e7d1e983
Rust: Fix typo.
2025-03-06 19:09:01 +00:00
Geoffrey White
9af2d0218b
Rust: Add the new sinks to stats.
2025-03-06 18:50:11 +00:00
Geoffrey White
952e417d13
Rust: Tweak some wording.
2025-03-06 18:46:37 +00:00
Geoffrey White
e564c41043
Rust: Compute security-severity tag.
2025-03-06 18:36:55 +00:00
Geoffrey White
95be12ed80
Rust: Add qhelp and examples.
2025-03-06 17:48:47 +00:00
Geoffrey White
b4a6063e20
Rust: Add std::mem::zeroed as a source.
2025-03-06 17:48:45 +00:00
Geoffrey White
ac94ac6584
Rust: Model even more sinks + flows.
2025-03-06 17:48:44 +00:00
Geoffrey White
055baf2769
Rust: Improve results on arrays (less duplication).
2025-03-06 17:48:43 +00:00
Geoffrey White
aacbfc0fd8
Rust: Improve alert messages.
2025-03-06 17:48:41 +00:00
Geoffrey White
a6e106e025
Rust: Model more sinks + flows.
2025-03-06 17:48:40 +00:00
Geoffrey White
9fb00daeec
Rust: Implement the query (with one source, one sink model).
2025-03-06 17:48:39 +00:00
Geoffrey White
bd75f0187b
Rust: More test cases.
2025-03-06 17:48:37 +00:00
Geoffrey White
9a35febe80
Rust: Query framework and basic tests.
2025-03-06 13:24:05 +00:00
2h0ng
150debdd8d
Fix the broken reference
2025-02-09 15:29:37 -05:00
Kristen Newbury
df18891a2f
Fix changenote for query removal change
2024-10-03 17:36:42 -04:00
Kristen Newbury
e98db7fd20
Add changenote for query removal change
2024-10-03 17:28:59 -04:00
Kristen Newbury
d10a6b4ca0
Remove unnecessary query
2024-10-03 13:33:30 -04:00
Asger F
53dbfcb3aa
C++: use in/out barriers with flow state
2023-09-28 11:08:30 +02:00
Moshe Kaplan
f0ca76102c
Correct menu title name of "Open Workspace"
...
Correct menu title name of "Open Workspace" to "Open Workspace from File", as that is the current menu title on VS Code (at least as of 1.76.2)
2023-03-24 15:26:46 -04:00