Nick Rolfe
c5329f6f38
Merge pull request #21189 from github/release-prep/2.24.0
...
Release preparation for version 2.24.0
2026-01-19 07:19:55 -08:00
Nick Rolfe
1739e135f5
Fix list formatting inconsistency
2026-01-19 15:17:11 +00:00
Nick Rolfe
783676566c
Fix typo in changelog
2026-01-19 15:12:05 +00:00
github-actions[bot]
4142b9c4ce
Release preparation for version 2.24.0
2026-01-19 14:49:14 +00:00
Asger F
bedb80346a
Merge pull request #20940 from asgerf/js/detect-minified-files
...
JS: Skip minified file if avg line length > 200
2026-01-19 14:31:09 +01:00
Mathias Vorreiter Pedersen
dc7ce3fba3
Merge pull request #21171 from MathiasVP/fix-conflation-in-guards
...
C++: Fix conflation in barrier guards
2026-01-19 11:29:05 +00:00
Asger F
077bbb24ac
Merge pull request #21159 from asgerf/js/vue-prop-function
...
JS: Add support for props callbacks in Vue router configs
2026-01-19 10:13:49 +01:00
Tom Hvitved
06b99b2ce9
Merge pull request #21180 from hvitved/rust/fix-bad-join2
...
Rust: Fix bad join
2026-01-19 08:22:32 +01:00
Tom Hvitved
1c689d060b
Merge pull request #21179 from hvitved/rust/fix-bad-join
...
Rust: Fix bad join
2026-01-16 17:20:19 +01:00
Mathias Vorreiter Pedersen
f05bff01e4
C++: Switch another 'DataFlowType' to 'Type'.
2026-01-16 12:42:33 +00:00
Mathias Vorreiter Pedersen
08a6b99cfd
C++: Add change note.
2026-01-16 12:41:20 +00:00
Tom Hvitved
43e20176f0
Rust: Fix bad join
...
Before
```
Evaluated relational algebra for predicate _ElementImpl::Impl::MacroExpansion::isAttributeMacroExpansionSourceLocation/2#3429148c_Locatable::Lo__#antijoin_rhs@9f4aa4rk with tuple counts:
5127263380 ~4% {3} r1 = JOIN `_AstNodeImpl::Impl::AstNode#22e758cf_ElementImpl::Impl::MacroExpansion::getATokenTreeNode/1#a2df59a3__#shared` WITH `ElementImpl::Impl::MacroExpansion::isAttributeMacroExpansionSourceLocation/2#3429148c` ON FIRST 1 OUTPUT Lhs.1, Rhs.1, Lhs.0
305226 ~0% {2} | JOIN WITH `Locatable::Locatable.getLocation/0#dispred#f3f7e2b2` ON FIRST 2 OUTPUT Lhs.0, Lhs.2
return r1
```
(No After; the predicate is no longer generated)
2026-01-16 13:30:10 +01:00
Mathias Vorreiter Pedersen
5e9fd12d8c
Update cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-01-16 12:25:12 +00:00
Tom Hvitved
767acb8ff4
Rust: Fix bad join
...
Before
```
Evaluated relational algebra for predicate TypeMention::RefTypeReprMention.resolveRootType/0#dispred#091b949a#fb@4bd8a49g with tuple counts:
124419 ~0% {1} r1 = RefTypeRepr::Generated::RefTypeRepr#422893fa AND NOT `RefTypeRepr::Generated::RefTypeRepr.isMut/0#dispred#e2b9988f`(FIRST 1)
6621454761 ~1% {3} | JOIN WITH `Type::DataType.getTypeItem/0#dispred#83467854` CARTESIAN PRODUCT OUTPUT Rhs.0, Lhs.0, Rhs.1
915101745 ~0% {4} | JOIN WITH `project#Type::DataType.getPositionalTypeParameter/1#dispred#3bf49cbe` ON FIRST 1 OUTPUT Lhs.2, _, Lhs.1, Lhs.0
915101745 ~3% {4} | REWRITE WITH Out.1 := "Ref"
124419 ~0% {2} | JOIN WITH `Builtins::BuiltinType.getName/0#dispred#8f62ab0a` ON FIRST 2 OUTPUT Lhs.2, Lhs.3
76728 ~0% {1} r2 = JOIN RefTypeRepr::Generated::RefTypeRepr#422893fa WITH `RefTypeRepr::Generated::RefTypeRepr.isMut/0#dispred#e2b9988f` ON FIRST 1 OUTPUT Lhs.0
4083387432 ~1% {3} | JOIN WITH `Type::DataType.getTypeItem/0#dispred#83467854` CARTESIAN PRODUCT OUTPUT Rhs.0, Lhs.0, Rhs.1
564334440 ~3% {4} | JOIN WITH `project#Type::DataType.getPositionalTypeParameter/1#dispred#3bf49cbe` ON FIRST 1 OUTPUT Lhs.2, _, Lhs.1, Lhs.0
564334440 ~0% {4} | REWRITE WITH Out.1 := "RefMut"
76728 ~2% {2} | JOIN WITH `Builtins::BuiltinType.getName/0#dispred#8f62ab0a` ON FIRST 2 OUTPUT Lhs.2, Lhs.3
201147 ~1% {2} r3 = r1 UNION r2
return r3
```
After
```
Evaluated relational algebra for predicate TypeMention::RefTypeReprMention.resolveRootType/0#dispred#091b949a#fb@8f12aa2a with tuple counts:
124419 ~0% {1} r1 = RefTypeRepr::Generated::RefTypeRepr#422893fa AND NOT `RefTypeRepr::Generated::RefTypeRepr.isMut/0#dispred#e2b9988f`(FIRST 1)
124419 ~0% {2} | JOIN WITH Type::RefSharedType#090df68e CARTESIAN PRODUCT OUTPUT Rhs.0, Lhs.0
124419 ~0% {2} | JOIN WITH `project#Type::DataType.getPositionalTypeParameter/1#dispred#3bf49cbe` ON FIRST 1 OUTPUT Lhs.1, Lhs.0
76728 ~0% {1} r2 = JOIN RefTypeRepr::Generated::RefTypeRepr#422893fa WITH `RefTypeRepr::Generated::RefTypeRepr.isMut/0#dispred#e2b9988f` ON FIRST 1 OUTPUT Lhs.0
76728 ~0% {2} | JOIN WITH Type::RefMutType#c67a1837 CARTESIAN PRODUCT OUTPUT Rhs.0, Lhs.0
76728 ~2% {2} | JOIN WITH `project#Type::DataType.getPositionalTypeParameter/1#dispred#3bf49cbe` ON FIRST 1 OUTPUT Lhs.1, Lhs.0
201147 ~1% {2} r3 = r1 UNION r2
return r3
```
2026-01-16 13:11:45 +01:00
Tom Hvitved
7c95fefd96
Merge pull request #21177 from hvitved/actions/example-dir
...
Actions: Add `examples` qlpack
2026-01-16 13:03:54 +01:00
Tom Hvitved
3cdca25a67
Actions: Add examples qlpack
2026-01-16 12:48:54 +01:00
Simon Friis Vindum
ec094400fb
Merge pull request #21172 from paldepind/rust/dyn-abs
...
Rust: Avoid unnecessary constraint satisfaction
2026-01-16 11:32:39 +01:00
Simon Friis Vindum
6b3d863f70
Rust: Remove trait parameter from canonicalDynTraitTypeAbstraction
2026-01-16 11:12:34 +01:00
Owen Mansel-Chan
c14b869856
Merge pull request #21175 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2026-01-16 09:49:29 +00:00
Simon Friis Vindum
a11693268b
Rust: Avoid duplicated entries in conditionSatisfiesConstraint for dyn trait types
2026-01-16 10:46:23 +01:00
Simon Friis Vindum
c0b3569473
Rust: Move TypeAbstraction into separate file
2026-01-16 10:45:50 +01:00
github-actions[bot]
549307a6bd
Add changed framework coverage reports
2026-01-16 00:26:48 +00:00
Mathias Vorreiter Pedersen
6da7890ff5
C++: Add indirect barrier guard to 'cpp/unbounded-write' to prevent FPs after fixing conflation.
2026-01-15 18:31:54 +00:00
Owen Mansel-Chan
a5d9cb179a
Merge pull request #20930 from owen-mc/java/spring-rest-template-request-forgery-sinks
...
Java: add more Spring RestTemplate request forgery sinks
2026-01-15 14:23:15 +00:00
Tom Hvitved
d3fc254e17
Merge pull request #21169 from hvitved/shard-compile-queries
...
Make `compile-queries.yml` sharded based on language
2026-01-15 15:11:01 +01:00
Mathias Vorreiter Pedersen
28681508f3
C++: Fix bug and accept test changes.
2026-01-15 11:17:15 +00:00
Mathias Vorreiter Pedersen
27a437a514
C++: Modify test to reveal a bug.
2026-01-15 11:16:15 +00:00
Simon Friis Vindum
d8061c17cc
Merge pull request #21165 from paldepind/rust/associated-types
...
Rust: Associated types are inherited as type parameters by traits and dyn traits
2026-01-15 11:50:00 +01:00
Owen Mansel-Chan
97e0b4e9fd
Use parameter name to only select correct overloads
2026-01-15 10:36:03 +00:00
Simon Friis Vindum
15f3c38041
Rust: QLDoc fixes
2026-01-15 11:34:58 +01:00
Anders Schack-Mulligen
c632e8f188
Merge pull request #20448 from github/alexet/avoid-path-node-java
...
Java: Eliminate pointless use of PathNodes over DataFlow::Node
2026-01-15 10:55:09 +01:00
Tom Hvitved
b4bbafa96f
Make compile-queries.yml sharded based on language
2026-01-15 10:30:08 +01:00
Owen Mansel-Chan
13dc17c9b8
Merge pull request #21167 from owen-mc/java/docs/library-coverage
...
Java: List more covered java frameworks explicitly in docs
2026-01-15 09:18:51 +00:00
Jeroen Ketema
3327193a11
Merge pull request #21164 from jketema/jketema/builtin
...
C++: More builtins and information regarding this param refs
2026-01-15 08:21:01 +01:00
Owen Mansel-Chan
6e0a1ba233
List more covered java frameworks explicitly
2026-01-15 07:18:15 +00:00
Simon Friis Vindum
8cbe17a62b
Rust: Fix bad join on name column
2026-01-15 07:23:34 +01:00
Simon Friis Vindum
ca3e2db217
Rust: Accept changes to expected files
2026-01-14 16:00:59 +01:00
Simon Friis Vindum
465400115f
Rust: Adapt type inference consistency query exceptions
2026-01-14 15:36:35 +01:00
Owen Mansel-Chan
0cf0aac397
Merge pull request #21109 from owen-mc/go/misc-trivial-fixes
...
Go: misc trivial fixes
2026-01-14 14:10:41 +00:00
Jeroen Ketema
17a453bb33
Merge pull request #21126 from jketema/subscript
...
C++: Add predicates to support C++23 multidimensional subscript operators
2026-01-14 14:48:14 +01:00
Simon Friis Vindum
a19ad5e557
Rust: Associated types are inherited as type parameters by traits and dyn traits
2026-01-14 14:44:31 +01:00
Simon Friis Vindum
62193540f7
Rust: Add additional tests for associated types
2026-01-14 14:44:30 +01:00
Simon Friis Vindum
fd5658dfe8
Rust: Tweak tests for associated types
2026-01-14 14:44:23 +01:00
Simon Friis Vindum
e0c36c758d
Rust: Move associated types tests into separate file
2026-01-14 14:39:59 +01:00
Tom Hvitved
991d30f7aa
Merge pull request #21161 from hvitved/rust/restrict-implicit-deref-borrow-nodes
...
Rust: Restrict `ImplicitDerefBorrowNode` to nodes with enclosing CFG scope
2026-01-14 14:37:40 +01:00
Jeroen Ketema
1dacd83915
C++: Update dbscheme stats file
2026-01-14 13:35:53 +01:00
Jeroen Ketema
7a13cbae3f
C++: Add upgrade and downgrade scripts
2026-01-14 13:35:52 +01:00
Jeroen Ketema
f6b720b37b
C++: Add change note
2026-01-14 13:35:51 +01:00
Jeroen Ketema
047fa068ff
C++: Add isThisAccess predicate to ParamAccessForType
2026-01-14 13:35:50 +01:00
Jeroen Ketema
bb33ea383c
C++: Add change note for new builtins
2026-01-14 13:35:49 +01:00
Jeroen Ketema
93535d1c86
C++: Add tests for new builtin operations
2026-01-14 13:35:47 +01:00
Jeroen Ketema
3d959abdeb
C++: Support new builtin operations
2026-01-14 13:35:46 +01:00
Jeroen Ketema
5d00a4df86
Merge pull request #21143 from jketema/jketema/friends
...
C++: Update test expectations after extractor changes
2026-01-14 13:31:40 +01:00
Owen Mansel-Chan
e01b674581
Merge pull request #21082 from mbaluda/couchdb
...
This PR adds models Java client APIs for CouchBase and adds tests for 2 queries
2026-01-14 12:06:47 +00:00
Owen Mansel-Chan
16113e6550
Use type cast to make QL more succinct
2026-01-14 11:50:56 +00:00
Owen Mansel-Chan
76bba60383
Fix misspelling in comment
2026-01-14 11:50:55 +00:00
Owen Mansel-Chan
0dc47380a3
Swap order of equality for easier comprehension
2026-01-14 11:50:53 +00:00
Owen Mansel-Chan
b58e88291e
Remove redundant import
2026-01-14 11:50:52 +00:00
Owen Mansel-Chan
94bc47ab15
Swap order of supertypes
2026-01-14 11:50:50 +00:00
Owen Mansel-Chan
3850734a15
Use non-extending subtypes
2026-01-14 11:50:49 +00:00
Owen Mansel-Chan
93d7c5c7ef
Remove redundant supertypes
2026-01-14 11:50:44 +00:00
Owen Mansel-Chan
1cd0698453
Fix test for reflected xss sanitizer
...
It used to pass even without ErrorSanitizer because `cookie` is already
sanitized.
2026-01-14 11:50:08 +00:00
Owen Mansel-Chan
9d5e5b0c8a
Add post-processing to Beego tests
2026-01-14 11:50:06 +00:00
Asger F
ff580410fe
Merge pull request #20733 from asgerf/js/incremental-api-graphs
...
JS: Incremental API graph
2026-01-14 12:49:41 +01:00
Mauro Baluda
9f725f7098
Merge branch 'main' into couchdb
2026-01-14 12:33:47 +01:00
Mauro Baluda
f71b6c1bfd
Improved models for Supplier arguments
2026-01-14 12:32:42 +01:00
Jeroen Ketema
54f75653ba
C++: Update test expectations after extractor changes
2026-01-14 12:01:51 +01:00
Mauro Baluda
5cef0376a9
Update java/ql/test/query-tests/security/CWE-798/semmle/tests/HardcodedCouchBaseCredentials.java
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2026-01-14 11:50:52 +01:00
Asger F
06cc323aee
Update javascript/ql/src/change-notes/2025-12-05-skip-minified-files.md
...
Co-authored-by: Taus <tausbn@github.com >
2026-01-14 11:40:01 +01:00
Asger F
b47ae420ca
Update javascript/ql/src/change-notes/2025-12-05-skip-minified-files.md
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-01-14 11:40:01 +01:00
Asger F
0eadebcabd
Update javascript/extractor/src/com/semmle/js/extractor/FileExtractor.java
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-01-14 11:40:01 +01:00
Asger F
739ed4b3bb
JS: Change note
2026-01-14 11:40:01 +01:00
Asger F
7ab52a81a7
JS: Add environment variable to opt out of the behaviour if needed
2026-01-14 11:40:01 +01:00
Asger F
2892ab61ae
JS: Make sure a file is not seen as minified
2026-01-14 11:40:01 +01:00
Asger F
84f6b6f67a
JS: Accept test change due to file no longer being extracted
2026-01-14 11:40:01 +01:00
Asger F
98c8b4c080
JS: Skip minified file if avg line length > 200
2026-01-14 11:40:01 +01:00
Asger F
e430aa97f3
Merge pull request #20916 from asgerf/js/next-folders2
...
JS: Handle Next.js files named 'page' or 'route'
2026-01-14 11:10:57 +01:00
Jeroen Ketema
40a91367ab
Merge pull request #21110 from jketema/jketema/rm-decimal
...
C++: Remove decimal floating point types
2026-01-14 10:58:39 +01:00
Tom Hvitved
cc4926ad37
Merge pull request #21148 from hvitved/rust/remove-macro-block-expr
...
Rust: Remove `MacroBlockExpr` class
2026-01-14 10:11:22 +01:00
Simon Friis Vindum
519f0d2780
Merge pull request #21023 from paldepind/rust/regenerate-models-1212
...
Rust: Regenerate models
2026-01-14 09:30:06 +01:00
Mauro Baluda
9efefa6120
Fix test expectations
2026-01-13 22:46:42 +01:00
Mauro Baluda
29f23ee192
Fix extraction error
2026-01-13 22:33:01 +01:00
Mauro Baluda
4b7662f652
Merge branch 'main' into couchdb
2026-01-13 21:50:44 +01:00
Mauro Baluda
d335f039ef
Improve model for CWE-089
2026-01-13 21:48:43 +01:00
Tom Hvitved
55d4902751
Rust: Restrict ImplicitDerefBorrowNode to nodes with enclosing CFG scope
2026-01-13 20:23:28 +01:00
yoff
6c4a0bb52b
Merge pull request #20990 from github/tausbn/python-support-relaxed-exception-groups
...
Python: Add support for PEP-758 exception syntax
2026-01-13 19:04:27 +01:00
Simon Friis Vindum
76a1e22ddc
Rust: Remove manual models that are now generated
2026-01-13 16:11:18 +01:00
Jeroen Ketema
f4980bede3
Update cpp/ql/lib/change-notes/2026-01-02-decimal-removal.md
2026-01-13 16:11:11 +01:00
Jeroen Ketema
9ba73ba4f0
C++: Update stats file
2026-01-13 16:11:10 +01:00
Jeroen Ketema
ffdd6f7d91
C++: Add change note
2026-01-13 16:11:09 +01:00
Jeroen Ketema
273f517a37
C++: Remove decimal types from the dbscheme
2026-01-13 16:11:08 +01:00
Jeroen Ketema
a20f0a11e8
C++: No longer expose _Decimal{32,64,128}
2026-01-13 16:11:06 +01:00
Jeroen Ketema
d20cd68a05
C++: Update expected test results after extractor changes
2026-01-13 16:11:05 +01:00
Simon Friis Vindum
da43e8cad8
Rust: Regenerate models
2026-01-13 16:02:32 +01:00
Simon Friis Vindum
d78491294a
Rust: Exclude reqwest response timeout field as a taint step
2026-01-13 15:58:27 +01:00
Simon Friis Vindum
862adec081
Rust: Disable dynamic dispatch when generating models
2026-01-13 15:58:25 +01:00
Simon Friis Vindum
1fbf0387f5
Rust: Skip model generation for Rocket due to performance issue
2026-01-13 15:58:24 +01:00
Simon Friis Vindum
8bfce6b284
Shared, rust: Add option to disable reads steps as taint steps in model generator
2026-01-13 15:58:23 +01:00
Simon Friis Vindum
9cdf63e175
Rust: Skip model generation for functions with a ; in their canonical path
2026-01-13 15:58:22 +01:00
Owen Mansel-Chan
8cb0f5faa6
Merge pull request #21140 from owen-mc/csharp/mad-barriers
...
C#: Allow MaD barriers and barrier guards, and convert some existing ones
2026-01-13 14:24:22 +00:00
Mauro Baluda
89f0e79ea1
Fix SqlTainted test
2026-01-13 13:55:14 +01:00
Ian Lynagh
63f78e7609
Merge pull request #21156 from igfoo/igfoo/mb
...
Merge rc/3.20 into main
2026-01-13 12:11:37 +00:00
Mauro Baluda
dda042f7df
rename change notes
2026-01-13 13:07:14 +01:00
Taus
5fc9b2de44
Merge pull request #21154 from github/tausbn/misc-add-cli-mode-for-change-note-script
...
Misc: Add CLI interface to `create-change-note.py`
2026-01-13 12:38:55 +01:00
Anders Schack-Mulligen
9c1351c3fe
Merge pull request #21149 from aschackmull/java/typeflow-partially-unbound
...
Java: Add TypeFlow base case for partially unbound types.
2026-01-13 12:31:38 +01:00
Asger F
9fa856f974
JS: Change note
2026-01-13 11:49:33 +01:00
Asger F
7cd820ea86
JS: Add support for props callbacks in router configs
2026-01-13 11:46:12 +01:00
Geoffrey White
69de17ecf2
Merge pull request #21153 from geoffw0/splitoff
...
Rust: Add barrier for split_off
2026-01-13 10:44:31 +00:00
Asger F
40c35341d1
JS: Add props to Vue router test case
2026-01-13 11:44:07 +01:00
Owen Mansel-Chan
130f8f148b
Convert barrier to MaD
...
I confirmed that without the model a test fails.
2026-01-13 10:29:16 +00:00
Owen Mansel-Chan
68b618176e
Convert barrier guard to MaD
...
I checked that without the model a test fails.
2026-01-13 10:29:15 +00:00
Owen Mansel-Chan
b30bc5ea44
Allow MaD barriers relating to ExternalLocationSink
2026-01-13 10:29:13 +00:00
Owen Mansel-Chan
004d40ee93
Allow MaD barriers using sink kinds
2026-01-13 10:29:12 +00:00
Anders Schack-Mulligen
8b555ca514
Java: Add test.
2026-01-13 11:20:13 +01:00
Anders Schack-Mulligen
8257475ffb
Merge pull request #21132 from aschackmull/csharp/mad-barriers
...
C#: Add support for MaD barriers and barrier guards.
2026-01-13 11:00:02 +01:00
Owen Mansel-Chan
a96cd399b1
Merge pull request #21157 from github/dependabot/go_modules/go/extractor/extractor-dependencies-0d17b202ee
...
Bump golang.org/x/tools from 0.40.0 to 0.41.0 in /go/extractor in the extractor-dependencies group
2026-01-13 09:56:37 +00:00
Asger F
da9aafc3b0
JS: Also track additional use-steps crossing the overlay boundary
2026-01-13 10:54:16 +01:00
Simon Friis Vindum
7f092e418e
Merge pull request #21152 from paldepind/rust/typeinference-dir
...
Rust: Move everything type inference related into the typeinference directory
2026-01-13 10:41:13 +01:00
Asger F
ca52fe59e8
Merge pull request #20918 from asgerf/js/response-default-content-type
...
JS: Handle default 'content-type' header in Response() objects
2026-01-13 10:34:40 +01:00
Asger F
d2e6ae5e14
Update javascript/ql/lib/semmle/javascript/frameworks/Next.qll
...
Co-authored-by: Napalys Klicius <napalys@github.com >
2026-01-13 10:34:25 +01:00
Owen Mansel-Chan
f5b13db4ea
Merge pull request #21015 from aschackmull/go/mad-barriers
...
Go: Support for MaD barriers and barrier guards.
2026-01-13 09:31:09 +00:00
Tom Hvitved
31b4f88824
Rust: Add DB downgrade script
2026-01-13 10:24:40 +01:00
Tom Hvitved
4cc4717381
Rust: Add DB upgrade script
2026-01-13 10:24:39 +01:00
Tom Hvitved
5d5bad6cd4
Rust: Update expected test output
2026-01-13 10:24:10 +01:00
Tom Hvitved
5fb425fd67
Rust: Update extractor and QL code after removing MacroBlockExpr
2026-01-13 10:24:04 +01:00
Tom Hvitved
3eafca0550
Rust: Run codegen
2026-01-13 10:22:16 +01:00
Tom Hvitved
d6ec174e0c
Rust: Remove MacroBlockExpr class
2026-01-13 10:20:47 +01:00
Geoffrey White
b2d19b610e
Rust: US spelling.
2026-01-13 09:01:12 +00:00
Anders Schack-Mulligen
1151fc3be2
Update csharp/ql/lib/semmle/code/csharp/dataflow/internal/ExternalFlow.qll
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2026-01-13 09:14:33 +01:00
Simon Friis Vindum
e7791120fa
Rust: Address review comments
2026-01-13 07:53:39 +01:00
dependabot[bot]
37bb9d77d3
Bump golang.org/x/tools
...
Bumps the extractor-dependencies group in /go/extractor with 1 update: [golang.org/x/tools](https://github.com/golang/tools ).
Updates `golang.org/x/tools` from 0.40.0 to 0.41.0
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.40.0...v0.41.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-version: 0.41.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: extractor-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-01-13 05:38:36 +00:00
Ian Lynagh
dcd0a69759
Merge remote-tracking branch 'upstream/main' into igfoo/mb
2026-01-13 01:01:35 +00:00
Taus
de1d183ca6
Misc: Add CLI interface to create-change-note.py
...
This may be useful when working in "the other place", where the VSCode
task may not be easily accessible. (Also, some people may just prefer to
use a CLI interface.)
2026-01-12 15:32:03 +00:00
Simon Friis Vindum
9e74a7869a
Rust: Move everything type inference related into the typeinference directory
2026-01-12 16:31:34 +01:00
Taus
8c90c113c2
Update change note to reflect Python 2 changes
2026-01-12 15:27:38 +00:00
Taus
659ec3999b
Mark generated files as generated
2026-01-12 15:24:01 +00:00
Tom Hvitved
c666fc71ca
Merge pull request #21147 from hvitved/rust/fix-more-models
...
Rust: Add missing `.Reference` in various models
2026-01-12 15:27:51 +01:00
Geoffrey White
a78756ff8b
Merge branch 'main' into splitoff
2026-01-12 14:21:01 +00:00
Geoffrey White
479c58bef5
Rust: Add a barrier.
2026-01-12 13:52:54 +00:00
Geoffrey White
7658ebb449
Rust: Add spurious test case for rust/uncontrolled-allocation-size.
2026-01-12 13:52:53 +00:00
Tom Hvitved
17441a5462
Rust: Add missing .Reference in various models
2026-01-12 14:21:45 +01:00
Anders Schack-Mulligen
c28062aff5
Merge pull request #21127 from aschackmull/ssa/phi-input-perf
...
SSA: Improve performance of finding relevant phi input nodes.
2026-01-12 13:29:58 +01:00
Anders Schack-Mulligen
8e2d74a7b1
Java: Add TypeFlow base case for partially unbound types.
2026-01-12 12:45:06 +01:00
Tom Hvitved
6b34d0d250
Merge pull request #21123 from hvitved/rust/fix-path-models
...
Rust: Improve/add various models
2026-01-12 12:20:56 +01:00
Simon Friis Vindum
e4db3b17b4
Merge pull request #20584 from paldepind/cpp/range-analysis-fix
...
C++: Range analysis guard improvement
2026-01-12 11:23:48 +01:00
Simon Friis Vindum
c9e6d4235f
Merge pull request #21139 from paldepind/rust/fn-syntax-return
...
Rust: Make function trait syntax without return type default to unit
2026-01-12 11:22:50 +01:00
Owen Mansel-Chan
57ec850397
Merge pull request #21146 from github/dependabot/go_modules/go/extractor/extractor-dependencies-555680b348
...
Bump golang.org/x/mod from 0.31.0 to 0.32.0 in /go/extractor in the extractor-dependencies group
2026-01-12 09:44:33 +00:00
Anders Schack-Mulligen
aae8ec2240
SSA: Use fastTC for even better performance.
2026-01-12 09:39:15 +01:00
dependabot[bot]
4318c285cb
Bump golang.org/x/mod
...
Bumps the extractor-dependencies group in /go/extractor with 1 update: [golang.org/x/mod](https://github.com/golang/mod ).
Updates `golang.org/x/mod` from 0.31.0 to 0.32.0
- [Commits](https://github.com/golang/mod/compare/v0.31.0...v0.32.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/mod
dependency-version: 0.32.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: extractor-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-01-12 03:07:33 +00:00
Mauro Baluda
0464e64469
Merge branch 'github:main' into couchdb
2026-01-09 17:24:01 +01:00
Chris Smowton
44089d84a3
Merge pull request #21102 from github/smowton/admin/respect-config-paths-filters-pre-finalize
...
All languages: account for paths and paths-ignore in XML and other ancillary extraction
2026-01-09 16:23:26 +00:00
Chris Smowton
fa0e8cc4a4
Merge pull request #21137 from smowton/smowton/admin/reapply-java-xml-paths-filtering
...
Java: revert revert of `paths` / `paths-ignore` handling in XML and other ancillary extractor
2026-01-09 16:22:26 +00:00
Mauro Baluda
4c8058d97b
Merge branch 'github:main' into couchdb
2026-01-09 17:20:40 +01:00
Simon Friis Vindum
41921a85bb
Rust: Make function trait syntax without return type default to unit
2026-01-09 16:08:01 +01:00
Simon Friis Vindum
d45269609a
Rust: Add test with fn trait syntax without return type
2026-01-09 15:38:12 +01:00
Chris Smowton
634e9e6c39
Reapply "Change note"
...
This reverts commit 688f10daf1 .
2026-01-09 13:42:48 +00:00
Chris Smowton
13e0e6c694
Reapply "Add integration test for paths and paths-ignore vs. Java buildless mode"
...
This reverts commit 9db11f73c5 .
2026-01-09 13:42:43 +00:00
Tom Hvitved
f3d78a4e0b
Rust: Update expected test output
2026-01-09 14:40:04 +01:00
Tom Hvitved
609eb17e30
Rust: Add more models
2026-01-09 14:40:03 +01:00
Tom Hvitved
0d0029f5a3
Rust: Update expected test output
2026-01-09 14:40:01 +01:00
Tom Hvitved
792908586a
Rust: Add some ffi models
2026-01-09 14:40:00 +01:00
Tom Hvitved
31b0d3eb1d
Rust: Fix some models in fs.model.yml
2026-01-09 14:39:59 +01:00
Tom Hvitved
636bbe30f9
Merge pull request #21122 from hvitved/rust/summary-read-taint-step
...
Rust: Also lift read steps in summaries as taint steps
2026-01-09 14:39:39 +01:00
Simon Friis Vindum
ac62a9fe57
Merge pull request #21133 from paldepind/rust/type-item-path-resolution
...
Rust: Use `TypeItem` in path resolution
2026-01-09 14:35:12 +01:00
Taus
89ddd67ebe
Merge pull request #21002 from github/tausbn/python-add-models-for-zstd-compression
...
Python: Add modelling for `zstd.compression`
2026-01-09 14:05:06 +01:00
Tom Hvitved
209ee9236b
Rust: Also lift read steps in summaries as taint steps
2026-01-09 12:13:46 +01:00
Tom Hvitved
1a29b32af9
Merge pull request #20987 from hvitved/rust/type-inference-deref-trait
...
Rust: Handle `Deref` trait in type inference and data flow
2026-01-09 12:10:46 +01:00
Owen Mansel-Chan
9493d9d5ab
Merge pull request #21131 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2026-01-09 10:48:36 +00:00
Simon Friis Vindum
11bd334370
Rust: Use TypeItem in path resolution
2026-01-09 11:40:16 +01:00
Tom Hvitved
e2eaf80202
Rust: Fix QL4QL finding
2026-01-09 11:28:37 +01:00
Owen Mansel-Chan
d7acb75f9d
Merge pull request #21055 from owen-mc/java/allow-mad-barriers
...
Java: allow MaD barriers
2026-01-09 10:27:48 +00:00
Tom Hvitved
6028cd6636
Address review comments
2026-01-09 11:14:23 +01:00
Owen Mansel-Chan
ca805e9d84
Fix QLDoc
2026-01-09 10:09:22 +00:00
Owen Mansel-Chan
c271e52fe5
Validate models for barriers and barrier guards
2026-01-09 10:04:56 +00:00
Owen Mansel-Chan
8c9318b1a0
Minor tweaks to QLDocs
2026-01-09 09:38:10 +00:00
Anders Schack-Mulligen
e35fa923c7
C#: Add support for MaD barriers and barrier guards.
2026-01-09 10:32:19 +01:00
Owen Mansel-Chan
70c90a1063
Merge pull request #21129 from owen-mc/java/delete-promoted-experimental-models
...
Java: Delete experimental models that have been promoted
2026-01-09 09:30:32 +00:00
Simon Friis Vindum
3a135888c7
C++: Improve bounds from inequalities on integers
2026-01-09 10:26:36 +01:00
Simon Friis Vindum
9af432d2f9
C++: Add simple range analysis tests for inequalities
2026-01-09 10:12:36 +01:00
github-actions[bot]
bea93ae03e
Add changed framework coverage reports
2026-01-09 00:26:15 +00:00
Owen Mansel-Chan
cce6823d3b
Delete experimental models that have been promoted
...
They were promoted in https://github.com/github/codeql/pull/17590
2026-01-08 15:33:59 +00:00
Anders Schack-Mulligen
af5adbac30
SSA: Improve performance of finding relevant phi input nodes.
2026-01-08 15:02:34 +01:00
Owen Mansel-Chan
8a80158959
Merge pull request #17590 from Kwstubbs/java-mad-test
...
Java: FileUpload Support MaD
2026-01-08 13:33:55 +00:00
Jeroen Ketema
72f1aa9381
C++: Add change notes
2026-01-08 13:59:39 +01:00
Jeroen Ketema
9ceb091f85
C++: Update predicate after getAnArrayOffset/0 deprecation
2026-01-08 13:54:02 +01:00
Simon Friis Vindum
c8728c24dc
Merge pull request #21125 from paldepind/rust/builtin-refactor
...
Rust: Use `getAssocItem` consistently in stdlib classes
2026-01-08 13:43:40 +01:00
Jeroen Ketema
4c3fb0c7c4
C++: Deprecate getArrayOffset/0
2026-01-08 13:22:38 +01:00
yoff
608fa1a0a3
Merge pull request #20910 from yoff/java/more-thread-safe-initialisers
2026-01-08 13:16:39 +01:00
Jeroen Ketema
e0f8b1254e
C++: Update expected test results
2026-01-08 13:13:20 +01:00
Jeroen Ketema
3907fc7e5a
C++: Add predicates to support multidimensional subscript operators
2026-01-08 13:13:10 +01:00
Simon Friis Vindum
26bd332617
Merge pull request #21113 from paldepind/cpp/range-analysis-float-ceil
...
C++: Remove `safeFloor` in simple range analysis
2026-01-08 13:07:30 +01:00
Jeroen Ketema
647d11a6ce
C++: Add test for C++23 multidimensional subscript operators
2026-01-08 13:02:31 +01:00
Jeroen Ketema
0c8fd833af
Merge pull request #21124 from jketema/jketema/vec-expr
...
C++: Add tests for logical vector operations
2026-01-08 12:50:31 +01:00
Owen Mansel-Chan
c419b51efd
Merge pull request #21120 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2026-01-08 11:32:08 +00:00
Simon Friis Vindum
56f5328530
Rust: Use getAssocItem consistently in stdlib classes
2026-01-08 11:59:10 +01:00
Jeroen Ketema
217c5cb78b
C++: Update tests after adding extractor support for logical vector operations
2026-01-08 11:55:47 +01:00
Jeroen Ketema
89c11b8daf
C++: Add tests for logical vector operations
2026-01-08 11:54:49 +01:00
Jeroen Ketema
1ebf623541
C++: Add space in tests for adding new tests in a logical place
2026-01-08 11:54:42 +01:00
Paolo Tranquilli
22b88aea06
Merge pull request #21119 from github/redsun82/cmake
...
Cmake: fix bazel not generating files for the cmake generator
2026-01-08 09:59:08 +01:00
Asger F
2ea3c0e366
Merge pull request #20938 from tesseractjh/js/use-cache-directives
...
JS: Add use cache directives from Next.js 16
2026-01-08 09:51:53 +01:00
Simon Friis Vindum
7c0054bf25
C++: Tweak a comment in simple range analysis
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2026-01-08 08:51:04 +01:00
github-actions[bot]
614a05133e
Add changed framework coverage reports
2026-01-08 00:26:30 +00:00
Chris Smowton
d048d394b4
Merge pull request #21117 from smowton/smowton/admin/revert-java-paths-directives
...
Java: revert filtering of ancillary data extraction
2026-01-07 16:13:21 +00:00
Jeroen Ketema
a5f6806239
Merge pull request #21105 from jketema/load-this
...
C++: Use the loaded `this` instead of the `this` initialization
2026-01-07 16:51:14 +01:00
Paolo Tranquilli
e3503be1d1
Cmake: fix bazel not generating files for the cmake generator
2026-01-07 16:36:36 +01:00
Taus
8602a2d59b
Python: Use correct first parameter name for zstd call
...
Co-authored-by: yoff <yoff@github.com >
2026-01-07 14:47:11 +01:00
Owen Mansel-Chan
6a3c74c989
Merge pull request #20999 from joefarebrother/java-spring-websocket
...
Java: Add models for spring WebSocketHandler
2026-01-07 13:29:19 +00:00
Chris Smowton
688f10daf1
Revert "Change note"
...
This reverts commit 6fb6923f63 .
2026-01-07 13:20:17 +00:00
Chris Smowton
9db11f73c5
Revert "Add integration test for paths and paths-ignore vs. Java buildless mode"
...
This reverts commit 102cfd06a7 .
2026-01-07 13:20:12 +00:00
Tom Hvitved
fef00c1668
Add change note
2026-01-07 14:17:48 +01:00
Tom Hvitved
2d4da807c1
Merge pull request #21114 from hvitved/rust/exclude-result-err-taint-step
...
Rust: Add `Result::Err` to `excludeFieldTaintStep`
2026-01-07 14:01:49 +01:00
Michael Nebel
7ed3d3f3e1
Merge pull request #21065 from michaelnebel/csharp/implicitspanconversions
...
C# 14: Implicit span conversions.
2026-01-07 13:39:58 +01:00
Simon Friis Vindum
f5ddb1d51d
C++: Remove safeFloor in simple range analysis
2026-01-07 12:49:09 +01:00
Owen Mansel-Chan
6c291e1e7f
Add model for handlePongMessage and update test
2026-01-07 11:09:59 +00:00
Tom Hvitved
1e792132ba
Rust: Add Result::Err to excludeFieldTaintStep
2026-01-07 11:37:08 +01:00
Asger F
cf0b77074f
JS: Workaround forceLocal not supporting 'result' column
...
A bug made it into the release which causes compilation errors when
forceLocal is used on a predicate with a result column.
This commit works around the issue by converting the result column
to a positional parameter, for the predicates that we use forceLocal on.
It should be safe to revert this commit once the compiler fix has made
it into a stable release.
2026-01-07 11:05:41 +01:00
Asger F
e16cacd48d
JS: Rename "in scope" to "in active file"
2026-01-07 11:05:41 +01:00
Asger F
87049bd07e
Update javascript/ql/lib/semmle/javascript/ApiGraphs.qll
...
Co-authored-by: Taus <tausbn@github.com >
2026-01-07 11:05:41 +01:00
Asger F
56a6fe4c08
Update javascript/ql/lib/semmle/javascript/ApiGraphs.qll
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-01-07 11:05:41 +01:00
Asger F
d0dbc91aa9
Update javascript/ql/lib/semmle/javascript/ApiGraphs.qll
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-01-07 11:05:41 +01:00
Asger F
9721b4e0f5
JS: Fix bad join in export logic
2026-01-07 11:05:41 +01:00
Asger F
cae27c40be
JS: Add a missing needsDefNode restriction
...
Previously this was implied by MkClassInstance but that's no longer
the case.
2026-01-07 11:05:41 +01:00
Asger F
369848a870
JS: Fix some QL4QL alerts
2026-01-07 11:05:41 +01:00
Asger F
869efb8a48
JS: Sync ApiGraphModels.qll
2026-01-07 11:05:41 +01:00
Asger F
97d369cf4e
JS: Make API::Node overlay[local?]
...
We want the type itself to be local but nearly all its member predicates
are global.
2026-01-07 11:05:41 +01:00
Asger F
27e8bcb347
JS: Add back promisify-all support
...
This was somehow lost in a rebase
2026-01-07 11:05:41 +01:00
Asger F
8731eee10e
JS: Work around an issue with overlay-invariance
2026-01-07 11:05:41 +01:00
Asger F
962c128f20
JS: Update test output to reflect Node.toString() change
2026-01-07 11:05:41 +01:00
Asger F
7974416e65
JS: Simplify toString()
2026-01-07 11:05:41 +01:00
Asger F
651608a170
JS: Bugfix in Stage1Local::trackDefNode
2026-01-07 11:05:41 +01:00
Asger F
ed3a8bdfa9
JS: Include import paths from custom ModuleImportNode::Range subclasses
2026-01-07 11:05:41 +01:00
Asger F
c687dc93b0
JS: Add overlay[global] to abstract classes with fields
...
Some abstract classes defines fields without binding them, leaving it up to the subclasses to bind them. When combined with overlay[local?], the charpred for such an abstract class can become local, while the subclasses are global. The means the charpred needs to be materialized, even though it doesn't bind the fields, leading to a cartesian product.
2026-01-07 11:05:41 +01:00
Asger F
cf0e7652f4
JS: Remove global dependency that wasnt needed anyway
2026-01-07 11:05:41 +01:00
Asger F
a6dfb8351c
JS: Add back CallReceiverStep() restriction
...
This was initially lost after rebasing with indentation changes
2026-01-07 11:05:41 +01:00
Asger F
825c08356f
JS: Change signature of 'edges' to support quick eval
2026-01-07 11:05:41 +01:00
Asger F
4bd0f34938
JS: Add debug tools for detecting lost nodes/edges
2026-01-07 11:05:41 +01:00
Asger F
c9d3f06fbc
JS:Add more member labels
2026-01-07 11:05:41 +01:00
Asger F
9c37e076cc
JS: Add overlay-specific Stage2
2026-01-07 11:05:41 +01:00
Asger F
1001e86f20
JS: Restrict Stage1 to the base database
2026-01-07 11:05:41 +01:00
Asger F
b12d927020
JS: Also expose "any state" version of tracking predicates
2026-01-07 11:05:41 +01:00
Asger F
daf04f1184
JS: Call forceLocal on the output of Stage 1
2026-01-07 11:05:41 +01:00
Asger F
271567c88f
JS: Add missing def-node roots
2026-01-07 11:05:41 +01:00
Asger F
123bc64091
JS: Improve join order at MkUse call
2026-01-07 11:05:41 +01:00
Asger F
295bc6981d
JS: Make API nodes and labels local
2026-01-07 11:05:41 +01:00
Asger F
6c00a7fb96
JS: Remove unused predicate
2026-01-07 11:05:41 +01:00
Asger F
3ed0f36bb1
JS: Use forceLocal to localize MkTypeUse
2026-01-07 11:05:41 +01:00
Asger F
385bb32710
JS: Localize MkClassInstance
2026-01-07 11:05:41 +01:00
Asger F
a2a9518d2a
JS: Localize MkModuleImport
2026-01-07 11:05:41 +01:00
Asger F
3110e5a8ac
JS: Localize MkModuleExport
2026-01-07 11:05:41 +01:00
Asger F
c8108d109d
JS: Localize charpred of API::EntryPoint
...
This is needed for localizing ApiLabel later
2026-01-07 11:05:41 +01:00
Asger F
b69f8532d0
JS: Moving 'cache' annotations outside the parameterised module
2026-01-07 11:05:41 +01:00
Asger F
10db30a715
JS: Parameterise the module (still only one instantiation)
2026-01-07 11:05:41 +01:00
Asger F
465f4b987d
JS: Wrap in a module
...
Simply wraps everything in 'cached private module Stage {}' and adds 'import Stage'.
The diff is large because of indentation changes.
2026-01-07 11:05:41 +01:00
Asger F
fd65eeba0a
JS: Make use() and rhs() uncached and private
2026-01-07 11:05:41 +01:00
Asger F
8f413856e0
JS: Make other node types not depend on tracking predicates
2026-01-07 11:05:41 +01:00
Asger F
7fc87536bf
JS: Make MkSyntheticCallbackArg() independent of trackUseNode
2026-01-07 11:05:41 +01:00
Asger F
12c0ad0e04
JS: Stop dependeding on getPath() for toString()
2026-01-07 11:05:41 +01:00
Simon Friis Vindum
bd24fb0baa
C++: Add simple range analysis test for bitshift
2026-01-07 10:56:50 +01:00
Tom Hvitved
dce21e595e
Rust: Model implicit Deref trait calls in data flow
2026-01-07 10:51:56 +01:00
Tom Hvitved
0c7aeb4bce
Rust: Update data flow test to use implicit borrow
2026-01-07 10:51:55 +01:00
Tom Hvitved
4540662ab9
Rust: Model Deref trait in type inference
2026-01-07 10:51:53 +01:00
Tom Hvitved
caa0e90cd8
Rust: More type inference tests
2026-01-07 10:51:52 +01:00
Geoffrey White
503a1b5d0c
Merge pull request #21107 from geoffw0/rusttest
...
Rust: Additional test cases for tuple content.
2026-01-07 09:37:14 +00:00
Michael Nebel
8fe31a1fd6
C#: Add some more testcases and update test expected output.
2026-01-07 09:56:02 +01:00
Michael Nebel
a991afdf69
C#: Use ref conversions (including variance conversions) for element types of span conversions.
2026-01-07 09:55:10 +01:00
Michael Nebel
77b0c4bbe4
Merge pull request #21111 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2026-01-07 09:41:21 +01:00
github-actions[bot]
53a0b8dd47
Add changed framework coverage reports
2026-01-07 00:25:25 +00:00
Owen Mansel-Chan
a7c4ba503e
Add missing qldoc
2026-01-06 23:41:33 +00:00
Owen Mansel-Chan
8602c4c57c
Rename Default* to External* for MaD classes
2026-01-06 22:57:01 +00:00
Owen Mansel-Chan
7fff3534fa
Convert 3 barriers for path injection to MaD
2026-01-06 22:56:59 +00:00
Owen Mansel-Chan
1e18fce300
Convert xss sanitizer to MaD
2026-01-06 22:56:57 +00:00
Owen Mansel-Chan
1e6410804f
Allow non-query-specific MaD sanitizers
2026-01-06 22:56:55 +00:00
Anders Schack-Mulligen
1fbc28b753
Go: Add support for MaD barriers and barrier guards.
2026-01-06 22:51:32 +00:00
Jeroen Ketema
c567197f29
C++: Simplify expression
2026-01-06 21:58:43 +01:00
Ian Lynagh
70cc153cf5
Merge pull request #21104 from github/post-release-prep/codeql-cli-2.23.9
...
Post-release preparation for codeql-cli-2.23.9
2026-01-06 18:25:18 +00:00
Geoffrey White
13df23630b
Rust: Effect of lifting content reads as taint steps.
2026-01-06 16:47:07 +00:00
Jeroen Ketema
063e5d300e
C++: Remove redundant SSA branch after IR fix
2026-01-06 17:40:52 +01:00
Geoffrey White
6e2702c3af
Rust: Add some taint tests involving tuples.
2026-01-06 16:38:36 +00:00
Jeroen Ketema
3cd9938ebe
C++: Update expected test results after IR changes
2026-01-06 17:37:22 +01:00
Jeroen Ketema
740518d23f
C++: Use the loaded this instead of the this initialization
2026-01-06 17:11:22 +01:00
github-actions[bot]
2cb932cf5d
Post-release preparation for codeql-cli-2.23.9
2026-01-06 15:42:16 +00:00
Ian Lynagh
b4f4b0e6b0
Merge pull request #21092 from github/release-prep/2.23.9
...
Release preparation for version 2.23.9
2026-01-06 15:06:25 +00:00
Owen Mansel-Chan
766e908c79
Accept MaD sanitizers for existing sink kinds
2026-01-06 14:38:27 +00:00
Owen Mansel-Chan
81667d741a
Rename classes for external sanitizers
2026-01-06 14:36:54 +00:00
Michael Nebel
b686890ba6
C#: Address review comments.
2026-01-06 15:08:13 +01:00
Tom Hvitved
1a2f72252a
Merge pull request #21072 from hvitved/rust/mad-provenance-refactor
...
Rust: Refactor MaD provenance-based filtering
2026-01-06 14:59:42 +01:00
Taus
4a567ad75e
Python: Add change note
2026-01-06 13:40:38 +00:00
Taus
2c83b296a4
Python: Add parser test
...
Note in particular that the `exceptions.py` test is unaffected.
2026-01-06 13:40:38 +00:00
Taus
4db60df9dd
Python: Regenerate parser files
2026-01-06 13:40:38 +00:00
Taus
2380bfd459
Python: Add support for PEP-758 exception syntax
...
See https://peps.python.org/pep-0758/ for more details.
We implement this by extending the syntax for exceptions and exception
groups so that the `type` field can now contain either an expression
(which matches the old behaviour), or a comma-separated list of at least
two elements (representing the new behaviour).
We model the latter case using a new node type `exception_list`, which
in `tsg-python` is simply mapped to a tuple. This means it matches the
existing behaviour (when the tuple is surrounded by parentheses)
exactly, hence we don't need to change any other code.
As a consequence of this, however, we cannot directly parse the Python
2.7 syntax `except Foo, e: ...` as `except Foo as e: ...`, as this would
introduce an ambiguity in the grammar. Thus, we have removed support for
the (deprecated) 2.7-style syntax, and only allow `as` to indicate
binding of the exception. The syntax `except Foo, e: ...` continues to
be parsed (in particular, it's not suddenly a syntax error), but it will
be parsed as if it were `except (Foo, e): ...`, which may not give the
correct results.
In principle we could extend the QL libraries to account for this case
(specifically when analysing Python 2 code). In practice, however, I
expect this to have a minor impact on results, and not worth the
additional investment at this time.
2026-01-06 13:40:37 +00:00
Tom Hvitved
da6d0abe31
Address review comment
2026-01-06 14:35:07 +01:00
Taus
72f9e34318
Merge pull request #20708 from github/tausbn/python-add-support-for-template-string-literals
...
Python: Add support for template string literals
2026-01-06 14:33:51 +01:00
Ian Lynagh
c233e36d4f
Merge pull request #21103 from igfoo/igfoo/css
...
Fix header link color and hover effect in query help documentation
2026-01-06 13:30:40 +00:00
Jeroen Ketema
4ede207c1f
Merge pull request #20926 from jketema/jketema/frontend-update
...
C++: Update expected test results after frontend update
2026-01-06 14:25:40 +01:00
Chris Smowton
6ed24f22b5
Change notes
2026-01-06 13:01:37 +00:00
Jeroen Ketema
d02ef7c6b1
C++: Add change notes
2026-01-06 13:53:47 +01:00
Jeroen Ketema
17b22bc088
C++: Update expected test results after frontend _Generic fix
2026-01-06 13:53:45 +01:00
Jeroen Ketema
5117b5906b
C++: Exclude comparisons from enum constants in `cpp/constant-comparison
2026-01-06 13:53:44 +01:00
Jeroen Ketema
112eaadfae
C++: Add another cpp/constant-comparison FP test case
2026-01-06 13:53:43 +01:00
Jeroen Ketema
1f10cddef5
C++: Accept test changes after frontend update and uncomment test case
...
The new frontend version does less constant folding.
2026-01-06 13:53:41 +01:00
Jeroen Ketema
90d6c9fc56
C++: Exclude more comparisons from cpp/constant-comparison
2026-01-06 13:53:40 +01:00
Jeroen Ketema
509cbf7049
C++: Add cpp/constant-comparison FP test cases after frontend update
2026-01-06 13:53:38 +01:00
Jeroen Ketema
2615dab2e2
C++: Update supported compiler versions
2026-01-06 13:53:35 +01:00
Jeroen Ketema
87a9065d61
C++: Update expected test results after frontend update
2026-01-06 13:53:34 +01:00
Chris Smowton
af36eae002
All languages: account for paths and paths-ignore in XML and other ancillary extraction
2026-01-06 12:48:01 +00:00
Tom Hvitved
eca451ea05
Merge pull request #21101 from hvitved/ruby/fix-bad-join
...
Ruby: Fix bad join
2026-01-06 13:44:29 +01:00
Tom Hvitved
5359b3d6e7
Merge pull request #21099 from hvitved/rust/fix-todo
...
Rust: Improve `TuplePositionContent.getAnAccess`
2026-01-06 13:16:15 +01:00
Ian Lynagh
0465dbe02b
Fix header link color and hover effect in query help documentation
...
Fix from Oscar, who wrote:
The Alabaster theme's global `a { color: #2F1695 }` rule was overriding
header link colors, rendering them purple instead of white.
2026-01-06 12:15:50 +00:00
Chris Smowton
bfcd36002a
Merge pull request #21049 from smowton/smowton/admin/java-buildless-paths-test
...
Add integration test for paths and paths-ignore vs. Java buildless mode
2026-01-06 12:01:09 +00:00
Michael Nebel
f32860b2d2
Merge pull request #21100 from michaelnebel/csharp14/nameofgenerictype
...
C# 14: [TEST ONLY] Test for `nameof` generic type.
2026-01-06 12:37:10 +01:00
Chris Smowton
6fb6923f63
Change note
2026-01-06 10:59:06 +00:00
Chris Smowton
102cfd06a7
Add integration test for paths and paths-ignore vs. Java buildless mode
2026-01-06 10:59:04 +00:00
Tom Hvitved
358339427b
Ruby: Fix bad join
...
Before
```
Evaluated relational algebra for predicate Filters::Filters::FilterCall.getAnAction/0#dispred#9c0da667@85a4cbtp with tuple counts:
394650 ~2% {2} r1 = `__#Module::ModuleBase.getAMethod/0#dispred#56626ed3Merge_Module::ModuleBase.getModule/0#dispred#4f2c__#shared` AND NOT `_Filters::Filters::FilterCall.getExceptArgument/0#dispred#515c95c0__#Method::Method.getName/0#dispre__#antijoin_rhs`(FIRST 2)
{2} | AND NOT `project#Filters::Filters::FilterCall.getOnlyArgument/0#dispred#f337e70f`(FIRST 1)
380366 ~0% {2} | SCAN OUTPUT In.1, In.0
29453 ~0% {2} r2 = JOIN `_#Module::ModuleBase.getAMethod/0#dispred#56626ed3Merge__#AST::AstNode.getEnclosingModule/0#dispred#__#shared` WITH project#ActionController::ActionControllerActionMethod#6db6f5e0 ON FIRST 1 OUTPUT Lhs.0, Lhs.1
366017 ~0% {2} r3 = JOIN `_#Module::ModuleBase.getAMethod/0#dispred#56626ed3Merge_Module::ModuleBase.getModule/0#dispred#4f2ca__#shared` WITH project#ActionController::ActionControllerActionMethod#6db6f5e0 ON FIRST 1 OUTPUT Lhs.0, Lhs.1
395470 ~0% {2} r4 = r2 UNION r3
395470 ~0% {3} | JOIN WITH `Method::Method.getName/0#dispred#2acbf239` ON FIRST 1 OUTPUT Lhs.1, Rhs.1, Lhs.0
2227 ~0% {2} | JOIN WITH `Filters::Filters::FilterCall.getOnlyArgument/0#dispred#f337e70f` ON FIRST 2 OUTPUT Lhs.2, Lhs.0
382593 ~0% {2} r5 = r1 UNION r4
133735 ~4% {2} | JOIN WITH `project#ActionController::ActionControllerActionMethod.getARoute/0#dispred#9eb85e56` ON FIRST 1 OUTPUT Lhs.1, Lhs.0
540556870 ~2% {3} | JOIN WITH Filters::Filters::Filter#a42c5138 CARTESIAN PRODUCT OUTPUT Rhs.0, Lhs.0, Lhs.1
525979755 ~127% {3} | JOIN WITH `Filters::Filters::FilterImpl.getFilterCallable/0#dispred#451bf7d7` ON FIRST 1 OUTPUT Lhs.1, Lhs.2, Rhs.1
{3} | REWRITE WITH TEST InOut.1 != InOut.2
525979755 ~407036% {2} | SCAN OUTPUT In.0, In.1
return r5
```
After
```
Evaluated relational algebra for predicate Filters::Filters::FilterCall.getAnAction/0#91dba45c@74dfcepp with tuple counts:
1363 ~4% {2} r1 = JOIN `Filters::Filters::FilterCall.getAnActionCand/1#f053150d` WITH `Filters::Filters::FilterCall.getOnlyArgument/0#dispred#f337e70f` ON FIRST 2 OUTPUT Lhs.0, Lhs.2
140978 ~0% {3} r2 = `Filters::Filters::FilterCall.getAnActionCand/1#f053150d` AND NOT `Filters::Filters::FilterCall.getExceptArgument/0#dispred#515c95c0#fb`(FIRST 2)
{3} | AND NOT `project#Filters::Filters::FilterCall.getOnlyArgument/0#dispred#f337e70f`(FIRST 1)
132372 ~3% {2} | SCAN OUTPUT In.0, In.2
133735 ~4% {2} r3 = r1 UNION r2
return r3
```
2026-01-06 11:42:49 +01:00
Michael Nebel
0a0cbdb799
C#14: Test for nameof generic type.
2026-01-06 11:32:49 +01:00
Michael Nebel
ff1ec47f98
Merge pull request #21095 from michaelnebel/net10/generatedmodels
...
C#: Update .NET runtime models.
2026-01-06 11:15:47 +01:00
Michael Nebel
2e208045d4
C#: Update test expected output.
2026-01-06 10:20:41 +01:00
Anders Peter Fugmann
103b3df885
Merge pull request #21093 from github/andersfugmann/deprecate_kotlin_1.7
...
Kotlin: Mark support for Kotlin versions 1.6 and 1.7 as deprecated
2026-01-06 09:53:26 +01:00
Michael Nebel
f5321548e1
C#: Add change note.
2026-01-06 09:46:44 +01:00
Michael Nebel
5299b356a9
C#: Update models test expected output.
2026-01-06 09:46:34 +01:00
Michael Nebel
0d5f1b11ad
C#: Update .NET runtime generated models.
2026-01-06 09:44:23 +01:00
Tom Hvitved
ae9588e176
Rust: Improve TuplePositionContent.getAnAccess
2026-01-06 09:24:32 +01:00
Tom Hvitved
19179d5005
Merge pull request #21071 from hvitved/rust/access-after-lifetime-perf
...
Rust: Speedup `AccessAfterLifetime.ql`
2026-01-06 09:18:05 +01:00
Michael Nebel
16b2e7150a
Merge pull request #21069 from michaelnebel/net10/stubs
...
C#: Generate .NET 10 stubs.
2026-01-06 07:56:25 +01:00
Tom Hvitved
836b667a62
Address review comment
2026-01-05 19:47:02 +01:00
Nick Rolfe
5faa546053
Merge pull request #21096 from github/nickrolfe/doc-range-checks
...
Docs: clarify behavior of range checks
2026-01-05 18:30:10 +00:00
Nick Rolfe
4ebbd1f9f3
Docs: clarify behavior of range checks
...
The current wording (about the sets of values being "the same") is not
accurate.
2026-01-05 18:03:54 +00:00
Michael Nebel
bbec35bcb1
C#: Update flow summaries test expected output.
2026-01-05 15:26:48 +01:00
Michael Nebel
a671810edf
C#: Update test options files to point to the new stubs versions.
2026-01-05 15:23:34 +01:00
Michael Nebel
576998a854
C#: Manual corrections to the generated stubs.
2026-01-05 15:23:31 +01:00
Michael Nebel
3f25065956
C#: Re-generate stubs.
2026-01-05 15:23:26 +01:00
Michael Nebel
2d90cc87dc
C#: Update hardcoded package version numbers for stub generation.
2026-01-05 15:23:23 +01:00
Anders Peter Fugmann
f87cb4a2e9
Update docs/codeql/reusables/supported-versions-compilers.rst
...
Add ending period for consitency
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-01-05 13:38:57 +01:00
Anders Fugmann
ba922fce26
Kotlin: Mark support for Kotlin versions 1.6 and 1.7 as deprecated
2026-01-05 13:13:11 +01:00
Tom Hvitved
2543754dd4
Rust: Remove newtype construction
2026-01-05 13:10:40 +01:00
Tom Hvitved
5bc457f6da
Rust: Move logic from AccessAfterLifetimeExtensions.qll to AccessAfterLifetime.ql
2026-01-05 13:10:38 +01:00
Tom Hvitved
06a5648336
Rust: Speedup AccessAfterLifetime.ql
...
Before
```
Pipeline standard for AccessAfterLifetimeExtensions::AccessAfterLifetime::mayEncloseOnStack/2#3cdefece#bf@61cb32j5 was evaluated in 30 iterations totaling 44856ms (delta sizes total: 241646328).
241404616 ~1% {2} r1 = SCAN `AccessAfterLifetimeExtensions::AccessAfterLifetime::mayEncloseOnStack/2#3cdefece#bf#prev_delta` OUTPUT In.1, In.0
7379161442 ~1080% {2} | JOIN WITH `_AstNode::AstNode.getEnclosingBlock/0#5c38e65a_AstNode::AstNode.getEnclosingCallable/0#5a548913_Bloc__#join_rhs` ON FIRST 1 OUTPUT Lhs.1, Rhs.1
333897324 ~40% {2} | AND NOT `AccessAfterLifetimeExtensions::AccessAfterLifetime::mayEncloseOnStack/2#3cdefece#bf#prev`(FIRST 2)
297961888 ~24% {2} | JOIN WITH `project#AccessAfterLifetimeExtensions::AccessAfterLifetime::sourceValueScope/3#d065ba16#2` ON FIRST 1 OUTPUT Lhs.0, Lhs.1
return r1
```
2026-01-05 13:10:37 +01:00
github-actions[bot]
c00663766e
Release preparation for version 2.23.9
2026-01-05 11:57:06 +00:00
Asger F
635f008bb2
Merge branch 'main' into js/use-cache-directives
2026-01-05 10:59:50 +01:00
Jeroen Ketema
ac859d90ef
Merge pull request #21070 from jketema/jketema/supported-platforms
...
Update supported platforms
2026-01-05 09:36:00 +01:00
Mauro Baluda
1e1fb43534
Update JsonObject put method signatures in YAML
...
Use erased type
2026-01-02 11:55:40 +01:00
Owen Mansel-Chan
bf79b8a792
Merge branch 'main' into java-mad-test
2026-01-01 23:34:45 +00:00
Kevin Stubbings
f73f1a7aa9
Add additional test
2025-12-29 07:09:31 +00:00
Mauro Baluda
cb341609e7
Add change notes for Couchbase sinks
2025-12-24 20:41:11 +01:00
Mauro Baluda
15ee88ee24
SQLi test case
2025-12-24 20:30:21 +01:00
Mauro Baluda
fd78c949d3
Merge branch 'github:main' into couchdb
2025-12-22 20:25:41 +01:00
Mauro Baluda
b22077c371
Hardcoded credentials in CouchBase
2025-12-22 20:22:20 +01:00
Tom Hvitved
f23351afca
Rust: Refactor MaD provanance-based filtering
2025-12-19 19:35:41 +01:00
Simon Friis Vindum
6fa60932c9
Merge pull request #21067 from paldepind/rust/type-inference-use-type-item
...
Rust: Refactor type inference to use new `TypeItem` class
2025-12-19 14:47:33 +01:00
Simon Friis Vindum
e0e493a9e3
Rust: Address review comments
2025-12-19 13:53:38 +01:00
Jeroen Ketema
57d88511d9
Update supported platforms
2025-12-19 11:35:59 +01:00
Jeroen Ketema
b5d3d95e72
Merge pull request #21037 from jketema/swift-6.2.3
...
Swift: Update to Swift 6.2.3
2025-12-19 10:21:40 +01:00
Simon Friis Vindum
dde845e92f
Rust: Refactor type inference to use new TypeItem class
2025-12-18 16:08:27 +01:00
Tom Hvitved
27874caf14
Merge pull request #20973 from hvitved/rust/type-inference-distinguish-mut-ref
...
Rust: Distinguish `&mut T` from `&T` in type inference
2025-12-18 15:59:40 +01:00
Jeroen Ketema
ed7854cc0d
Swift: Update LFS artifacts
2025-12-18 15:45:35 +01:00
Jeroen Ketema
64ee0d3b9d
Swift: Add change note
2025-12-18 15:43:33 +01:00
Asger F
f169251a0c
Merge pull request #20668 from knewbury01/knewbury01/add-react-useref-step
...
Add React missing useRef related constructs
2025-12-18 14:20:41 +01:00
Taus
6b03130755
Python: Fix bad join in import_points_to
2025-12-18 12:03:40 +00:00
Tom Hvitved
47d0863bc5
Merge pull request #21038 from github/path-combine-name-desc-update
...
Clarify Path.Combine call behavior
2025-12-18 12:54:38 +01:00
Michael Nebel
1817f9cdf7
C#: Add change-note.
2025-12-18 12:51:04 +01:00
Michael Nebel
44c9c58b48
C#: Add implicit span conversion test case.
2025-12-18 12:51:02 +01:00
Tom Hvitved
aae6cd93a2
Address review comments
2025-12-18 12:47:43 +01:00
Tom Hvitved
3c6a757c3e
Rust: Distinguish &mut T from &T in type inference
2025-12-18 12:47:42 +01:00
Asger F
806fcb2a15
Merge branch 'main' into knewbury01/add-react-useref-step
2025-12-18 12:10:10 +01:00
Michael Nebel
119ecff3b7
C#: Implicit span conversion.
2025-12-18 11:59:18 +01:00
Simon Friis Vindum
da99bbf6a6
Merge pull request #21059 from paldepind/rust/adt-class
...
Rust: Improve and rename `Adt` class
2025-12-18 10:41:11 +01:00
Simon Friis Vindum
96a986228d
Rust: Revert accidental changes
2025-12-18 09:04:07 +01:00
Jon Janego
a3c0082ac7
Update PathCombine.expected
2025-12-17 09:53:07 -06:00
Jon Janego
425d62cfd6
Update PathCombine metadata for clarity
2025-12-17 09:50:11 -06:00
Tom Hvitved
98dc4390ea
Merge pull request #21060 from hvitved/shared/unbound-list
...
Shared: Add library for unbound lists
2025-12-17 16:20:40 +01:00
Jon Janego
e36b602743
Enhance PathCombine.ql metadata details
2025-12-17 09:16:56 -06:00
Jon Janego
7423f6f99b
Fix typo in warning message for Path.Combine
2025-12-17 09:16:05 -06:00
Simon Friis Vindum
9e8735f84c
Merge pull request #20878 from paldepind/rust/axum-model
...
Rust: Add models for Axum
2025-12-17 15:47:28 +01:00
Tom Hvitved
47e375f6e4
Merge pull request #21057 from hvitved/rust/fix-bad-join
...
Rust: Fix bad join
2025-12-17 15:34:45 +01:00
Tom Hvitved
adfaefd1e6
Merge pull request #21043 from hvitved/rust/type-inference-trait-bounds-overlap
...
Rust: Fix candidate receiver type calculation for trait bounds
2025-12-17 15:31:00 +01:00
Simon Friis Vindum
8564c1f458
Rust: Add change note
2025-12-17 14:50:50 +01:00
Simon Friis Vindum
97fd70e4f4
Rust: Accept change to expected file
2025-12-17 14:19:19 +01:00
Simon Friis Vindum
f1364caaa9
Rust: Add upgrade and downgrade scripts
2025-12-17 14:19:18 +01:00
Simon Friis Vindum
b64809cbd3
Rust: Adapt QL to AST changes
2025-12-17 14:19:16 +01:00
Tom Hvitved
b6cda4a29b
Update shared/util/codeql/util/UnboundList.qll
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-12-17 13:44:47 +01:00
Tom Hvitved
08339fe0df
Shared: Add library for unbound lists
2025-12-17 13:13:39 +01:00
Tom Hvitved
5c604fce48
Rust: Fix bad join
...
Before
```
Evaluated relational algebra for predicate TypeInference::MethodResolution::MethodCall.getTrait/0#dispred#fc13ba6e@914858bt with tuple counts:
153112 ~2% {2} r1 = SCAN `Operation::Operation.isOverloaded/3#f0e64084` OUTPUT In.0, In.1
153112 ~2% {2} | STREAM DEDUP
18807 ~0% {2} r2 = JOIN `TypeInference::getCallExprTraitQualifier/1#c084fe9f` WITH TypeInference::MethodResolution::MethodCallCallExpr#6eae461f ON FIRST 1 OUTPUT Lhs.0, Lhs.1
65859035 ~3% {3} r3 = JOIN `_IndexExpr::Generated::IndexExpr#9975e37a_TypeInference::MethodResolution::MethodCallIndexExpr.isInM__#shared` WITH Trait::Generated::Trait#ecf50173 CARTESIAN PRODUCT OUTPUT Rhs.0, _, Lhs.0
65859035 ~0% {3} | REWRITE WITH Out.1 := "core::ops::index::Index"
11191 ~0% {2} | JOIN WITH `Addressable::Addressable.getCanonicalPath/0#dispred#6044348f#bb` ON FIRST 2 OUTPUT Lhs.2, Lhs.0
671 ~0% {1} r4 = JOIN IndexExpr::Generated::IndexExpr#9975e37a WITH `TypeInference::MethodResolution::MethodCallIndexExpr.isInMutableContext/0#dispred#8c8ad425` ON FIRST 1 OUTPUT Lhs.0
3948835 ~2% {3} | JOIN WITH Trait::Generated::Trait#ecf50173 CARTESIAN PRODUCT OUTPUT Rhs.0, _, Lhs.0
3948835 ~2% {3} | REWRITE WITH Out.1 := "core::ops::index::IndexMut"
671 ~1% {2} | JOIN WITH `Addressable::Addressable.getCanonicalPath/0#dispred#6044348f#bb` ON FIRST 2 OUTPUT Lhs.2, Lhs.0
183781 ~0% {2} r5 = r1 UNION r2 UNION r3 UNION r4
return r5
```
After
```
Evaluated relational algebra for predicate TypeInference::MethodResolution::MethodCall.getTrait/0#dispred#fc13ba6e@1b4a55e3 with tuple counts:
153112 ~2% {2} r1 = SCAN `Operation::Operation.isOverloaded/3#f0e64084` OUTPUT In.0, In.1
153112 ~2% {2} | STREAM DEDUP
11191 ~0% {2} r2 = JOIN `_IndexExpr::Generated::IndexExpr#9975e37a_TypeInference::MethodResolution::MethodCallIndexExpr.isInM__#shared` WITH Stdlib::IndexTrait#e80543a5 CARTESIAN PRODUCT OUTPUT Lhs.0, Rhs.0
18807 ~0% {2} r3 = JOIN `TypeInference::getCallExprTraitQualifier/1#c084fe9f` WITH TypeInference::MethodResolution::MethodCallCallExpr#6eae461f ON FIRST 1 OUTPUT Lhs.0, Lhs.1
671 ~0% {1} r4 = JOIN IndexExpr::Generated::IndexExpr#9975e37a WITH `TypeInference::MethodResolution::MethodCallIndexExpr.isInMutableContext/0#dispred#8c8ad425` ON FIRST 1 OUTPUT Lhs.0
671 ~1% {2} | JOIN WITH Stdlib::IndexMutTrait#4d6c31bd CARTESIAN PRODUCT OUTPUT Lhs.0, Rhs.0
183781 ~0% {2} r5 = r1 UNION r2 UNION r3 UNION r4
return r5
```
2025-12-17 11:52:28 +01:00
Simon Friis Vindum
dd02ac3964
Rust: Update generated files
2025-12-17 11:13:13 +01:00
Simon Friis Vindum
ca6c054256
Rust: Rename Adt class and lift common predicates to it
2025-12-17 11:13:11 +01:00
Simon Friis Vindum
22bc924c26
Rust: Apply Black formatter to annotations.py
2025-12-17 11:13:10 +01:00
Tom Hvitved
eb56cbd358
Rust: Fix candidate receiver type calculation for trait bounds
2025-12-17 11:06:27 +01:00
Tom Hvitved
3104adbe77
Rust: Add type inference test
2025-12-17 11:06:22 +01:00
Tom Hvitved
802c465b31
Merge pull request #21027 from hvitved/rust/type-inference-matching-specialization
...
Rust: Also use specialized types when inferring types for calls
2025-12-17 11:03:44 +01:00
Tom Hvitved
fe0ce7a492
Address review comments
2025-12-17 10:35:28 +01:00
Jeroen Ketema
a04b10cb86
Swift: Fix dataset check errors by not referring to unavailable decls
...
Test
Test
Test
Test
Test
Test
2025-12-17 10:14:58 +01:00
Michael Nebel
8eddc71e0e
Merge pull request #21016 from michaelnebel/csharp/slnx
...
C#: Support `.slnx.` solution files.
2025-12-17 09:27:11 +01:00
Taus
4d45b5839d
Python: Add change note
2025-12-16 23:57:58 +01:00
Taus
b9616eb639
Python: Add stats
...
Not actually based on any measurements, just the usual 100/1000 stuff.
2025-12-16 23:57:58 +01:00
Taus
82c629ada8
Python: Add up-/downgrade scripts for template literals
...
We do the usual thing. Downgrade scripts remove the relevant relations;
upgrade scripts do nothing.
2025-12-16 23:57:58 +01:00
Taus
47c967a06c
Python: Bump extractor version
2025-12-16 23:57:58 +01:00
Taus
414e689291
Python: Add AST node wrappers
2025-12-16 23:57:58 +01:00
Taus
652c335d30
Python: Regenerate AST and dbscheme files
2025-12-16 23:57:58 +01:00
Taus
28e733e335
Python: Support template strings in rest of extractor
...
Adds three new AST nodes to the mix:
- `TemplateString` represents a t-string in Python 3.14
- `TemplateStringPart` represents one of the string constituents of a
t-string. (The interpolated expressions are represented as `Expr` nodes,
just like f-strings.)
- `JoinedTemplateString` represents an implicit concatenation of
template strings.
Importantly, we _completely avoid_ the complicated construction we
currently do for format strings (as well as the confusing nomenclature).
No extra injection of empty strings (so that a template string is a
strict alternation of strings and expressions). A `JoinedTemplateString`
simply has a list of template string children, and a `TemplateString`
has a list of "values" which may be either `Expr` or
`TemplateStringPart` nodes.
If we ever find that we actually want the more complicated interface for
these strings, then I would much rather we reconstruct this inside of QL
rather than in the parser.
2025-12-16 23:57:58 +01:00
Taus
cd7ae34380
Python: Regenerate parser files
2025-12-16 23:57:58 +01:00
Taus
7768ebe8b8
Python: Add parser support for template strings
...
- Extends the scanner with a new token kind representing the start of a
template string. This is used to distinguish template strings from
regular strings (because only a template string will start with a
`_template_string_start` external token).
- Cleans up the logic surrounding interpolations (and the method names)
so that format strings and template strings behave the same in this
case.
Finally, we add two new node types in the tree-sitter grammar:
- `template_string` behaves like format strings, but is a distinct type
(mainly so that an implicit concatenation between template strings and
regular strings becomes a syntax error).
- `concatenated_template_string` is the counterpart of
`concatenated_string`.
However, internally, the string parts of a template strings are just the
same `string_content` nodes that are used in regular format strings. We
will disambiguate these inside `tsg-python`.
2025-12-16 23:57:58 +01:00
Jon Janego
576f270753
Update PathCombine.ql
2025-12-16 16:39:06 -06:00
Jon Janego
44d896abaf
Merge pull request #21054 from github/changedocs-2.23.8
...
Changedocs 2.23.8
2025-12-16 12:18:59 -06:00
Jon Janego
c7ec175e10
Minor change to 2.23.1 rst
2025-12-16 11:36:34 -06:00
Jon Janego
92bb40d7e4
Minor revert to 2.23.1 rst
2025-12-16 11:35:35 -06:00
Jon Janego
ff0a0ed373
Adds changelog docs for 2.23.7 and 2.23.8
2025-12-16 11:28:34 -06:00
Jon Janego
30673a2fc8
Enhance PathCombine metadata with detailed description
...
Updated the `name` and `description` of PathCombine.ql to provide more details about the issue.
2025-12-16 10:37:53 -06:00
Jon Janego
84a501d360
Update csharp/ql/src/Bad Practices/PathCombine.ql
...
Co-authored-by: Tom Hvitved <hvitved@github.com >
2025-12-16 09:10:39 -06:00
Simon Friis Vindum
420dd9ab61
Rust: Add change note for Axum models
2025-12-16 15:15:22 +01:00
Simon Friis Vindum
e53bdb11be
Rust: Accept changes to expected files for consistency check
2025-12-16 13:15:34 +01:00
Simon Friis Vindum
63329b47d8
Merge pull request #21036 from paldepind/rust/prioritize-manual-summaries
...
Rust: Don't apply generated models for functions that have a manual model
2025-12-16 12:47:27 +01:00
Simon Friis Vindum
cbdab99497
Rust: Add XSS sink for Axum HTML response creation
2025-12-16 12:41:44 +01:00
Simon Friis Vindum
fbf9f7eda7
Rust: Add models for Axum
2025-12-16 12:41:32 +01:00
Simon Friis Vindum
0ea06aca06
Rust: Introduce more functions in Axum test
2025-12-16 12:32:40 +01:00
Michael Nebel
7df1d7a13f
C#: Address review comment.
2025-12-16 10:21:08 +01:00
Simon Friis Vindum
8c4b81ebc7
Rust: Fix typo in comment
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-12-16 10:19:01 +01:00
yoff
cbc0100675
Apply suggestion from @Copilot
2025-12-16 10:11:05 +01:00
yoff
50e9057db1
java: add change note
2025-12-16 10:11:05 +01:00
yoff
c6240e5a99
java: understand more initializers
...
Whne a fiels is assigned a safe type in a constructor,
that field is not exposed.
2025-12-16 10:11:05 +01:00
yoff
a65d385297
java: add tests for thread safe initialisation
...
Co-authored-by: Raúl Pardo <raul.pardo@protonmail.com >
2025-12-16 10:11:05 +01:00
Simon Friis Vindum
477e1cd96c
Rust: Fix manual model for PathBuf::as_path
2025-12-16 09:25:42 +01:00
Jon Janego
bd9b657e91
Update csharp/ql/src/Bad Practices/PathCombine.ql
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-12-15 15:20:52 -06:00
Jon Janego
f6e3e192ca
Clarify Path.Combine call behavior in documentation
...
Updated the name and description to clarify the issue with Path.Combine.
2025-12-15 15:18:34 -06:00
Tom Hvitved
d709343d38
Merge pull request #21011 from aschackmull/mad/shared-externalflow
...
Java/C++/Go/C#: Share parts of ExternalFlow.qll
2025-12-15 20:27:04 +01:00
Tom Hvitved
74ed18a89f
Merge pull request #21035 from hvitved/rust/ord-models
...
Rust: Add models for `core::cmp::Ord::{min,max,clamp}`
2025-12-15 17:09:33 +01:00
Jeroen Ketema
294de742a4
Swift: Update to Swift 6.2.3
2025-12-15 17:00:50 +01:00
Simon Friis Vindum
1b70111dd2
Rust: Don't apply generated models for functions that have a manual model
2025-12-15 14:25:49 +01:00
Simon Friis Vindum
d2cfd53933
Rust: Add test with wrong generated model
2025-12-15 14:23:48 +01:00
Tom Hvitved
86a4d42316
Rust: Remove obsolete comment from test
2025-12-15 13:10:41 +01:00
Tom Hvitved
3239afb278
Rust: Also use specialized types when inferring types for calls
2025-12-15 13:10:37 +01:00
Tom Hvitved
8e2d9d50b7
Rust: Add type inference test
2025-12-15 13:09:21 +01:00
Óscar San José
2824c98efb
Merge pull request #21025 from github/oscarsj/mergeback-rc-3-20-into-main
...
Mergeback rc/3.20 into main
2025-12-15 11:59:58 +01:00
Tom Hvitved
fc49360e81
Rust: Add models for core::cmp::Ord::{min,max,clamp}
2025-12-15 11:52:05 +01:00
Michael Nebel
70447c6483
Merge pull request #21026 from michaelnebel/csharp/migratesolution
...
C#: Migrate our own solution file to `.slnx`.
2025-12-15 11:01:35 +01:00
Geoffrey White
93e8534d0a
Merge pull request #21009 from geoffw0/varfps
...
Rust: Fix some false positives for rust/unused-variable and rust/unused-value
2025-12-15 09:48:47 +00:00
Geoffrey White
01f9b42472
Merge branch 'main' into varfps
2025-12-15 08:49:16 +00:00
Michael Nebel
949cfc3fbd
Merge pull request #21031 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2025-12-15 09:12:24 +01:00
github-actions[bot]
f7bbddec24
Add changed framework coverage reports
2025-12-15 00:27:40 +00:00
Owen Mansel-Chan
af2fbd8dda
Merge pull request #20929 from owen-mc/go/fix-data-flow-consistency-checks
...
Go: fix small issues highlighted by data flow consistency checks
2025-12-12 17:01:43 +00:00
Mathias Vorreiter Pedersen
3ea92eada6
Merge pull request #21024 from MathiasVP/csharp-implicit-map-value-reads
...
C#: Add implicit `System.Collections.Generic.KeyValuePair2.Value` reads at taint sinks
2025-12-12 16:46:12 +00:00
Tom Hvitved
b61a439491
Merge pull request #21020 from hvitved/shared/source-sink-provenance-prio
...
Shared: Prefer source/sink models with manual provenance over generated
2025-12-12 16:01:06 +01:00
Michael Nebel
e417938860
C#: Exclude all test projects from the Release build configuration.
2025-12-12 14:25:15 +01:00
Michael Nebel
7f1a9b57f1
C#: Update the default solution to point to the .slnx file instead.
2025-12-12 14:23:23 +01:00
Michael Nebel
1e43d06c6d
C#: Migrate CSharp.sln to CSharp.slnx (as is).
2025-12-12 14:22:51 +01:00
Anders Schack-Mulligen
64a48e4e7b
MaD: Use "namespace" instead "package" in shared code.
2025-12-12 13:57:02 +01:00
Anders Schack-Mulligen
7f8d0771df
MaD: Rename file.
2025-12-12 13:50:58 +01:00
Óscar San José
d972af9ef8
Merge branch 'main' of https://github.com/github/codeql into oscarsj/mergeback-rc-3-20-into-main
2025-12-12 13:22:08 +01:00
Mathias Vorreiter Pedersen
2720f57965
C#: Add change note.
2025-12-12 11:20:02 +00:00
Óscar San José
72b63bbdc3
Merge pull request #20989 from github/post-release-prep/codeql-cli-2.23.8
...
Post-release preparation for codeql-cli-2.23.8
2025-12-12 12:18:16 +01:00
Mathias Vorreiter Pedersen
f30ebab528
C#: Add implicit reads of System.Collections.Generic.KeyValuePair`2.Value at taint sinks.
2025-12-12 11:08:15 +00:00
Mathias Vorreiter Pedersen
b499661c05
C#: Slightly refactor 'CollectionFlow' tests to add a taint-flow test.
2025-12-12 11:06:01 +00:00
Simon Friis Vindum
c5987b4481
Merge pull request #21019 from paldepind/rust/impl-return
...
Rust: Don't propagate `impl` in return position into function bodies
2025-12-12 11:32:26 +01:00
Anders Schack-Mulligen
8564b4ea66
Go: Use shared modelCoverage.
2025-12-12 11:24:39 +01:00
Tom Hvitved
0b00589f95
Rust: Update expected test output
2025-12-12 11:16:17 +01:00
Tom Hvitved
0b81d44ec7
Rust: Apply same filtering of generated summaries as in C# and Java
2025-12-12 11:16:16 +01:00
Tom Hvitved
c4a8e9df21
Shared: Prefer source/sink models with manual provenance over generated
2025-12-12 11:16:13 +01:00
Anders Schack-Mulligen
f8c144b20e
Merge pull request #21018 from aschackmull/csharp/guards-connect-barrierguard
...
C#: Connect shared Guards to SSA BarrierGuards.
2025-12-12 10:50:47 +01:00
Tom Hvitved
6f27863453
Merge pull request #21012 from hvitved/csharp/nhibernate-sql-sinks
...
C#: Add `NHibernate` SQL sinks
2025-12-12 09:23:39 +01:00
Tom Hvitved
0566a9ffe6
Merge pull request #20994 from hvitved/csharp/remove-pre-ssa
...
C#: Remove `PreSsa` library
2025-12-12 09:22:36 +01:00
Anders Schack-Mulligen
4b2e8c0b57
C++/C#/Go: Add empty extensible data.
2025-12-12 09:17:51 +01:00
Anders Schack-Mulligen
5bddc8d289
Go: Move Go package-grouping support into shared lib.
2025-12-12 09:17:51 +01:00
Simon Friis Vindum
4425891352
Rust: Don't propagate impl in return position into function bodies
2025-12-12 09:13:04 +01:00
Michael Nebel
ea7e15829a
C#: Update integration test expected output.
2025-12-12 08:37:58 +01:00
Michael Nebel
b8def10977
C#: Claim support for .slnx in the public documentation.
2025-12-12 08:32:07 +01:00
Anders Schack-Mulligen
e262438557
C++: Use shared model coverage code.
2025-12-12 08:20:20 +01:00
Anders Schack-Mulligen
07252519c8
Java/C++: Thread additional models through the shared lib.
2025-12-12 08:20:20 +01:00
Anders Schack-Mulligen
47dcf05a32
C++/Go/Java: Don't import top-level extensible predicates.
2025-12-12 08:20:19 +01:00
Anders Schack-Mulligen
3b334ea215
Java/C#: Share model coverage code.
2025-12-12 08:20:19 +01:00
Anders Schack-Mulligen
0915db4f6b
C++/C#/Go: Use shared interpretModelForTest.
2025-12-12 08:20:18 +01:00
Anders Schack-Mulligen
f0e7f1af2c
C++/C#/Go: Align ExternalFlowExtensions with Java.
2025-12-12 08:20:18 +01:00
Anders Schack-Mulligen
cb578e32ab
Java: Move interpretModelForTest into shared code.
2025-12-12 08:20:17 +01:00
Anders Schack-Mulligen
7285a8e1c5
Merge pull request #20986 from aschackmull/java/mad-barriers
...
Java: Support for MaD barriers and barrier guards.
2025-12-12 07:53:53 +01:00
Idriss Riouak
8fccc34bd6
Merge pull request #21017 from github/idrissrio/cpp/overlay/xml
2025-12-11 20:02:57 +01:00
Geoffrey White
ee13a49152
Merge branch 'main' into varfps
2025-12-11 18:21:22 +00:00
Geoffrey White
d88bae9ec2
Rust: Narrow the exclusion a little.
2025-12-11 18:07:12 +00:00
Geoffrey White
5db6b92411
Merge pull request #20887 from github/copilot/add-ecb-cbc-test-cases
...
Add ECB and CBC block mode test cases for BrokenCryptoAlgorithm query
2025-12-11 16:22:27 +00:00
Jeroen Ketema
1af1d2d3d5
Merge pull request #21008 from jketema/swift-6.2.2
...
Swift: Update to Swift 6.2.2
2025-12-11 16:57:55 +01:00
idrissrio
926d7f53f2
C/C++ overlay: Update identical files
2025-12-11 16:56:29 +01:00
Anders Schack-Mulligen
4066c0d84a
Java: Fix input/output naming.
2025-12-11 16:24:29 +01:00
Owen Mansel-Chan
87f58fe51a
Convert regex injection barrier to MaD
2025-12-11 16:24:29 +01:00
Owen Mansel-Chan
44295e4c7d
Convert XSS barrier to MaD
2025-12-11 16:24:28 +01:00
Owen Mansel-Chan
7e562f3150
Convert request forgery barrier guard to MaD
2025-12-11 16:24:28 +01:00
Anders Schack-Mulligen
5ab26e481b
Add dummy instantiations for other languages.
2025-12-11 16:24:27 +01:00
Owen Mansel-Chan
f6e3c77145
Convert path injection barrier to MaD
2025-12-11 16:24:27 +01:00
Owen Mansel-Chan
f6e40bd49d
Convert trust boundary violation barrier and barrier guard to MaD
2025-12-11 16:24:26 +01:00
Anders Schack-Mulligen
dcf6041dca
Java: Add empty extensible data.
2025-12-11 16:24:26 +01:00
Anders Schack-Mulligen
8da65ec6d0
Java: Add support for boolean MaD barrier guards.
2025-12-11 16:24:25 +01:00
Anders Schack-Mulligen
d24b0ff596
Java: Basic support for pass-through barrier models.
2025-12-11 16:24:25 +01:00
Simon Friis Vindum
e13bb0f866
Merge pull request #20879 from paldepind/rust/reads-as-taint
...
Rust: Lift content reads as taint steps
2025-12-11 16:05:29 +01:00
Anders Schack-Mulligen
1142f4a54a
C#: Connect shared Guards to SSA BarrierGuards.
2025-12-11 15:41:47 +01:00
idrissrio
84bbe71522
C/C++ overlay: Discard xml entities
2025-12-11 15:41:35 +01:00
Michael Nebel
efb585384b
C#: Add change-note.
2025-12-11 15:27:28 +01:00
Michael Nebel
23981b474b
C#: Update integration test expected output.
2025-12-11 15:23:51 +01:00
Michael Nebel
d31a297a97
C#: Make support for .slnx files.
2025-12-11 15:18:27 +01:00
Michael Nebel
5212e635bc
C#: Add dependency Microsoft.VisualStudio.SolutionPersistence and update lock files.
2025-12-11 15:18:25 +01:00
Simon Friis Vindum
74a77a7c3c
Rust: Fix typo in change note
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2025-12-11 15:04:25 +01:00
Michael Nebel
166ce1b498
C#: Add buildless integration test example including .slnx file.
2025-12-11 14:47:08 +01:00
Michael Nebel
247d764a50
C#: Add autobuilder integration tests with .slnx file.
2025-12-11 14:45:38 +01:00
Tom Hvitved
adac3926a1
C#: Remove PreSsa library
2025-12-11 14:17:12 +01:00
Tom Hvitved
6feded9000
Merge pull request #21014 from hvitved/csharp/file-path-filter-log-levels
...
C#: Adjust log levels in `FilePathFilter.cs`
2025-12-11 14:02:51 +01:00
Idriss Riouak
ad6988ff40
Merge pull request #20995 from github/idrissrio/cpp/overlay/locations
...
C/C++ overlay: Add multiloc declaration to Overlay.qll
2025-12-11 14:00:12 +01:00
Michael Nebel
ce2c149cb3
Merge pull request #20996 from michaelnebel/csharp/updateroslyn
...
C#: Update Roslyn, MsBuild and Binlog extractor dependencies.
2025-12-11 13:50:22 +01:00
Tom Hvitved
a060218109
Add change note
2025-12-11 13:43:52 +01:00
Tom Hvitved
2fd4516c25
C#: Adjust log levels in FilePathFilter.cs
2025-12-11 13:37:56 +01:00
Tom Hvitved
776f6cd56f
C#: Add NHibernate SQL injection tests
2025-12-11 13:30:26 +01:00
Tom Hvitved
fac84ee9f3
C#: Add NHibernate SQL sinks
2025-12-11 13:30:24 +01:00
Michael Nebel
24417cf93d
C#: Add change-note.
2025-12-11 13:15:29 +01:00
Jeroen Ketema
a820c49a0d
Swift: Add change note
2025-12-11 13:07:48 +01:00
Jeroen Ketema
0673c2d82b
Swift: Update resources to Swift 6.2.2
2025-12-11 13:07:47 +01:00
Jeroen Ketema
5650c87c55
Swift: Update to Swift 6.2.2
2025-12-11 13:07:45 +01:00
Jeroen Ketema
004dfbdf24
Merge pull request #21005 from jketema/swift-filter-arg
...
Swift: Update tracer configuration
2025-12-11 12:40:25 +01:00
Michael Nebel
fa76d3555a
C#: Update launch.json to point to .NET 10.
2025-12-11 12:19:24 +01:00
Michael Nebel
298e8f0c58
C#: Bugfix in the implicittostring. Need to handle the ReadOnlySpan params overload for string.Format.
2025-12-11 12:19:22 +01:00
Michael Nebel
ee5c291c9d
C#: Update test expected output.
2025-12-11 12:19:20 +01:00
Michael Nebel
45cd8e94cd
C#: Update test example (field is now a reserved word).
2025-12-11 12:19:17 +01:00
Michael Nebel
d97b9f532a
C#: Update example to use a type that calls an implicit (library) conversion operator.
2025-12-11 12:19:16 +01:00
Michael Nebel
66895a0c62
C#: Update the Roslyn, MsBuild and Binlog extractor dependencies.
2025-12-11 12:19:13 +01:00
idrissrio
3f372d2658
C/C++ overlay: Add overlay support for discarding macro invocations
2025-12-11 12:09:04 +01:00
idrissrio
1286ca6683
C/C++ overlay: Add overlay support for discarding namespaces
2025-12-11 12:09:02 +01:00
idrissrio
c34456e3a0
C/C++ overlay: Add overlay support for discarding user types
2025-12-11 12:09:01 +01:00
idrissrio
4702e208b7
C/C++ overlay: Add overlay support for discarding functions
2025-12-11 12:09:00 +01:00
Michael Nebel
c79cdea690
Merge pull request #20898 from michaelnebel/csharp/dotnet10extractor
...
C#: Use .NET 10 for building the extractor and running tests.
2025-12-11 12:05:35 +01:00
Tom Hvitved
3ab0ade9dc
Merge pull request #21010 from hvitved/rust/type-inference-fix-blowup
...
Rust: Strengthen `isNotInstantiationOf` uses
2025-12-11 12:04:30 +01:00
Michael Nebel
c69bbce176
C#: Add change-note.
2025-12-11 11:34:58 +01:00
Michael Nebel
3bb12f6236
C#: Cleanup dependencies.
2025-12-11 11:34:56 +01:00
Michael Nebel
af6809e93e
C#: Update integration test expected files.
2025-12-11 11:34:55 +01:00
Michael Nebel
2d4127fdb7
C#: Partially update test expected files by search and replace.
2025-12-11 11:34:53 +01:00
Michael Nebel
16bfcc3882
C#: Update language test expected output files to .NET 10.
2025-12-11 11:34:52 +01:00
Michael Nebel
4c3176ef1a
C#: Update integration tests to target and request .NET 10.
2025-12-11 11:34:50 +01:00
Michael Nebel
66aaa62ad9
C#: Manually update the existing stubs to target .NET 10.
2025-12-11 11:34:46 +01:00
Michael Nebel
ff3d2d5b8d
C#: Update stub generator script to target .NET 10.
2025-12-11 11:34:39 +01:00
Michael Nebel
9e395936dc
C#: Update extractor to target .NET 10.
2025-12-11 11:34:38 +01:00
Michael Nebel
682195bd57
C#: Update workflows.
2025-12-11 11:34:36 +01:00
Michael Nebel
cf43c6170a
C#: Update Paket version and dependencies.
2025-12-11 11:34:34 +01:00
Michael Nebel
3c0e3c4336
C#: Remove custom rules_dotnet 0.19.2.
2025-12-11 11:34:33 +01:00
Michael Nebel
aa964362ef
C#: Update rules_dotnet to 0.21.5.
2025-12-11 11:34:28 +01:00
Michael Nebel
577a2e1974
C#: Copy the 0.19.2 custom rules_dotnet.
2025-12-11 11:34:21 +01:00
Simon Friis Vindum
8c39472d73
Rust: Add change note for reads as taint steps
2025-12-11 09:09:12 +01:00
Tom Hvitved
d5a95a8099
Rust: Strengthen isNotInstantiationOf uses
2025-12-10 20:48:21 +01:00
Tom Hvitved
f30a3b3712
Rust: Add type inference blowup test
2025-12-10 20:48:18 +01:00
Geoffrey White
f1d241f810
Rust: Accept test change.
2025-12-10 18:22:59 +00:00
Geoffrey White
6ca90a2d62
Rust: Change note.
2025-12-10 16:56:26 +00:00
Geoffrey White
c160a1f658
Rust: Fix common FPs for rust/unused-variable and rust/unused-value.
2025-12-10 16:56:24 +00:00
Anders Schack-Mulligen
000f2c345e
Merge pull request #21001 from aschackmull/guards/generalise-validationwrapper
...
Guards: Generalise ValidationWrapper to support GuardValue-based BarrierGuards
2025-12-10 15:52:53 +01:00
Simon Friis Vindum
c6d2047827
Rust: Update expected files
2025-12-10 15:05:36 +01:00
Taus
d2c7147480
Python: Add new test
2025-12-10 13:52:13 +00:00
Taus
6af9fd816f
Python: Make space for new test
2025-12-10 13:51:20 +00:00
Simon Friis Vindum
efbc0934c4
Rust: Do not use types to limit lifting of reads to taint steps
2025-12-10 14:35:24 +01:00
Simon Friis Vindum
fe37e3d9be
Rust: Address PR feedback
2025-12-10 14:35:23 +01:00
Simon Friis Vindum
273eb19b88
Rust: Apply suggestions from code review
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2025-12-10 14:35:22 +01:00
Simon Friis Vindum
5ba4e30c20
Rust: Exclude range start and end from field taint steps
2025-12-10 14:35:20 +01:00
Simon Friis Vindum
647bed9e2f
Rust: Add extensible predicate to exclude fields and block fieldless enum types
2025-12-10 14:35:19 +01:00
Simon Friis Vindum
6fcd8d194a
Rust: Refactor flow summary implementation
2025-12-10 14:35:18 +01:00
Simon Friis Vindum
047ea10a9a
Rust: Update tests and expected files
2025-12-10 14:35:17 +01:00
Simon Friis Vindum
0f97e7e29d
Rust: Remov unneeded model
2025-12-10 14:35:16 +01:00
Simon Friis Vindum
8a0e5b5675
Rust: Lift content reads as taint steps
2025-12-10 14:35:14 +01:00
Simon Friis Vindum
cd721b85e9
Merge pull request #20941 from paldepind/rust/invalid-pointer-barriers
...
Rust: Reduce the number of sinks in `DereferenceSink`
2025-12-10 14:22:05 +01:00
Anders Schack-Mulligen
eaa96864f7
Java: Extend test to cover assertion-like barrier guards.
2025-12-10 12:23:52 +01:00
Anders Schack-Mulligen
9cd2247b91
Java: expose support for more general BarrierGuards.
2025-12-10 12:23:52 +01:00
Anders Schack-Mulligen
09058e48aa
Guards: Rename -WithState to Parameterized-.
2025-12-10 12:23:51 +01:00
Anders Schack-Mulligen
ebb989962c
Guards: Generalise ValidationWrapper to support GuardValue-based BarrierGuards.
2025-12-10 12:23:51 +01:00
Simon Friis Vindum
c5a44cf8ff
Rust: Accept changes to expected files
2025-12-10 11:35:32 +01:00
Geoffrey White
506a1ea0b8
Rust: Add test case for rust/access-after-lifetime-ended involving an invalidated reference.
2025-12-10 11:35:31 +01:00
Simon Friis Vindum
ade7815125
Rust: Add change note
2025-12-10 11:35:29 +01:00
Simon Friis Vindum
7d1acbcb87
Rust: Restrict the scope of DereferenceSink to dereferences of raw pointers
2025-12-10 11:35:28 +01:00
Simon Friis Vindum
4a1abc7beb
Merge pull request #21007 from hvitved/rust/update-expected
...
Rust: Update expected test output
2025-12-10 11:19:37 +01:00
Geoffrey White
fa02842d30
Rust: Accept consistency check changes.
2025-12-10 10:16:22 +00:00
Tom Hvitved
30b903604d
Rust: Update expected test output
2025-12-10 11:02:04 +01:00
Jeroen Ketema
3cabcfef75
Swift: Skip -scan-dependencies compiler calls
...
These do not produce any useful data and just crash our frontend.
2025-12-10 10:11:41 +01:00
Jeroen Ketema
e9aa6ddf53
Swift: Strip more unsupported arguments
...
We had customer reports where these occur in practise, although we have not
observed these ourselves in frontend calls.
2025-12-10 10:08:21 +01:00
Geoffrey White
819a12216e
Merge branch 'main' into copilot/add-ecb-cbc-test-cases
2025-12-10 08:56:20 +00:00
Taus
e6e05012c8
Python: Add change note
2025-12-09 22:55:40 +00:00
Taus
ad68a5e4e9
Python: Add modelling for zstd.compression
...
See https://docs.python.org/3/library/compression.zstd.html for
information about this library.
As far as I can tell, the `zstd` library is not vulnerable to things
like ZipSlip, but it _could_ be vulnerable to a decompression bomb
attack, so I extended those models accordingly.
2025-12-09 22:52:16 +00:00
Joe Farebrother
94fcee5340
minor formatting tweak
2025-12-09 14:15:36 +00:00
Joe Farebrother
d0cd4ee959
Add change note
2025-12-09 14:13:38 +00:00
Joe Farebrother
d98e660803
Test fixes + more tests
2025-12-09 14:13:28 +00:00
Joe Farebrother
1d61da51a6
Generate stubs
2025-12-09 14:13:02 +00:00
Joe Farebrother
a594ca9de8
Add tests
2025-12-09 14:12:45 +00:00
Joe Farebrother
41b94e7031
Add spring websocket handler models
2025-12-09 14:12:39 +00:00
Tom Hvitved
fe18e0e414
Merge pull request #20997 from paldepind/rust/fix-expected
...
Rust: Accept changes to expected files
2025-12-09 14:25:36 +01:00
Tom Hvitved
a5f513f178
Merge pull request #20954 from hvitved/rust/stats-more-calls
...
Rust: Include more calls in DB quality metrics
2025-12-09 14:14:07 +01:00
Simon Friis Vindum
53ad3282c3
Rust: Accept changes to expected files
2025-12-09 14:01:31 +01:00
Owen Mansel-Chan
cf19586516
Merge pull request #20993 from github/dependabot/go_modules/go/extractor/extractor-dependencies-955632e86c
...
Bump the extractor-dependencies group in /go/extractor with 2 updates
2025-12-09 09:36:16 +00:00
Anders Schack-Mulligen
139dc0acaf
Merge pull request #20922 from aschackmull/csharp/object-initializer
...
C#: Replace initializer splitting with an ObjectInitMethod.
2025-12-09 10:35:02 +01:00
yoff
5c6d83ed65
Merge pull request #20877 from joefarebrother/python-tornado-websocket
...
Python: Add models for websocket handlers for Tornado
2025-12-09 10:08:59 +01:00
Michael Nebel
8ecae77887
Merge pull request #20991 from github/dependabot/nuget/csharp/ql/integration-tests/posix/standalone_dependencies_no_framework/nuget-335537b6a2
...
Bump the nuget group with 1 update
2025-12-09 10:01:15 +01:00
Tom Hvitved
e054741061
Update expected test output
2025-12-09 09:13:26 +01:00
tesseractjh
789ea8b247
Allow arbitrary suffixes for use cache directives
2025-12-09 08:59:16 +01:00
tesseractjh
012d3b944c
change note
2025-12-09 08:59:16 +01:00
tesseractjh
2e840dcd5f
Add use cache directives
2025-12-09 08:59:16 +01:00
Tom Hvitved
31b184a404
Rust: Exclude deref expressions on raw pointers from call resolution stats
2025-12-09 08:54:51 +01:00
dependabot[bot]
9eb1eb8f0d
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.30.0 to 0.31.0
- [Commits](https://github.com/golang/mod/compare/v0.30.0...v0.31.0 )
Updates `golang.org/x/tools` from 0.39.0 to 0.40.0
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.39.0...v0.40.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/mod
dependency-version: 0.31.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: extractor-dependencies
- dependency-name: golang.org/x/tools
dependency-version: 0.40.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: extractor-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-12-09 03:07:27 +00:00
Owen Mansel-Chan
e7147244e8
Merge pull request #20992 from myvyang/main
...
Change MethodAccess to MethodCall in query example.
2025-12-09 01:22:55 +00:00
Owen Mansel-Chan
d15342db1f
Fix table padding
2025-12-09 01:12:53 +00:00
i
134312173f
MethodAccess has been deprecated, Change MethodAccess to MethodCall in query example.
2025-12-09 08:41:01 +08:00
dependabot[bot]
c8992fc834
Bump the nuget group with 1 update
...
Bumps Newtonsoft.Json from 6.0.4 to 13.0.1
---
updated-dependencies:
- dependency-name: Newtonsoft.Json
dependency-version: 13.0.1
dependency-type: direct:production
dependency-group: nuget
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-12-09 00:33:13 +00:00
github-actions[bot]
2854330759
Post-release preparation for codeql-cli-2.23.8
2025-12-08 15:49:10 +00:00
Paolo Tranquilli
28b6aa8616
Merge pull request #20988 from github/release-prep/2.23.8
...
Release preparation for version 2.23.8
2025-12-08 15:45:10 +01:00
github-actions[bot]
66c51e979e
Release preparation for version 2.23.8
2025-12-08 14:38:23 +00:00
Paolo Tranquilli
b5f705a4f1
Merge pull request #20985 from asgerf/js/overlay-local-optional
...
JS: Use question-mark variant in all overlay annotations
2025-12-08 15:27:23 +01:00
Chris Smowton
359a28e409
Merge pull request #20984 from github/rc/3.20
...
Java: Add change note for Maven compiler flags
2025-12-08 14:24:58 +00:00
Tom Hvitved
0280771c51
Merge pull request #20953 from hvitved/rust/data-flow-call-models
...
Rust: Model more data flow constructs as calls using MaD
2025-12-08 15:22:02 +01:00
Tom Hvitved
57ce2ee749
Address review comments
2025-12-08 13:27:36 +01:00
Asger F
4d1200fd13
Revert changes in synced files
2025-12-08 13:26:19 +01:00
Chris Smowton
ef991e5ba5
Merge pull request #20983 from smowton/smowton/feature/csharp-csrf-aspnetcore
...
C# CSRF query: add support for ASP.NET Core
2025-12-08 12:14:48 +00:00
Asger F
294089fe35
JS: Use question-mark variant in all overlay annotations
2025-12-08 13:13:09 +01:00
Idriss Riouak
877669d1f0
Merge pull request #20981 from github/idrissrio/java/java-maven-sap
...
Java: Add change note for Maven compiler flags
2025-12-08 12:55:50 +01:00
Chris Smowton
79718b6dcb
Change note
2025-12-08 11:54:02 +00:00
Chris Smowton
5bb31afc83
C# CSRF query: add support for ASP.NET Core
2025-12-08 11:51:01 +00:00
idrissrio
a0e7afde8e
Java: Add change note for Maven compiler flags
2025-12-08 12:14:03 +01:00
Simon Friis Vindum
cd6429a39e
Merge pull request #20969 from paldepind/rust/dispath-default-trait
...
Rust: Do not dispatch to all implementations when trait target is accurate
2025-12-08 10:45:55 +01:00
Tom Hvitved
bfa37b8488
Fix typo
2025-12-08 10:17:47 +01:00
Geoffrey White
24852c6664
Merge pull request #20966 from geoffw0/lifetimetest
...
Rust: Fix FPs from rust/access-after-lifetime-ended
2025-12-08 09:03:51 +00:00
Michael Nebel
10c01832b0
Merge pull request #20964 from michaelnebel/csharp/nugetversionsorting
...
C#: Fix NuGet version bug and a .NET10 compatibility issue.
2025-12-08 09:35:53 +01:00
Óscar San José
3230df02d9
Merge pull request #20975 from github/oscarsj/merge-back-rc-3.20
...
Merge back rc/3.20
2025-12-05 21:16:18 +01:00
Óscar San José
bc6133de5c
Merge branch 'main' of https://github.com/github/codeql into oscarsj/merge-back-rc-3.20
2025-12-05 19:31:47 +01:00
Tom Hvitved
9a95acadb5
Merge pull request #20963 from hvitved/rust/call-refactor-follow-up
...
Rust: Remove some predicates
2025-12-05 14:38:47 +01:00
Paolo Tranquilli
2acb02bf67
Merge pull request #20971 from github/redsun82/ripunzip
...
Ripunzip: update to 2.0.4
2025-12-05 14:32:55 +01:00
Taus
1b519384d7
Merge pull request #20739 from github/tausbn/python-remove-top-level-points-to-imports
...
Python: Hide points-to imports in `python.qll`
2025-12-05 14:24:41 +01:00
Geoffrey White
108db75124
Update rust/ql/lib/codeql/rust/security/AccessAfterLifetimeExtensions.qll
...
Co-authored-by: Simon Friis Vindum <paldepind@github.com >
2025-12-05 13:19:38 +00:00
Simon Friis Vindum
f200dba7dd
Rust: Add change note
2025-12-05 14:12:58 +01:00
Simon Friis Vindum
fa4b212020
Rust: Fix grammar
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-12-05 14:03:29 +01:00
Paolo Tranquilli
90aeccab07
Ripunzip: update to 2.0.4
2025-12-05 13:55:33 +01:00
Chris Smowton
86962c6055
Merge pull request #20970 from github/smowton/admin/document-missing-actions-permissions-shortcomings
...
Actions: note imprecision of MissingActionsPermissions.ql
2025-12-05 12:43:49 +00:00
Chris Smowton
02caa098bc
Actions: note imprecision of MissingActionsPermissions.ql
...
Added a note to the query's qhelp to note its imprecision, but also encourage usage of a permissions block regardless as a belt-and-braces measure.
2025-12-05 12:36:07 +00:00
Simon Friis Vindum
5888ed30bd
Rust: Do not dispatch to all implementations when trait target is accurate
2025-12-05 13:01:22 +01:00
Óscar San José
5addb53e0f
Merge pull request #20946 from github/post-release-prep/codeql-cli-2.23.7
...
Post-release preparation for codeql-cli-2.23.7
2025-12-05 12:51:51 +01:00
Tom Hvitved
12a6dcc4ff
Rust: Remove some predicates
2025-12-05 12:50:36 +01:00
Anders Schack-Mulligen
28e9420476
C#: Fix lambda flow.
2025-12-05 10:58:01 +01:00
Paolo Tranquilli
795bfdf02d
Merge pull request #20962 from github/redsun82/dependabot
...
Dependabot: add bazel
2025-12-05 10:51:29 +01:00
Simon Friis Vindum
59ce721f7d
Rust: Add global data flow example
2025-12-05 09:38:22 +01:00
Tom Hvitved
5a5679bd51
Rust: Taint flow through operations using MaD
2025-12-05 09:19:03 +01:00
Tom Hvitved
41916640c3
Rust: Taint flow tests for operations
2025-12-05 09:19:02 +01:00
Tom Hvitved
294c489fd8
Rust: Handle x[y] expressions as *.index(y) calls in data flow
2025-12-05 09:18:59 +01:00
Tom Hvitved
e72c8acb6c
Rust: Add data flow tests for collections
2025-12-05 09:16:57 +01:00
Tom Hvitved
09461e9cb6
Merge pull request #20967 from hvitved/rust/call-refactor-fix
...
Rust: Call refactor follow-up fixes
2025-12-05 09:16:18 +01:00
Tom Hvitved
57bca5ca9b
Rust: Include more calls in DB quality metrics
2025-12-05 09:15:26 +01:00
Simon Friis Vindum
1a19df2044
Merge pull request #20950 from paldepind/rust/ti-raw-pointer
...
Rust: Type inference for raw pointers
2025-12-05 09:06:13 +01:00
Owen Mansel-Chan
6d301f27d0
Merge pull request #20937 from owen-mc/actions/fix/code-injection-privileged-context
...
Actions: fix filtering of code injection results between medium and critical version of query
2025-12-05 07:54:13 +00:00
Joe Farebrother
d70c596c86
Merge pull request #20914 from joefarebrother/python-socketio
...
Python: Add models for socketio
2025-12-04 23:14:58 +00:00
Tom Hvitved
be1d756de4
Rust: Call refactor follow-up fixes
2025-12-04 21:15:28 +01:00
Geoffrey White
4109848927
Rust: Clean up following merge.
2025-12-04 17:55:34 +00:00
Geoffrey White
b7402fef09
Merge remote-tracking branch 'upstream/main' into lifetimetest
2025-12-04 17:33:39 +00:00
Geoffrey White
3cdbef71f1
Rust: Change note.
2025-12-04 17:25:34 +00:00
Geoffrey White
32e9fdfe19
Rust: Fix the false positives.
2025-12-04 17:19:41 +00:00
Owen Mansel-Chan
4a16de2bc8
Pull out logic into separate predicate
2025-12-04 16:50:39 +00:00
Owen Mansel-Chan
fb841ea591
Make predicates containing query logic more self-contained
2025-12-04 16:50:37 +00:00
Owen Mansel-Chan
8bac1dec83
Add change note
2025-12-04 16:50:36 +00:00
Owen Mansel-Chan
f6bdb3a126
Fix filtering of code injection alerts between medium and critical
2025-12-04 16:50:34 +00:00
Owen Mansel-Chan
e2acd1b668
Add test with push and workflow_dispatch triggers
...
This is based on push.yml, and it should still be found by
actions/code-injection/medium, but it isn't.
2025-12-04 16:50:33 +00:00
Tom Hvitved
8b89e15dfa
Merge pull request #20863 from hvitved/rust/call-refactor
...
Rust: Restructure classes representing calls
2025-12-04 17:02:17 +01:00
Simon Friis Vindum
27ddc813af
Rust: Cleanup of raw pointer types based in PR feedback
2025-12-04 16:41:28 +01:00
Owen Mansel-Chan
5c8ab1f6d1
Merge pull request #20956 from owen-mc/java/improve-regex-sanitizer
...
Java: improve regex sanitizer for `java/ssrf`
2025-12-04 15:32:12 +00:00
Geoffrey White
8594c7a29a
Rust: Add test for rust/access-after-lifetime-ended FP involving generic calls.
2025-12-04 15:28:15 +00:00
Michael Nebel
5a33f9fcd8
C#: Update integration test expected output.
2025-12-04 15:58:02 +01:00
Michael Nebel
4112cfc8f1
C#: Add change note.
2025-12-04 15:42:18 +01:00
Michael Nebel
a3e545ddd5
C#: Use NuGetVersion instead of homemade version implementation.
2025-12-04 15:34:28 +01:00
Michael Nebel
1b84f70d1c
C#: Use NuGet version sorting instead of lexicographic directory name sorting for finding newest package version.
2025-12-04 15:34:26 +01:00
Michael Nebel
4274af4f73
C#: Set AllowMissingPrunePackageData=true to true when purposely using non-existing framework targets.
2025-12-04 15:26:15 +01:00
Anders Schack-Mulligen
e4ee7c95c5
C#: Address review comments.
2025-12-04 15:06:20 +01:00
Michael Nebel
cdd8aa49e1
Merge pull request #20933 from michaelnebel/csharp/runtraceraftercompilation
...
C#: Invoke the extractor after the compiler to ensure that source generators have been executed.
2025-12-04 13:41:38 +01:00
Owen Mansel-Chan
a20c8cfd52
Add post-update nodes for implicit field read nodes
2025-12-04 12:00:02 +00:00
Owen Mansel-Chan
dcfa721037
(Refactor) Make lookThroughImplicitFieldRead public
2025-12-04 12:00:00 +00:00
Owen Mansel-Chan
9bf20702c6
Remove identity steps
2025-12-04 11:59:58 +00:00
Tom Hvitved
bc6d38ebb4
Address review comments
2025-12-04 10:38:47 +01:00
Anders Schack-Mulligen
607ad1f886
Merge pull request #20961 from aschackmull/dataflow/flowfrom
...
Dataflow: Add flowFrom predicates to mirror flowTo.
2025-12-04 10:09:29 +01:00
Michael Nebel
e74031bee4
Merge pull request #20936 from michaelnebel/csharp/nocrashdotnetinfo
...
C#: Retry logic for `dotnet --info` when it fails with exit code 143.
2025-12-04 09:13:12 +01:00
Tom Hvitved
38a572dfa0
Rust: Run codegen
2025-12-03 20:47:05 +01:00
Tom Hvitved
a707527022
Address review comments in annotations.py
2025-12-03 20:46:30 +01:00
Geoffrey White
2665d8395a
Merge pull request #20939 from geoffw0/saltmodel
...
Rust: Add heuristic sinks for passwords, initialization vectors etc
2025-12-03 18:01:48 +00:00
Tom Hvitved
ca9d327280
Merge pull request #20915 from hvitved/content-flow-ap-limit
...
Shared: Improvements to content-sensitive model generation
2025-12-03 15:54:57 +01:00
Michael Nebel
a903420122
C#: Add change note.
2025-12-03 15:49:37 +01:00
Michael Nebel
0d08f24a2d
C#: Invoke the extractor after the compiler to ensure that source generators have been executed.
2025-12-03 15:49:35 +01:00
yoff
7fd4755e93
Merge pull request #20919 from yoff/python/header-splitting-experiments
...
Python: detecting header splitting in synthetic app
2025-12-03 15:48:54 +01:00
Tom Hvitved
3ba256a72a
C#/Java: Go back to access path limit 2
2025-12-03 15:05:02 +01:00
Paolo Tranquilli
599d342b33
Dependabot: add bazel
2025-12-03 14:52:02 +01:00
Anders Schack-Mulligen
78e1879c9e
Use more flowTo.
2025-12-03 14:12:08 +01:00
Anders Schack-Mulligen
dc6d3fe7ba
Use flowFrom.
2025-12-03 14:04:18 +01:00
Anders Schack-Mulligen
4191b18410
Dataflow: Add flowFrom predicates to mirror flowTo.
2025-12-03 13:46:44 +01:00
Simon Friis Vindum
299fed5901
Rust: Apply fixes from code review
2025-12-03 13:04:54 +01:00
Simon Friis Vindum
a05d0a906c
Rust: Add change note for raw pointer type inference
2025-12-03 11:56:54 +01:00
Michael Nebel
c1793ab529
C#: Code quality improvement.
2025-12-03 11:48:32 +01:00
Paolo Tranquilli
5784a216a2
Merge pull request #20810 from github/redsun82/update-bazel
...
Bazel: update to 8.4.2
2025-12-03 11:45:38 +01:00
Geoffrey White
3028e5dac0
Rust: CallExpr -> Call.
2025-12-02 17:31:35 +00:00
Owen Mansel-Chan
e710c150de
Add change note
2025-12-02 17:12:05 +00:00
Owen Mansel-Chan
a85d0ea8a3
Make tests pass
2025-12-02 17:08:16 +00:00
Owen Mansel-Chan
8fd8fc07b7
Add failing tests for more regex match methods
2025-12-02 17:06:34 +00:00
github-actions[bot]
085faa2bdb
Post-release preparation for codeql-cli-2.23.7
2025-12-02 16:39:43 +00:00
Óscar San José
dce6d0e222
Merge pull request #20955 from github/release-prep/2.23.7
...
Release preparation for version 2.23.7
2025-12-02 17:06:20 +01:00
Owen Mansel-Chan
566aa8f201
Refactor regex sanitizer
...
Move it to Sanitizers.qll and rename it to be more general (mostly
following Go).
2025-12-02 16:04:39 +00:00
Owen Mansel-Chan
9f2a7f712a
Apply suggestion from @owen-mc
2025-12-02 15:52:01 +00:00
github-actions[bot]
a045b317ac
Release preparation for version 2.23.7
2025-12-02 15:31:27 +00:00
Michael Nebel
3197b50da7
C#: Address review comments.
2025-12-02 16:16:29 +01:00
Simon Friis Vindum
236df0ab65
Rust: Accept changes to expected files
2025-12-02 15:07:54 +01:00
Michael Nebel
1d9b88de8b
C#: Comment back in the .NET 10 tests.
2025-12-02 14:59:45 +01:00
Simon Friis Vindum
ea1b0a8476
Rust: Fix path resolution for raw pointer types
2025-12-02 14:43:52 +01:00
Simon Friis Vindum
c15e12c9ff
Rust: Accept test changes
2025-12-02 14:43:51 +01:00
Simon Friis Vindum
785025f1e3
Rust: Type inference for raw pointers
2025-12-02 14:43:50 +01:00
Michael Nebel
4a6ae216a4
C#: Gracefully handle non-zero exitcodes for dotnet --info.
2025-12-02 14:42:00 +01:00
Owen Mansel-Chan
afb810cdeb
Fix double space in change note
2025-12-02 13:32:58 +00:00
Anders Schack-Mulligen
5d63b6e723
C#: Accept integration test change
2025-12-02 14:03:31 +01:00
Owen Mansel-Chan
e52f819df0
Merge pull request #20949 from owen-mc/go/reinstate-dummy-test
...
Go: Reinstate dummy test so consistency tests are run
2025-12-02 12:55:36 +00:00
Anders Schack-Mulligen
67a2bced0d
C#: Accept CFG dead ends for compilation errors.
2025-12-02 13:49:18 +01:00
Anders Schack-Mulligen
2eb2a50ccd
C#: Fix enclosing DataFlowCallable of ObjectInitMethods with multiple bodies.
2025-12-02 13:49:17 +01:00
Anders Schack-Mulligen
ba7b517a4a
C#: Tweaks from review comments.
2025-12-02 13:49:17 +01:00
Anders Schack-Mulligen
7e4e872430
C#: Accept expected changes.
2025-12-02 13:49:16 +01:00
Anders Schack-Mulligen
541dce4d17
C#: Accept PrintAst index shift.
2025-12-02 13:49:16 +01:00
Anders Schack-Mulligen
02e5f4545a
C#: Fixup test
2025-12-02 13:49:15 +01:00
Anders Schack-Mulligen
85121e88b4
C#: Move and rename module.
2025-12-02 13:49:14 +01:00
Anders Schack-Mulligen
24a575a7a5
C#: Replace initializer splitting with ObjectInitMethod.
2025-12-02 13:49:14 +01:00
Anders Schack-Mulligen
9414cfbd03
C#: Add extractor support for object initializer methods.
2025-12-02 13:49:13 +01:00
Anders Schack-Mulligen
a7066ec758
C#: Add object initializer test.
2025-12-02 13:49:13 +01:00
Simon Friis Vindum
3e7a7d541b
Rust: Include certain types in type inference tests
2025-12-02 13:16:33 +01:00
Simon Friis Vindum
6a2502c97a
Rust: Add type inference tests for raw pointers
2025-12-02 13:14:09 +01:00
Owen Mansel-Chan
e9cb183670
Revert "Delete dummy.ql for now"
...
This reverts commit 38cb6e5a00 .
2025-12-02 11:41:39 +00:00
Owen Mansel-Chan
848677e580
Merge pull request #20917 from owen-mc/go/enable-data-flow-consistency-checks
...
Go: enable data flow consistency checks
2025-12-02 10:52:47 +00:00
Tom Hvitved
7378fbc567
Rust: Restructure classes representing calls
2025-12-02 10:08:04 +01:00
Joe Farebrother
7cf3964e44
Update expectations
2025-12-01 20:27:48 +00:00
Tom Hvitved
666855dbd7
Shared: Improvements to content-sensitive model generation
2025-12-01 21:23:14 +01:00
Tom Hvitved
3e5ea5664c
Rust: Add DB downgrade script
2025-12-01 20:59:31 +01:00
Tom Hvitved
b350a000e3
Rust: Add DB upgrade script
2025-12-01 20:59:30 +01:00
Tom Hvitved
a2782a12f2
Rust: Run codegen
2025-12-01 20:59:28 +01:00
Tom Hvitved
b40353f88f
Rust: Remove CallExprBase and elaborate QL doc
2025-12-01 20:59:26 +01:00
Óscar San José
871d5c9045
Merge pull request #20944 from github/release-prep/2.23.7
...
Release preparation for version 2.23.7
2025-12-01 19:34:17 +01:00
Tom Hvitved
464d2cd5fc
Merge pull request #20891 from hvitved/rust/data-flow-implicit-deref-borrow
...
Rust: Improve handling of implicit derefs/borrows in data flow
2025-12-01 19:03:55 +01:00
github-actions[bot]
19a13467e0
Release preparation for version 2.23.7
2025-12-01 16:07:37 +00:00
Óscar San José
f1aaefc107
Merge pull request #20943 from github/oscarsj/update-codeql-cli-2.23.7
...
Update branch with previous release notes, and fix date format in change note file
2025-12-01 17:05:45 +01:00
Florin Coada
10a53e61cf
Merge pull request #20927 from github/changedocs/2.23.6
...
Add changelog entry for CodeQL CLI version 2.23.6
2025-12-01 15:40:22 +01:00
Óscar San José
1cc5b3444a
Fix date format in change note file
2025-12-01 15:39:37 +01:00
Florin Coada
d41a2d475b
Merge pull request #20927 from github/changedocs/2.23.6
...
Add changelog entry for CodeQL CLI version 2.23.6
2025-12-01 13:55:33 +00:00
Simon Friis Vindum
87d6a60814
Merge pull request #20924 from paldepind/rust/struct-field-tostring
...
Rust: Implement `toString` for struct fields and visibility
2025-12-01 14:52:23 +01:00
Geoffrey White
c64f19f6eb
Rust: Change note.
2025-12-01 12:39:19 +00:00
Geoffrey White
450403883b
Rust: Add test cases for a small number of FPs we see.
2025-12-01 12:39:18 +00:00
Geoffrey White
e834e8665a
Rust: Remove one of the cases that is causing FP results in MRVA.
2025-12-01 12:39:16 +00:00
Geoffrey White
faf69b821b
Rust: Add sinks as barriers to prevent duplicate results.
2025-12-01 12:39:13 +00:00
Geoffrey White
bb50e9fb40
Rust: Add heuristic sinks for rust/hard-coded-cryptographic-value.
2025-12-01 12:39:12 +00:00
Tom Hvitved
6ddb9c784c
Merge pull request #20853 from hvitved/rust/path-resolution-impl-self
...
Rust: Refine `Self` resolution inside `impl` blocks
2025-12-01 12:50:30 +01:00
Tom Hvitved
4bfe1a81dc
Rust: Update expected test output following rebase
2025-12-01 11:38:50 +01:00
Tom Hvitved
d8177274a8
Rust: Improve handling of deref expressions in data flow
2025-12-01 11:34:06 +01:00
Tom Hvitved
4255f7f560
Address review comments
2025-12-01 11:34:03 +01:00
Tom Hvitved
6b003580d1
Rust: Improve handling of implicit derefs/borrows in data flow
2025-12-01 11:34:01 +01:00
Tom Hvitved
9b25a3112d
Rust: Use TaintFlow instead of ValueFlow in tests
2025-12-01 11:33:57 +01:00
Tom Hvitved
d45f8f7236
Rust: Document overlapping function resoltion with test cases
2025-12-01 11:16:15 +01:00
Simon Friis Vindum
1fe7e2ec45
Rust: Change concat to strictconcat
2025-12-01 10:35:43 +01:00
Asger F
b8cff77cab
Merge pull request #20873 from github/shared-xml-discard
...
Share XML discard predicates
2025-12-01 10:06:02 +01:00
Tom Hvitved
34f3892c35
Rust: Extend Self resolution logic to all item kinds
2025-12-01 09:58:27 +01:00
Tom Hvitved
250d15aef2
Rust: More path resolution tests
2025-12-01 09:54:22 +01:00
Tom Hvitved
77df65f2bc
Address review comment
2025-12-01 09:07:47 +01:00
Paolo Tranquilli
50929ef566
Merge pull request #20872 from github/redsun82/update-fmt
...
Swift: update `fmt`
2025-12-01 08:23:48 +01:00
Geoffrey White
8e099480ab
Rust: Add tests for heuristics.
2025-11-28 18:02:41 +00:00
Michael Nebel
1d56f17059
Merge pull request #20935 from michaelnebel/csharp/flakynet10
...
C#: Pin tests and disable .NET 10 tests.
2025-11-28 15:29:27 +01:00
Idriss Riouak
9fd31bf685
Merge pull request #20909 from github/idrissrio/cpp/overlay/overlay.qll
...
C/C++ overlay: Add basic `Overlay.qll` file
2025-11-28 15:09:39 +01:00
Michael Nebel
6c9d15879f
C#: Skip .NET 10 tests for now.
2025-11-28 14:20:06 +01:00
idrissrio
4ad25e4d92
C/C++ overlay: Address review comments
2025-11-28 14:16:10 +01:00
Michael Nebel
af41ca0b1c
C#: Fix syntax error.
2025-11-28 14:13:17 +01:00
Michael Nebel
a69e78185b
C#: Pin tests and mark .NET 10 tests as flaky.
2025-11-28 13:59:30 +01:00
idrissrio
eac06ddd8f
C/C++ overlay: Address review comments
...
Split the discard predicate into two: one for single-location elements and one for multi-location elements.
2025-11-28 11:31:16 +01:00
Owen Mansel-Chan
c43b03ba34
Merge pull request #20931 from owen-mc/go/fix-misc-ql
...
Go/Java: fix miscellaneous trivial issues highlighted by ql-for-ql
2025-11-28 09:42:00 +00:00
Asger F
6257bed089
Sync OverlayXml.qll
2025-11-28 09:23:49 +01:00
Asger F
38a1bb0e29
Use string instead of @file in XML discards
2025-11-28 09:23:27 +01:00
Simon Friis Vindum
86eb949673
Merge pull request #20902 from paldepind/rust/xss-query
...
Rust: Add new query for XSS vulnerabilities
2025-11-28 09:09:14 +01:00
Owen Mansel-Chan
992bd68d4b
Use set literals #2
2025-11-28 03:48:50 +00:00
Owen Mansel-Chan
220fd08428
Improve formatting of tags #2
2025-11-28 03:34:30 +00:00
Owen Mansel-Chan
22b614ac48
Use set literals
2025-11-28 03:34:17 +00:00
Owen Mansel-Chan
62238fcbd7
Fix variable name in qldoc
2025-11-28 03:33:18 +00:00
Owen Mansel-Chan
b8ccaf3b11
Improve formatting of tags metadata
2025-11-28 02:26:58 +00:00
Owen Mansel-Chan
fe1c4e2eee
Make class qldoc start with "A".
2025-11-28 02:26:39 +00:00
Owen Mansel-Chan
0b79087782
Make predicate name start with has instead of get
2025-11-28 02:26:14 +00:00
Owen Mansel-Chan
303deab608
Remove redundant conjunct
2025-11-28 02:12:12 +00:00
Owen Mansel-Chan
fb0b4071a7
Remove redundant import
2025-11-28 02:09:17 +00:00
Owen Mansel-Chan
2058c4a79c
Remove redundant char pred
2025-11-28 02:08:19 +00:00
Owen Mansel-Chan
89546cbc83
Fix qldoc inaccuracies
2025-11-28 01:09:07 +00:00
Owen Mansel-Chan
8debe49563
Correct mistake in qldoc
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-28 01:00:16 +00:00
Owen Mansel-Chan
42c955ea62
Add change note
2025-11-27 23:49:28 +00:00
Owen Mansel-Chan
969b0cf439
Add SSRF sinks for uriVariables arguments of more methods on Spring RestTemplate
2025-11-27 23:44:35 +00:00
Taus
ec336a0334
Python: Fix list bullets in change note
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2025-11-27 17:49:13 +01:00
Taus
bc8ed286ac
Python: Make some more points-to imports private
...
This makes things a bit cleaner.
After this, the only non-private (and non-`LegacyPointsTo`) imports of
`semmle.python.{types,objects,pointsto}.*` are in
`semmle.python.objects.ObjectInternal`, which is reasonable, as that is
the entry point for the entire internal object API.
2025-11-27 16:47:53 +00:00
Taus
0c358acc24
Merge pull request #20908 from akoeplinger/patch-1
...
Fix KeyError: 'name' in python/extractor/imp.py on Python 3.14
2025-11-27 15:29:54 +01:00
Taus
f55ff96674
Python: Bump extractor version and add change note
2025-11-27 13:52:37 +00:00
Asger F
bde983b66d
Update 2025-11-26-response-default-content-type.md
2025-11-27 13:18:56 +01:00
Asger F
7c0243fc6d
Apply suggestions from code review
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-27 13:18:11 +01:00
Asger F
0896be0df6
Merge pull request #20844 from Eliav2/20823-globalVarRef-document-defaultView
...
javascript: Add support for `document.defaultView` in global variable references
2025-11-27 11:50:23 +01:00
Simon Friis Vindum
1e305851ee
Rust: Accept changes to expected files
2025-11-27 11:48:36 +01:00
Simon Friis Vindum
97dad2db17
Rust: Apply suggestions from docs review
...
Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com >
2025-11-27 11:43:41 +01:00
Geoffrey White
7db06ca573
Merge pull request #20876 from szsam/fix-CWE-119-tests
...
C++: Fix CWE-119 memcpy tests
2025-11-27 10:18:23 +00:00
Geoffrey White
2371b65d11
Merge pull request #20925 from geoffw0/barrier-doc
...
Rust: Fix a few comments.
2025-11-27 10:16:40 +00:00
Geoffrey White
803e9fcb88
Merge branch 'main' into fix-CWE-119-tests
2025-11-27 09:57:23 +00:00
Florin Coada
22ca2273cb
Add changelog entry for CodeQL CLI version 2.23.6
2025-11-27 09:51:30 +00:00
Geoffrey White
e8cb6b8f54
Rust: Fix a couple of comments.
2025-11-27 09:24:34 +00:00
Asger F
d8027fb6d6
Merge pull request #20885 from asgerf/js/local-module-exports
...
JS: Split module exports into a local and global variant
2025-11-27 10:05:22 +01:00
Tom Hvitved
f0cac321b2
Merge pull request #20236 from hvitved/rust/type-inference-async-dyn-future
...
Rust: Model `async` return types as `dyn Future`
2025-11-27 09:41:02 +01:00
Simon Friis Vindum
d88cfe98f8
Rust: Implement toString for struct fields and visibility
2025-11-27 09:35:31 +01:00
idrissrio
3d69286382
C/C++ overlay: Address review comments
2025-11-27 09:22:33 +01:00
idrissrio
6c09325838
C/C++ Overlay: Preserve entities that have at least one location in an unchanged file
...
Previously, an entity would be discarded if it had any location in a changed
file. This caused issues for entities with multiple declaration entries, such
as extern variables declared in one file and defined in another.
For example, given:
// a.c (changed) // b.c (unchanged)
extern int x; int x;
The variable `x` should be preserved because it has a location in the
unchanged file b.c, even though it also has a location in the changed file a.c.
2025-11-27 09:22:31 +01:00
idrissrio
39136f3827
C/C++ overlay: Add basic Overlay.qll file
2025-11-27 09:22:29 +01:00
Simon Friis Vindum
8b32679475
Merge pull request #20921 from paldepind/rust/barrier-tweaks
...
Rust: Tweaks and improvements to data flow barriers
2025-11-27 08:56:04 +01:00
Mingjie Shen
25a46a82ba
C++: Use appropriate sizeof in CWE-119 memcpy tests
...
Signed-off-by: Mingjie Shen <shen497@purdue.edu >
2025-11-27 05:15:51 +00:00
Taus
a7458df0a4
Python: Appease the QLDoc checker
2025-11-26 22:13:21 +00:00
Taus
c6ad438bfc
Python: Add change note
2025-11-26 21:58:26 +00:00
Taus
24a29f46be
Python: Fix all metrics-related compilation failures
...
In hindsight, having a `.getMetrics()` method that just returns `this`
is somewhat weird. It's possible that it predates the existence of the
inline cast, however.
2025-11-26 21:28:51 +00:00
Eliav2
69ba764e9d
Merge branch 'main' into 20823-globalVarRef-document-defaultView
2025-11-26 23:26:26 +02:00
Tom Hvitved
a9b58b8db3
Rust: Model async return types as dyn Future
2025-11-26 21:03:03 +01:00
Taus
c75329d7b7
Python: Move metrics-related API to LegacyPointsTo module
...
Gets rid of the `getMetrics` methods on the `Function`, `Class`, and
`Module` classes. To access the metrics, one must first import the
`LegacyPointsTo` module, and then either change the type to
`{Function,Class,Module}Metrics` or cast to the appropriate type.
2025-11-26 17:06:55 +00:00
Taus
cd1619b43e
Python: Fix queries and tests
2025-11-26 17:06:55 +00:00
Taus
b9a5b3b628
Python: Remove points-to from SSA.ql
...
Happily, this was not as deeply entwined as it looked at first glance.
2025-11-26 17:06:55 +00:00
Jeroen Ketema
982950ffc6
Merge pull request #20923 from github/felicity-fix-query-names
...
Remove trailing periods from @name metadata in query files
2025-11-26 17:08:02 +01:00
Joe Farebrother
16018e91a2
Minor test fix
2025-11-26 15:47:56 +00:00
Owen Mansel-Chan
38cb6e5a00
Delete dummy.ql for now
...
This is needed because a PR to another repo is needed to update the
location of the consistency queries, and until that PR is merged we
don't want to runny dummy.ql as a consistency query. After that PR is
merged we should reinstate these files so that consistency tests are
run on this test folder.
2025-11-26 15:03:09 +00:00
Jeroen Ketema
4a8fbba521
Merge branch 'main' into felicity-fix-query-names
2025-11-26 16:01:34 +01:00
Simon Friis Vindum
329df20e55
Rust: Fix typo
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-26 15:48:34 +01:00
Owen Mansel-Chan
6fbed9037f
Be more specific to avoid CP
2025-11-26 14:39:58 +00:00
Owen Mansel-Chan
9481fc9451
Add QLDoc explaining reverseRead
2025-11-26 14:30:23 +00:00
Felicity Chapman
caf6b950ac
Remove trailing periods from @name metadata in query files
...
Fixed 73 .ql query files where the @name metadata contained an ending period.
This ensures consistency with the CodeQL query metadata style guidelines.
2025-11-26 14:29:51 +00:00
Mathias Vorreiter Pedersen
d869b00672
Merge pull request #20899 from MathiasVP/ignore-non-type-template-params
...
C++: Ignore non-type template parameters when matching signatures in MaD
2025-11-26 14:26:45 +00:00
Jeroen Ketema
adc13e374e
Merge pull request #20920 from jketema/feature-incorrect
...
C++: Remove incorrect tests
2025-11-26 15:01:50 +01:00
Simon Friis Vindum
815af34c66
Rust: Add additional barriers to queries
2025-11-26 14:54:11 +01:00
Simon Friis Vindum
081ab499c2
Rust: Add barrier for fieldless enum types
2025-11-26 14:46:58 +01:00
Simon Friis Vindum
6050a0e1a8
Rust: Split boolean from number barriers
2025-11-26 14:45:31 +01:00
yoff
2c835dc33c
python: add changenote
2025-11-26 14:03:15 +01:00
yoff
24e55c0691
python: update MAD expectations
2025-11-26 14:00:22 +01:00
Asger F
818f4815dd
JS: Change note
2025-11-26 13:49:50 +01:00
Asger F
cc7bf4e880
JS: Handle default 'content-type' header in Response() objects
2025-11-26 13:49:48 +01:00
Jeroen Ketema
33c7057066
C++: Remove incorrect tests
...
`__has_feature` is not available in GCC versions before GCC 14.
Our frontend was exposing `__has_feature` when emulating earlier versions of
GCC. This will be fixed with the latest major frontend update though.
2025-11-26 13:42:43 +01:00
yoff
ebe29dd143
python: model urllib.ParseResult
2025-11-26 13:36:05 +01:00
yoff
a878bc61e1
python: add model for urllib.urlparse
2025-11-26 13:32:54 +01:00
yoff
d59f721341
python: add test for header injection
2025-11-26 13:32:54 +01:00
Taus
5b47fcbfa4
Python: Remove dependence on Builtins from attribute module
...
The `Builtins` module is deeply entwined with points-to, so it would be
nice to not have this dependence. Happily, the only thing we used
`Builtin` for was to get the names of known builtins, and for this we
already maintain such a set of names in
`dataflow.new.internal.Builtins`.
2025-11-26 12:30:31 +00:00
Taus
9dc774aaa3
Python: Remove points-to dependency from parts of SSA
...
For whatever reason, the CFG node for exceptions and exception groups
was placed with the points-to code. (Probably because a lot of the
predicates depended on points-to.)
However, as it turned out, two of the SSA modules only depended on
non-points-to properties of these nodes, and so it was fairly
straightforward to remove the imports of `LegacyPointsTo` for those
modules.
In the process, I moved the aforementioned CFG node types into
`Flow.qll`, and changed the classes in the `Exceptions` module to the
`...WithPointsTo` form that we introduced elsewhere.
2025-11-26 12:30:31 +00:00
Taus
e09840426c
Python: Get rid of points-to from Definitions.qll
...
Turns out the `ImportTime` module (despite living in
`semmle.python.types` does not actually depend on points-to, so some of
the `LegacyPointsTo` imports could be replaced or removed.
2025-11-26 12:30:31 +00:00
Taus
7328f26311
Python: Fix reachability-related test failures
2025-11-26 12:30:31 +00:00
Taus
21e74a3f01
Python: Fully remove points-to from Flow.qll
...
Gets rid of a bunch of predicates relating to reachability (which
depended on the modelling of exceptions, which uses points-to), moving
them to `LegacyPointsTo`. In the process, we gained a new class
`BasicBlockWithPointsTo`.
2025-11-26 12:30:31 +00:00
Taus
7176898503
Python: Fix library tests
2025-11-26 12:30:31 +00:00
Taus
b3b87c968b
Python: Fix extractor/experimental tests
2025-11-26 12:30:31 +00:00
Taus
665104e626
Python: Fix Python 3 tests
2025-11-26 12:30:31 +00:00
Taus
85029bd77d
Python: Fix Python 2 tests
2025-11-26 12:30:30 +00:00
Taus
5b63b4957c
Python: Fix query tests
...
Mostly just adding `private import LegacyPointsTo`. Sometimes getting
rid of other imports that are superceded by that module.
2025-11-26 12:30:30 +00:00
Taus
2732a652ab
Python: Fix example snippets
...
One might argue that these should be rewritten entirely to use more
modern APIs, but for now I'll be content with just having them compile
properly.
2025-11-26 12:30:30 +00:00
Taus
0a4ec2ca10
Python: Move some non-points-to methods out of points-to
...
These methods were in `pointsto.Base` but did not actually interact with
the points-to machinery directly, so they were easy to move out.
2025-11-26 12:30:30 +00:00
Taus
f0465f441f
Python: Get rid of some get...Object methods
...
This frees `Class.qll`, `Exprs.qll`, and `Function.qll` from the
clutches of points-to. For the somewhat complicated setup with
`getLiteralObject` (an abstract method), I opted for a slightly ugly but
workable solution of just defining a predicate on `ImmutableLiteral`
that inlines each predicate body, special-cased to the specific instance
to which it applies.
2025-11-26 12:30:30 +00:00
Taus
78c33ab55a
Python: Remove points-to references from python.qll
...
For now, these have just been made into `private` imports. After doing
this, I went through all of the (now not compiling) files and added in
private imports to the modules that they actually depended on.
I also added an explicit import of `LegacyPointsTo` (even though it may
be unnecessary) in cases where the points-to dependency was somewhat
surprising (and one we want to get rid of). This was primarily inside
the various SSA layers.
For modules inside `semmle.python.{types, objects, pointsto}` I did not
bother, as these are fairly clearly related to points-to.
2025-11-26 12:30:30 +00:00
Simon Friis Vindum
1c8cc39a6a
Merge pull request #20906 from paldepind/rust/enum-fieldless
...
Rust: Add predicates for fieldless and unit-only enums
2025-11-26 12:52:28 +01:00
Owen Mansel-Chan
1d0fcd77d8
Add change note
2025-11-26 11:24:04 +00:00
Joe Farebrother
8d313ff85b
qldoc fixes
2025-11-26 11:23:04 +00:00
Joe Farebrother
6207137ef0
Add changenote
2025-11-26 11:21:05 +00:00
Owen Mansel-Chan
eca9ec59c4
Add exclusions to data flow consistency checks
2025-11-26 11:12:44 +00:00
Owen Mansel-Chan
a2e68487ea
Shared: allow exclusions to localFlowIsLocal
2025-11-26 11:00:30 +00:00
Owen Mansel-Chan
916fe69e65
Accept data flow consistency test results
2025-11-26 11:00:25 +00:00
Joe Farebrother
eb7fe71557
Fix namespace instances and update tests
2025-11-26 10:51:16 +00:00
Tom Hvitved
7e5131891c
Rust: Special-case Self::AssocType in path resolution
2025-11-26 11:50:35 +01:00
Asger F
dbf14c190a
Factor XML discard predicates into OverlayXml.qll
2025-11-26 11:48:32 +01:00
Owen Mansel-Chan
7cd04e346e
Move existing consistency query to new place
2025-11-26 10:44:59 +00:00
Owen Mansel-Chan
fba53b58f8
Run data flow consistency tests in CI
2025-11-26 10:44:56 +00:00
Asger F
037f354abf
JS: Update another expected file
2025-11-26 11:42:39 +01:00
Asger F
b33af5b377
JS: Fix typo
2025-11-26 11:40:41 +01:00
Tom Hvitved
0d46dc0461
Rust: More path resolution tests
2025-11-26 11:33:17 +01:00
Asger F
7bd1985407
JS: Add proxy as a route handler name
2025-11-26 11:22:08 +01:00
Asger F
7848369f77
JS: Change note
2025-11-26 11:20:42 +01:00
Asger F
f9033f2abd
JS: Look for special folders in root, even if 'src' exists
2025-11-26 11:16:40 +01:00
Asger F
f0ecf1599c
JS: Add test with file named 'page'
2025-11-26 11:16:12 +01:00
Asger F
e54789d1bd
JS: Recognise route.ts outside api folder
2025-11-26 11:16:11 +01:00
Asger F
f52f5b63e6
JS: Add test with route.ts outside 'api'
2025-11-26 11:16:09 +01:00
Owen Mansel-Chan
0414555e43
Merge pull request #20741 from aegilops/java-kotlin-sensitive-logging-substring-barriers
...
java: Added Java/Kotlin Sensitive Logging barriers (substrings)
2025-11-26 09:55:14 +00:00
Asger F
0245b9d609
Merge pull request #20911 from asgerf/js/next-folders
...
JS: Fix project layout detection for Next.js apps
2025-11-26 09:09:54 +01:00
Simon Friis Vindum
7278bc75ca
Rust: Remove unused function in XSS tests
2025-11-26 08:57:47 +01:00
Owen Mansel-Chan
f0dec21b9b
Merge branch 'main' into java-kotlin-sensitive-logging-substring-barriers
2025-11-25 23:24:58 +00:00
Joe Farebrother
83eadbad60
Add namespace models
2025-11-25 16:56:36 +00:00
Joe Farebrother
85cb3e026c
Merge pull request #20762 from joefarebrother/go-insecure-cookie
...
Go: Promote non-httponly cookie query, and add insecure cookie query
2025-11-25 16:39:45 +00:00
Mathias Vorreiter Pedersen
295dc6971f
Merge branch 'main' into ignore-non-type-template-params
2025-11-25 15:37:25 +00:00
Simon Friis Vindum
7c7663629e
Rust: Fix typo in change note for XSS query
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2025-11-25 16:13:11 +01:00
Asger F
5b4e114955
JS: Add test
2025-11-25 16:04:30 +01:00
Mathias Vorreiter Pedersen
73b6fa69a9
C++: Fix Code Scanning alert.
2025-11-25 15:03:26 +00:00
Mathias Vorreiter Pedersen
0deac833e4
C++: Accept test changes.
2025-11-25 14:59:09 +00:00
Asger F
a91969b7e1
JS: Change note
2025-11-25 15:58:11 +01:00
Mathias Vorreiter Pedersen
05737af165
C++: Only support non-type template parameters in tail position.
2025-11-25 14:55:44 +00:00
Mathias Vorreiter Pedersen
faa55f50e7
C++: Add another test with a template function whose non-type template parameter is in tail position.
2025-11-25 14:55:18 +00:00
Asger F
e95b3590f0
JS: Fix project layout detection for Next.js apps
...
Some parts of the code did not handle case where 'pages' was located at 'app/pages'.
2025-11-25 15:54:45 +01:00
Joe Farebrother
cece73bdbf
Remove references to gorilla
2025-11-25 14:36:16 +00:00
Joe Farebrother
c7b16a043e
Address reviews - update comments, remove unneeded stubs
2025-11-25 14:36:00 +00:00
Joe Farebrother
c6110ed541
Split SecureCookies into query specific files
2025-11-25 14:35:47 +00:00
Joe Farebrother
5b702d963e
Refactor parts of SensitiveCookieNameConfig
2025-11-25 14:35:42 +00:00
Joe Farebrother
03d63dec2e
Address reviews - rename and update doc comments
2025-11-25 14:35:29 +00:00
Joe Farebrother
1bd5005fc1
Fix typos
2025-11-25 14:35:17 +00:00
Joe Farebrother
6282c34396
Update formatting
2025-11-25 14:35:09 +00:00
Joe Farebrother
a25861d8a3
Update integration test
2025-11-25 14:35:02 +00:00
Joe Farebrother
ed483dd5b2
Add change note
2025-11-25 14:34:57 +00:00
Joe Farebrother
d633120f4d
Update integration tests
2025-11-25 14:34:48 +00:00
Joe Farebrother
536e885f18
Remove experimental query
2025-11-25 14:34:41 +00:00
Joe Farebrother
fa30041498
Add qhelp & fix tests
2025-11-25 14:34:28 +00:00
Joe Farebrother
2b1cd846b3
Fixes and doc updates
2025-11-25 14:34:10 +00:00
Joe Farebrother
8d544e5b15
Add tests
2025-11-25 14:33:51 +00:00
Joe Farebrother
5094784a4b
Add modeling for gin
2025-11-25 14:33:43 +00:00
Joe Farebrother
74c424dc4c
Fixes, add secure query
2025-11-25 14:33:33 +00:00
Joe Farebrother
7d76619bea
Implement cookie write concepts and httponly query
2025-11-25 14:33:23 +00:00
Mathias Vorreiter Pedersen
26e5320a80
Merge pull request #20901 from MathiasVP/canonical-content
...
C++: Don't use `Field`s to define `FieldContent`
2025-11-25 13:54:19 +00:00
Simon Friis Vindum
9ae4c14ffb
Rust: Address PR feedback
2025-11-25 14:20:17 +01:00
Jeroen Ketema
861ca7526e
Merge branch 'main' into canonical-content
2025-11-25 14:08:42 +01:00
Mathias Vorreiter Pedersen
2024f32e81
C++: Add an example with missing flow.
2025-11-25 12:36:29 +00:00
Simon Friis Vindum
4f13ae3fc9
Rust: Add qldoc
2025-11-25 13:35:14 +01:00
Simon Friis Vindum
393da4567e
Rust: Add tests for Enum
2025-11-25 13:35:12 +01:00
Simon Friis Vindum
50e8d0ca20
Rust: Add isFieldless and isUnitOnly to Enum
2025-11-25 13:35:11 +01:00
Simon Friis Vindum
b4ae58871a
Rust: Tweak existing isStruct predicates
2025-11-25 13:35:10 +01:00
Mathias Vorreiter Pedersen
47ab307410
C++: Respond to review comments.
2025-11-25 12:06:58 +00:00
Alexander Köplinger
458f8570e8
Fix KeyError: 'name' in python/extractor/imp.py on Python 3.14
...
Follow-up to https://github.com/github/codeql/pull/20630
The fix didn't fully work since when we raise the ImportError in `find_module` we don't pass a named argument into the format string which causes a `KeyError`.
We need to use a format string without named arguments, like Python 3.13 and earlier did.
2025-11-25 12:38:55 +01:00
Geoffrey White
1c2d8bb70e
Merge pull request #20851 from geoffw0/access-invalid-pointer-fp
...
Rust: Improve rust/access-invalid-pointer
2025-11-25 09:49:07 +00:00
Simon Friis Vindum
411d1fa861
Rust: Fix grammar and typos
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-25 09:31:00 +01:00
Simon Friis Vindum
ce25def71e
Rust: Update integration test expected files
2025-11-25 08:23:52 +01:00
Joe Farebrother
b0be8184ac
Add taint test
2025-11-24 16:54:21 +00:00
Geoffrey White
5893dc699d
Rust: Change the majority of variant tests to be on AES not DES, since the focus of these new tests should be the block mode not the encryption algorithm.
2025-11-24 16:29:23 +00:00
Geoffrey White
daead038ab
Merge pull request #20829 from geoffw0/cert-checks
...
Rust: New Query rust/disabled-certificate-check
2025-11-24 15:21:58 +00:00
Mathias Vorreiter Pedersen
eb6b08591d
Update cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-24 15:01:09 +00:00
Mathias Vorreiter Pedersen
2e53370716
Update cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-24 15:01:00 +00:00
Simon Friis Vindum
597c81d659
Rust: Add change note for XSS query
2025-11-24 15:46:27 +01:00
Simon Friis Vindum
9c2858d69b
Rust: Add qhelp for XSS query
2025-11-24 15:46:26 +01:00
Simon Friis Vindum
9e2bf76a7f
Rust: Add XSS sinks for Actix and Warp
2025-11-24 15:46:25 +01:00
Simon Friis Vindum
ae9c753371
Rust: Add XSS query
2025-11-24 15:46:24 +01:00
Simon Friis Vindum
0f4561efc3
Rust: Add XSS examples
2025-11-24 15:46:23 +01:00
Ian Lynagh
555301cec7
Merge pull request #20874 from igfoo/igfoo/overlay
...
C++: Add the beginnings of overlay support
2025-11-24 14:11:09 +00:00
Owen Mansel-Chan
1a59839f3c
Range library recognises long literals now
2025-11-24 14:10:54 +00:00
Owen Mansel-Chan
e37336d550
No need for getUnderlyingExpr to look through casts
2025-11-24 14:10:20 +00:00
Mathias Vorreiter Pedersen
0487e0622a
C++: Accept test changes from tests that use getAQlClass.
2025-11-24 14:04:35 +00:00
Joe Farebrother
dada49f402
Fix qldoc and tests
2025-11-24 13:57:43 +00:00
Tom Hvitved
551e7ada5c
Rust: Refine Self resolution inside impl blocks
2025-11-24 14:53:00 +01:00
Tom Hvitved
17c3ee1745
Rust: More path resolution tests
2025-11-24 14:46:14 +01:00
Mathias Vorreiter Pedersen
6bae58e29c
C++: Accept more test changes.
2025-11-24 12:35:19 +00:00
Mathias Vorreiter Pedersen
ecb80cb4fc
C++: Represent field content using a column that is shared by all template instantiations.
2025-11-24 12:29:49 +00:00
Mathias Vorreiter Pedersen
fd566780a6
Update cpp/ql/lib/semmle/code/cpp/dataflow/ExternalFlow.qll
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-24 12:17:06 +00:00
Tom Hvitved
43111b8eaa
Merge pull request #20716 from hvitved/rust/path-resolution-variable-impl
...
Rust: Path resolution before variable resolution
2025-11-24 13:08:53 +01:00
Mathias Vorreiter Pedersen
98879d0f1a
C++: Accept test changes.
2025-11-24 12:06:38 +00:00
Mathias Vorreiter Pedersen
732e55df11
C++: Ignore template non-type parameters in MaD signature matching.
2025-11-24 12:06:24 +00:00
Tom Hvitved
ac644b257a
Merge pull request #20848 from hvitved/rust/ranked-forex-rename
...
Rust: Use `ToIndex` instead of `FromIndex` in ranked `forex` predicates
2025-11-24 13:05:58 +01:00
Tom Hvitved
c7a0411c55
Merge pull request #20892 from hvitved/rust/builtin-mut-placeholders
...
Rust: Add placeholder declarations for `&mut` and `*mut`
2025-11-24 13:05:15 +01:00
Mathias Vorreiter Pedersen
c9e9322143
C++: Add an example of missing MaD supporrt for non-type template parameters.
2025-11-24 12:02:54 +00:00
Joe Farebrother
a83c70f99d
Add tests
2025-11-24 11:03:16 +00:00
Eliav2
192f254b41
Merge branch 'main' into 20823-globalVarRef-document-defaultView
2025-11-23 22:03:30 +02:00
Tom Hvitved
17e1e1713e
Rust: Add placeholder declarations for &mut and *mut
2025-11-23 20:56:07 +01:00
Tom Hvitved
b16f8c20a9
Update rust/ql/lib/codeql/rust/internal/PathResolution.qll
...
Co-authored-by: Simon Friis Vindum <paldepind@github.com >
2025-11-23 19:05:24 +01:00
Geoffrey White
b62968fa0f
Rust: Spelling.
2025-11-22 09:22:33 +00:00
Geoffrey White
993154ed57
Rust: Avoid duplicating sinks.
2025-11-21 19:34:16 +00:00
Geoffrey White
0ea28b4026
Rust: Test .expected changes.
2025-11-21 18:57:06 +00:00
Geoffrey White
ff8032a4ec
Rust: Fix after merge.
2025-11-21 18:53:57 +00:00
Geoffrey White
eb674d08d6
Rust: Reinstate the original function names model but call it a heuristic now.
2025-11-21 18:46:12 +00:00
Geoffrey White
2ce4c47646
Rust: More sinks from the MRVA-1000.
2025-11-21 18:43:35 +00:00
Geoffrey White
80615056c0
Merge remote-tracking branch 'upstream/main' into cert-checks
2025-11-21 18:40:40 +00:00
copilot-swe-agent[bot]
9b65a33b4a
Add ECB and CBC block mode test cases
...
Co-authored-by: geoffw0 <40627776+geoffw0@users.noreply.github.com >
2025-11-21 18:32:39 +00:00
Geoffrey White
988aca1f85
Rust: Correct QLDoc comment.
2025-11-21 18:13:08 +00:00
copilot-swe-agent[bot]
2c22f94852
Initial plan
2025-11-21 18:10:43 +00:00
Geoffrey White
03fc4cb0aa
Merge remote-tracking branch 'upstream/main' into access-invalid-pointer-fp
2025-11-21 17:39:56 +00:00
Geoffrey White
9db1722060
Rust: Accept consistency check changes.
2025-11-21 17:35:34 +00:00
Geoffrey White
e01c871b70
Rust: Accept changes to the dataflow/sources/file test.
2025-11-21 17:12:23 +00:00
Geoffrey White
3ad014b2f9
Rust: Additional sinks found in MRVA-1000.
2025-11-21 16:33:59 +00:00
Geoffrey White
ace7a77fd6
Rust: Switch to MaD models.
2025-11-21 16:27:52 +00:00
Geoffrey White
785754ec65
Rust: Switch the query to taint flow, since some taint summaries are relevant now.
2025-11-21 15:02:29 +00:00
Geoffrey White
89a9c46547
Rust: Second change note.
2025-11-21 15:02:27 +00:00
Geoffrey White
aca7877be2
Rust: Add some missing path / file metadata models.
2025-11-21 15:02:25 +00:00
Geoffrey White
8145264b77
Rust: Add threat model sources as additional sources for the query.
2025-11-21 14:40:11 +00:00
Geoffrey White
2da0814f65
Rust: Add test case involving taint.
2025-11-21 14:39:15 +00:00
Anders Schack-Mulligen
b1ed72d760
Merge pull request #20886 from aschackmull/java/rangeanalysis-longliterals
...
Java: Recognize int-sized long literals.
2025-11-21 13:35:14 +01:00
Owen Mansel-Chan
d2fc6a7b5b
Merge branch 'main' into java-kotlin-sensitive-logging-substring-barriers
2025-11-21 12:20:04 +00:00
Asger F
51e1bda608
JS: Move isTypeOnly() check into a direct check, instead of an override
2025-11-21 13:10:32 +01:00
Anders Schack-Mulligen
298e4cfcc5
Java: Recognize int-sized long literals.
2025-11-21 12:53:39 +01:00
Asger F
9c4f85f15b
JS: Split getSourceNode into getDirectSourceNode and getReExportedSourceNode
2025-11-21 12:42:30 +01:00
Asger F
94566e5e1e
JS: Remove unnecessary override in OriginalExportDeclaration
2025-11-21 12:42:10 +01:00
Asger F
3a393ecd54
Fixup! qldoc for reExportsAs
2025-11-21 12:41:34 +01:00
Michael Nebel
60826bd18a
Merge pull request #20837 from michaelnebel/csharp/dotnet10
...
C#: Improve the logic for downloading .NET and setting environment variables.
2025-11-21 12:41:08 +01:00
Michael Nebel
638c98bba3
Merge pull request #20832 from michaelnebel/csharp/dependencycaching
...
C#: Add extractor option for the dependency directory in BMN.
2025-11-21 12:38:28 +01:00
Asger F
78c8ab11f2
JS: Split exportsAs into exportsDirectlyAs and reExportsAs
2025-11-21 12:31:34 +01:00
Asger F
74d725ef21
JS: Remove unnecessary override in OriginalExportDeclaration
2025-11-21 12:31:09 +01:00
Ian Lynagh
6c7370ea95
C++: Add up/downgrade scripts
2025-11-21 11:30:58 +00:00
Ian Lynagh
c2f96b94e3
C++: Update stats
2025-11-21 11:30:40 +00:00
Ian Lynagh
d5399300e9
C++: Add databaseMetadata and overlayChangedFiles tables to dbscheme
2025-11-21 11:30:40 +00:00
Anders Schack-Mulligen
8d72040e8f
Merge pull request #20772 from aschackmull/java/ssa-deprecate
...
Java: Add deprecation annotations in SSA
2025-11-21 12:30:31 +01:00
Asger F
ce9986c449
JS: Change signature of isShadowedFromBulkExport
2025-11-21 12:30:31 +01:00
Owen Mansel-Chan
ec381e4ec5
Use range analysis and improve tests
2025-11-21 10:31:50 +00:00
Michael Nebel
5c454d23e8
C#: Fix typo.
2025-11-21 10:39:59 +01:00
Michael Nebel
138441b662
C#: Address review comments.
2025-11-21 10:39:57 +01:00
Michael Nebel
90dbb7a8eb
C#: Add change note.
2025-11-21 10:39:56 +01:00
Michael Nebel
2700843a9c
C#: Add an integration test for setting the dependency directory in BMN.
2025-11-21 10:39:54 +01:00
Michael Nebel
1256ccf2eb
C#: Add extractor option for buildless dependency directory.
2025-11-21 10:39:52 +01:00
Michael Nebel
e76e7ab26a
C#: Read from dependency directory from extractor option.
2025-11-21 10:39:51 +01:00
Anders Schack-Mulligen
30d68d8906
Java: Add missing deprecated annotations.
2025-11-21 10:14:13 +01:00
aegilops
ce136684e6
Fixed formatting
2025-11-20 17:39:32 +00:00
aegilops
e904520779
Fixed formatting
2025-11-20 17:34:42 +00:00
aegilops
29a5b27b13
Removed bounds checking and only using literals - bounded() predicate did not work
2025-11-20 17:31:56 +00:00
Paolo Tranquilli
794b328802
Bazel: remove unneeded file from registry
2025-11-20 17:07:09 +01:00
Paolo Tranquilli
195a7234d3
Merge branch 'main' into redsun82/update-fmt
2025-11-20 17:06:24 +01:00
Tom Hvitved
132f02c51b
Update rust/ql/lib/codeql/rust/internal/PathResolution.qll
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-20 14:34:02 +01:00
Eliav2
6df789d114
Merge branch 'main' into 20823-globalVarRef-document-defaultView
2025-11-20 15:18:15 +02:00
eliav
91451b73ef
javascript: Update expected results for global variable references
2025-11-20 15:15:06 +02:00
Mathias Vorreiter Pedersen
14f9997eb3
Merge pull request #20862 from MathiasVP/union-content-field-content-common-base-class
...
C++: Create a common base class for 'FieldContent' and 'UnionContent'
2025-11-20 13:14:29 +00:00
Paul Hodgkinson
801cd72965
Merge branch 'main' into java-kotlin-sensitive-logging-substring-barriers
2025-11-20 12:24:22 +00:00
aegilops
1e67907516
Merge commit
2025-11-20 12:22:39 +00:00
aegilops
62ee6d3a33
Made changes requested by reviewers - bounded() for range checking, style and better comments
2025-11-20 11:46:42 +00:00
Paolo Tranquilli
240c637e7a
Merge pull request #20868 from github/redsun82/java-doc
...
Java: add missing QLDoc
2025-11-20 12:08:16 +01:00
Owen Mansel-Chan
05085a8e82
Merge pull request #20666 from owen-mc/go/promote-weak-crypto-algorithm
...
Go: promote `go/weak-crypto-algorithm`
2025-11-20 11:03:05 +00:00
Joe Farebrother
9c3f4e2bfb
Add changenote
2025-11-20 10:59:05 +00:00
Tom Hvitved
0f40b3ccb8
Merge pull request #20842 from hvitved/rust/path-resolution-extern-crate-visibility
...
Rust: Handle `pub extern crate` in path resolution
2025-11-20 11:59:05 +01:00
Joe Farebrother
cdc44c3267
Model tornado websockets
2025-11-20 10:49:30 +00:00
Joe Farebrother
ba06990290
Add socketio models
2025-11-20 10:47:41 +00:00
Tom Hvitved
4d4a677da0
Merge pull request #20869 from hvitved/rust/dataflow-ast
...
Rust: Base `DataFlow::Node` on AST instead of CFG
2025-11-20 11:34:40 +01:00
Asger F
613895e0c0
Merge pull request #20424 from asgerf/js/overlay-manual-v4
...
JS: Add overlay annotations
2025-11-20 11:10:46 +01:00
Tom Hvitved
d4fdf956a0
Address review comments
2025-11-20 11:03:53 +01:00
Paolo Tranquilli
b54abc7a6d
C++: move -DFMT_UNICODE into a module patch
2025-11-20 10:47:54 +01:00
eliav
08dfb95155
javascript: Add change note for document.defaultView aliasing window
...
Introduced a new change note detailing that `DataFlow::globalVarRef` now recognizes `document.defaultView` as an alias of `window`, enhancing the modeling of data flows involving `history` in queries.
2025-11-20 00:17:14 +02:00
Mingjie Shen
b293dfe3a6
C++: Fix CWE-119 memcpy tests
...
sizeof(pointer) only gives the pointer size, not the buffer
size, so use explicit 10/20 lengths in tests.cpp and update
OverflowBuffer.expected to accept the resulting memcpy diagnostics.
Signed-off-by: Mingjie Shen <shen497@purdue.edu >
2025-11-19 22:06:06 +00:00
Tom Hvitved
e4853ab060
Add change note
2025-11-19 19:37:41 +01:00
Tom Hvitved
d2bb53a81e
Rust: Run codegen
2025-11-19 19:37:40 +01:00
Tom Hvitved
489fff9572
Rust: Base DataFlow::Node on AST instead of CFG
2025-11-19 19:37:39 +01:00
Ian Lynagh
42f0ce74ca
C++: Enable overlay compilation
2025-11-19 17:34:06 +00:00
Mathias Vorreiter Pedersen
6c4def13b4
C++: Add change note.
2025-11-19 17:24:30 +00:00
Mathias Vorreiter Pedersen
4c09e554fc
Merge branch 'main' into union-content-field-content-common-base-class
2025-11-19 17:17:45 +00:00
Jeroen Ketema
0c43f2c4f0
Merge pull request #20870 from jketema/exp-arg-fix
...
C++: `getExpandedArgument` fixes
2025-11-19 17:10:56 +01:00
Owen Mansel-Chan
a70d74220f
Add test for good password hashing
2025-11-19 14:36:26 +00:00
Owen Mansel-Chan
f562b3d26e
Make line differences in test comments relative
2025-11-19 14:36:26 +00:00
Owen Mansel-Chan
349e8ca589
Remove unnecessary import
2025-11-19 14:36:26 +00:00
Owen Mansel-Chan
adbc1efe59
Fix diff-informed predicates
2025-11-19 14:36:26 +00:00
Owen Mansel-Chan
7d7af193dc
Fix small mistake in Ruby query help
2025-11-19 14:36:26 +00:00
Owen Mansel-Chan
8d7b2757bf
Add query help examples
2025-11-19 14:36:26 +00:00
Owen Mansel-Chan
69ecdcb4cd
Fix capitalization of class names
2025-11-19 14:36:26 +00:00
Owen Mansel-Chan
970b5d7496
Fix query suite integration tests
2025-11-19 14:36:26 +00:00
Owen Mansel-Chan
2cfafe53ca
Fix failing ruby crypto test that lists all algorithms
2025-11-19 14:36:26 +00:00
Owen Mansel-Chan
d2033ca1d5
Add change note
2025-11-19 14:36:26 +00:00
Owen Mansel-Chan
52d7e2dd18
Add query for hashing sensitive data with weak hashing algorithm
2025-11-19 14:36:26 +00:00
Owen Mansel-Chan
713e19f6f1
Make non-path query for encryption only
2025-11-19 14:36:26 +00:00
Owen Mansel-Chan
f34a625ac2
Model cryptographic operations
2025-11-19 14:36:26 +00:00
Owen Mansel-Chan
fac5296efc
Avoid duplicate results using in-barriers
2025-11-19 14:36:26 +00:00
Owen Mansel-Chan
34b2e3e2bf
Copy the structure of the Javascript query
2025-11-19 14:36:26 +00:00
Owen Mansel-Chan
5c403d374e
Move crypto qll files from query pack to library pack
2025-11-19 14:36:26 +00:00
Owen Mansel-Chan
92a3bccfd6
Align metadata with related queries
2025-11-19 14:36:26 +00:00
Owen Mansel-Chan
188b25f11f
Remove experimental tag from query metadata
2025-11-19 14:36:26 +00:00
Owen Mansel-Chan
a71bb4ba9a
Convert test to inline expectations
2025-11-19 14:36:26 +00:00
Owen Mansel-Chan
2c20d3ffeb
Move weak crypto algorithm query out of experimental
2025-11-19 14:36:26 +00:00
Paolo Tranquilli
83b3711973
Swift: update fmt
2025-11-19 14:32:37 +01:00
Simon Friis Vindum
4d9ab7b573
Merge pull request #20871 from paldepind/rust/string-literal
...
Rust: Handle string literals with line breaks
2025-11-19 14:05:43 +01:00
Asger F
efa438a352
JS: Move identityFunctionStep back into CachedSteps module
2025-11-19 13:47:30 +01:00
Asger F
8fef60464e
JS: Remove out-commented code
2025-11-19 13:46:10 +01:00
Simon Friis Vindum
0e539dbca5
Rust: Handle string literals with line breaks
2025-11-19 13:39:48 +01:00
Simon Friis Vindum
481f627ae0
Rust: Add string literal test
2025-11-19 13:37:23 +01:00
Michael Nebel
5cdfb3c0a9
C#: Address review comments.
2025-11-19 12:58:59 +01:00
Jeroen Ketema
fe3f90e041
C++: Make getExpandedArgument more robust
...
This make the predicate give back sensible results on (upgraded) databases
where we do not have expanded arguments, and avoid having to write case
distinctions in places where we would want to use `getExpandedArgument`.
2025-11-19 12:49:54 +01:00
Jeroen Ketema
e235e0473a
C++: Fix getAnExpandedArgument
...
The fix was accidentially lost when rebasing the branch that introduced this
predicate.
2025-11-19 12:49:02 +01:00
Paolo Tranquilli
b3c09389c8
Java: add missing QLDoc
...
The check for QLDoc comments was unfortunately broken for some time, so
we missed this.
2025-11-19 11:59:25 +01:00
Michael Nebel
edabbfc12f
C#: Add change note.
2025-11-19 11:29:25 +01:00
Michael Nebel
34de2f5318
C#: Update linux integration tests (as we have added CLI preferred language as english).
2025-11-19 11:17:56 +01:00
Michael Nebel
fba496f911
C#: Add proper .NET environment for dotnet info and list-sdks and streamline the minimal dotnet environment.
2025-11-19 11:17:54 +01:00
Michael Nebel
0daee6fbf2
C#: Specifically download .NET for Arm architecture.
2025-11-19 11:17:52 +01:00
Michael Nebel
8df57d81a0
C#: Add basic buildless test for .NET 10.
2025-11-19 11:17:51 +01:00
Michael Nebel
ed92352faf
C#: Remove the linux specific .NET 10 RC 2 test.
2025-11-19 11:17:49 +01:00
Michael Nebel
d7545f21cb
C#: Enable tests for all platforms and use .NET 10 instead of .NET 10 RC 2.
2025-11-19 11:17:48 +01:00
Michael Nebel
7d746d4e3f
C#: Move .NET 10 RC2 basic integration test all platforms folder.
2025-11-19 11:17:46 +01:00
Mathias Vorreiter Pedersen
9bfe847fda
C++: Fix awful joins on bochs:
...
```
Evaluated relational algebra for predicate DataFlowPrivate::storeStepImpl/4#b2c79f9a@13be12rc with tuple counts:
9 ~0% {3} r1 = JOIN `FlowSummaryImpl::Private::Steps::summaryStoreStep/3#5c2d4899` WITH DataFlowUtil::TFlowSummaryNode#40da8361 ON FIRST 1 OUTPUT Lhs.2, Lhs.1, Rhs.1
9 ~0% {4} | JOIN WITH DataFlowUtil::TFlowSummaryNode#40da8361 ON FIRST 1 OUTPUT Lhs.2, Lhs.1, Rhs.1, _
9 ~12% {4} | REWRITE WITH Out.3 := true
1853420 ~0% {3} r2 = SCAN `DataFlowPrivate::nodeHasInstruction/3#f469bb06` OUTPUT In.1, In.0, In.2
100282 ~0% {3} | JOIN WITH `Instruction::StoreInstruction.getDestinationAddressOperand/0#dispred#596a4aba` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
127910 ~0% {6} | JOIN WITH `DataFlowPrivate::numberOfLoadsFromOperand/4#7e555666_1023#join_rhs` ON FIRST 1 OUTPUT _, Lhs.1, Rhs.1, Rhs.3, Lhs.2, Rhs.2
127910 ~0% {4} | REWRITE WITH Tmp.0 := 1, Out.0 := (Tmp.0 + In.4 + In.5) KEEPING 4
4178182721 ~1% {4} | JOIN WITH `DataFlowUtil::FieldContent.getIndirectionIndex/0#dispred#cc69866f_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3
4290552803 ~0% {5} | JOIN WITH `DataFlowUtil::FieldContent.getAField/0#dispred#ba1c91e5` ON FIRST 1 OUTPUT Lhs.2, Lhs.1, Lhs.3, Lhs.0, Rhs.1
3033745816 ~5% {7} | JOIN WITH DataFlowUtil::PostFieldUpdateNode#b86f3a84_1023#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Rhs.2, Rhs.3
3033745816 ~3% {9} | JOIN WITH DataFlowUtil::TPostUpdateNodeImpl#f5e76b7a_21#join_rhs ON FIRST 1 OUTPUT Lhs.1, Lhs.2, Lhs.3, Lhs.4, Lhs.0, Lhs.5, Lhs.6, Rhs.1, _
{8} | REWRITE WITH Tmp.8 := 1, TEST InOut.7 = Tmp.8 KEEPING 8
1516872908 ~0% {7} | SCAN OUTPUT In.4, In.5, In.6, In.0, In.1, In.2, In.3
2409090286 ~1% {6} | JOIN WITH DataFlowUtil::PostFieldUpdateNode#b86f3a84_0231#join_rhs ON FIRST 3 OUTPUT Rhs.3, Lhs.6, Lhs.3, Lhs.4, Lhs.5, Lhs.0
66016 ~45% {4} | JOIN WITH `DataFlowUtil::FieldAddress.getField/0#dispred#bdd01c1a` ON FIRST 2 OUTPUT Lhs.2, Lhs.4, Lhs.5, Lhs.3
66025 ~45% {4} r3 = r1 UNION r2
return r3
```
2025-11-19 10:08:09 +00:00
Paolo Tranquilli
e850a8a46c
Merge pull request #20861 from github/redsun82/ripunzip
...
Ripunzip: use releases from github
2025-11-19 11:03:35 +01:00
Paolo Tranquilli
87b9afce97
Merge branch 'main' into redsun82/ripunzip
2025-11-19 10:33:39 +01:00
Tom Hvitved
3d49eff4a5
Rust: Add integration test for pub extern crate resolution
2025-11-19 09:38:49 +01:00
Tom Hvitved
8acfc7f752
Rust: Handle pub extern crate in path resolution
2025-11-19 09:38:48 +01:00
Tom Hvitved
ec3b2c6a8d
Rust: Path resolution before variable resolution
2025-11-19 09:06:41 +01:00
Paolo Tranquilli
3be8591370
Ripunzip: fix windows os check, add comments
2025-11-19 08:56:06 +01:00
Tom Hvitved
880f7b0f18
Rust: More path resolution and variable tests
2025-11-19 08:55:43 +01:00
Paolo Tranquilli
69ee9cdb9f
Ripunzip: fix mac os and windows URLs
2025-11-19 08:12:07 +01:00
Paolo Tranquilli
f1afe5cd9d
Bazel: format
2025-11-19 08:06:28 +01:00
Paolo Tranquilli
702d1bbbea
Ripunzip: fix mac os string
2025-11-19 08:05:17 +01:00
Mathias Vorreiter Pedersen
73e72f5273
Merge pull request #20864 from MathiasVP/better-sizeof-api
...
C++: Lift `getTypeOperand` to a superclass
2025-11-18 23:53:26 +00:00
Mathias Vorreiter Pedersen
4279a970fa
C++: Remove unnecessary cast.
2025-11-18 20:03:24 +00:00
Mathias Vorreiter Pedersen
a27ac9d59d
C++: Updated expected after Copilot change.
2025-11-18 20:03:10 +00:00
Mathias Vorreiter Pedersen
6b136e3a53
Update cpp/ql/test/library-tests/types/sizeof/sizeof.ql
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-18 20:00:32 +00:00
Tom Hvitved
68552f9725
Merge pull request #20845 from hvitved/rust/cache-infer-certain-type
...
Rust: Cache `inferCertainType`
2025-11-18 20:59:38 +01:00
Mathias Vorreiter Pedersen
d4a8dbb5f3
C++: Slightly modify a test so that we can see the effect of this change.
2025-11-18 19:52:30 +00:00
Mathias Vorreiter Pedersen
a5601ce734
C++: Lift 'getTypeOperand' to the superclass.
2025-11-18 19:52:05 +00:00
Mathias Vorreiter Pedersen
7f0fcb0c46
C++: Create a common base class for 'NonUnionContent' and 'UnionContent' called 'FieldContent'.
2025-11-18 18:53:37 +00:00
Mathias Vorreiter Pedersen
7527d88762
C++: Get rid of abstract'ness from these public predicates. We are not supposed to have abstract public stuff. Oops ...
2025-11-18 18:52:20 +00:00
Mathias Vorreiter Pedersen
2af6db6320
C++: Rename 'FieldContent' to 'NonUnionContent'.
2025-11-18 18:51:33 +00:00
Paolo Tranquilli
ddee385f37
Ripunzip: use releases from github
...
This uses the ripunzip releases from github instead of building them
ourselves.
2025-11-18 17:23:59 +01:00
Paolo Tranquilli
f4a6ba9e50
Merge pull request #20857 from github/post-release-prep/codeql-cli-2.23.6
...
Post-release preparation for codeql-cli-2.23.6
2025-11-18 15:14:39 +01:00
Tom Hvitved
71e84439d7
Merge pull request #20830 from hvitved/rust/path-resolution-slice-array-builtin
...
Rust: Model builtin types in path resolution
2025-11-18 14:42:59 +01:00
Tom Hvitved
ec15085c34
Address review comments
2025-11-18 13:44:25 +01:00
Paolo Tranquilli
773b6c04a1
Merge branch 'main' into post-release-prep/codeql-cli-2.23.6
2025-11-18 13:44:21 +01:00
Paolo Tranquilli
ebf04d308d
Merge pull request #20859 from github/redsun82/ripunzip
...
Ripunzip: build on older ubuntu
2025-11-18 13:43:43 +01:00
Paolo Tranquilli
aaccca3e4e
Merge pull request #20860 from github/update-ripunzip
...
Update ripunzip binaries
2025-11-18 13:37:30 +01:00
github-actions[bot]
f3742008de
Update ripunzip binaries to version v2.0.3
2025-11-18 12:35:31 +00:00
Anders Schack-Mulligen
fe7be22478
Merge pull request #20761 from aschackmull/java/ssa-shared
...
Java: Replace SSA wrapper classes with shared implementation.
2025-11-18 13:31:50 +01:00
Asger F
a0965f33e3
JS: Also discard JSON, YAML, and XML
2025-11-18 13:29:00 +01:00
Paolo Tranquilli
cc9828c23e
Ripunzip: build on older ubuntu
2025-11-18 13:20:07 +01:00
Paolo Tranquilli
48ee9dd149
Merge branch 'main' into post-release-prep/codeql-cli-2.23.6
2025-11-18 12:18:09 +01:00
Paolo Tranquilli
76dc4c4023
Merge branch 'codeql-cli-2.23.6' into post-release-prep/codeql-cli-2.23.6
2025-11-18 12:07:33 +01:00
Paolo Tranquilli
b31d649647
Merge pull request #20858 from github/redsun82/2.23.6
...
Changedocs 2.23.5
2025-11-18 12:00:16 +01:00
Jon Janego
1ebc16e2d3
Merge pull request #20855 from github/changedocs-2.23.5
...
Changedocs 2.23.5
(cherry picked from commit f27271d216 )
2025-11-18 11:53:11 +01:00
Michael Nebel
958d209a81
Merge pull request #20849 from michaelnebel/csharp/addcompilationerrorstodebuglogbmn
...
C#: Add compilation errors to the debug log in BMN.
2025-11-18 11:20:27 +01:00
github-actions[bot]
5ee45af3aa
Post-release preparation for codeql-cli-2.23.6
2025-11-18 09:53:12 +00:00
Geoffrey White
9ab7f87603
Merge pull request #20776 from geoffw0/rustexamples
...
Rust: Add example queries
2025-11-18 09:34:48 +00:00
Paolo Tranquilli
117168d25b
Merge pull request #20852 from github/release-prep/2.23.6
...
Release preparation for version 2.23.6
2025-11-18 10:08:53 +01:00
Paolo Tranquilli
4c1f2b840e
C#: change capitalization
2025-11-18 10:06:19 +01:00
Paolo Tranquilli
1c81c4d4c9
C#: make some tweaks to change logs
2025-11-18 10:01:36 +01:00
Mathias Vorreiter Pedersen
b90d0fd44c
Merge pull request #20854 from MathiasVP/no-magic-get-param
...
C++: Add `nomagic` to `Function::getParameter`
2025-11-18 00:13:05 +00:00
Jon Janego
f27271d216
Merge pull request #20855 from github/changedocs-2.23.5
...
Changedocs 2.23.5
2025-11-17 14:39:35 -06:00
Jon Janego
d685e666b4
missing space
2025-11-17 14:32:04 -06:00
Jon Janego
3431c121d7
adding in 2.23.1 changes so they stay the same
2025-11-17 14:30:45 -06:00
Jon Janego
63390be185
Changedocs for 2.23.5
2025-11-17 14:24:35 -06:00
Mathias Vorreiter Pedersen
47ac4dd1dc
C++: Add 'nomagic' to 'getParameter'.
2025-11-17 19:21:37 +00:00
github-actions[bot]
18fa6799ce
Release preparation for version 2.23.6
2025-11-17 16:38:07 +00:00
Geoffrey White
81096131b6
Rust: Correct + clarify qldoc.
2025-11-17 15:27:49 +00:00
Geoffrey White
7c8e44db8e
Rust: Change note.
2025-11-17 15:09:57 +00:00
Geoffrey White
725899389b
Rust: Clean up the query slightly.
2025-11-17 15:08:53 +00:00
Geoffrey White
41a6bf079d
Rust: Add barrier for null pointer checks to the query.
2025-11-17 15:00:22 +00:00
Geoffrey White
d804229158
Rust: Add missing model.
2025-11-17 14:41:14 +00:00
Geoffrey White
6c3566ab52
Rust: It turns out we need test cases for immutable pointers as well.
2025-11-17 14:32:57 +00:00
Paolo Tranquilli
07c80b4685
Merge pull request #20850 from github/redsun82/fix-change-notes
...
C#: add missing `*` to change note
2025-11-17 15:06:42 +01:00
Paolo Tranquilli
12f1bd8ffd
C#: add missing * to change note
2025-11-17 15:00:30 +01:00
Michael Nebel
9f69ff22d3
C#: Add change-note.
2025-11-17 14:57:16 +01:00
Michael Nebel
f1b12203f6
C#: Add compilation errors to the debug log in BMN.
2025-11-17 14:57:14 +01:00
Jeroen Ketema
1671805598
Merge pull request #20831 from jketema/expanded
...
C++: Extract the expanded compiler arguments
2025-11-17 13:58:24 +01:00
Tom Hvitved
bf0dc3c4d1
Rust: Use useUniversalConditions() { none() }
2025-11-17 13:57:00 +01:00
Tom Hvitved
46f5d89674
Rust: Handle builtin types in path resolution
2025-11-17 13:56:56 +01:00
Tom Hvitved
39720a17ef
Rust: More type inference tests
2025-11-17 13:54:39 +01:00
Tom Hvitved
b0dc48e393
Merge pull request #20723 from paldepind/rust/ti-inheritance
...
Rust: Make impl blocks only give rise to direct trait implementation
2025-11-17 13:36:05 +01:00
Simon Friis Vindum
4eb22a7e55
Rust: Fix grammar
2025-11-17 12:39:38 +01:00
Simon Friis Vindum
9971936036
Rust: Improvements to docs from review comments
2025-11-17 12:39:37 +01:00
Simon Friis Vindum
a07f015d01
Rust: Accept changes to expected files
2025-11-17 12:39:36 +01:00
Tom Hvitved
3419c00bc0
Rust: Use ToIndex instead of FromIndex in ranked forex predicates
...
`ToIndex` makes more sense, since we start the recursion from `0`.
2025-11-17 12:28:35 +01:00
Paul Hodgkinson
7b25e22a37
Merge branch 'main' into java-kotlin-sensitive-logging-substring-barriers
2025-11-17 11:03:39 +00:00
aegilops
528c451007
Added change note, adjusted spacing in comment
2025-11-17 11:02:59 +00:00
Jeroen Ketema
1df47cc747
C++: Fix QL-for-QL warning
2025-11-17 11:17:57 +01:00
Jeroen Ketema
15393ae621
C++: Add change note
2025-11-17 11:17:56 +01:00
Jeroen Ketema
61b7eb3d5c
C++: Update dbscheme stats file
2025-11-17 11:17:55 +01:00
Jeroen Ketema
a8d488fa29
C++: Add upgrade and downgrade scripts
2025-11-17 11:17:54 +01:00
Jeroen Ketema
ee97d6f461
C++: Expose the expanded compilation arguments
2025-11-17 11:17:53 +01:00
Jeroen Ketema
861c236dae
C++: Add table for expanded compilation arguments
2025-11-17 11:17:51 +01:00
Asger F
4b57b4418f
JS: Factor out some code
2025-11-17 10:48:15 +01:00
Asger F
a405b7b3e0
JS: Add discard predicates for locations
2025-11-17 10:47:37 +01:00
Simon Friis Vindum
089bffff94
Rust: Make impl blocks only give rise to direct trait implementation
2025-11-17 10:22:18 +01:00
Michael Nebel
c0ebc17bdc
Merge pull request #20768 from michaelnebel/csharp/extractionlogging
...
C#: Report more timing metrics to the console logger.
2025-11-17 10:06:05 +01:00
Tom Hvitved
19ff5c09d2
Rust: Cache inferCertainType
...
Ideally, this shouldn't be needed, as we already cache `inferType`. However, since we
have consistency checks that directly call `inferCertainType`, we need to cache it
as well to avoid recomputation.
2025-11-17 09:30:20 +01:00
Tom Hvitved
e986cca5c1
Merge pull request #20843 from hvitved/rust/access-after-lifetime-speedup
...
Rust: Speedup `AccessAfterLifetime.ql`
2025-11-17 08:40:27 +01:00
eliav
8047450668
javascript: Update property access for `document.defaultView as getAPropertyRead
...
Changed the method for accessing `defaultView` from `getAPropertyReference` to `getAPropertyRead` to improve accuracy in data flow analysis for global variable references.
2025-11-17 01:05:58 +02:00
eliav
bd18e862eb
javascript: add change note
2025-11-17 01:02:21 +02:00
eliav
30cc91421d
javascript: Add support for document.defaultView in global variable references
...
Updated the data flow analysis to include `document.defaultView` as a source node for global variable references. Added a new test file `tst4.js` and updated existing tests to verify the inclusion of `defaultView` and its properties in the expected results.
2025-11-17 00:52:06 +02:00
Tom Hvitved
8455663255
Rust: Speedup AccessAfterLifetime.ql
2025-11-15 15:21:03 +01:00
Owen Mansel-Chan
fabcd044d6
Merge pull request #20838 from owen-mc/go/fix/dataset-check-errors-sourcefile
...
Go: fix dataset check errors
2025-11-14 21:04:24 +00:00
aegilops
0c0fbc1457
Fixed sensitive logging barriers for substring to allow single-arg use
2025-11-14 18:12:05 +00:00
aegilops
fa703e3e60
Test cases for sensitive logging sanitizer
2025-11-14 16:53:46 +00:00
Paolo Tranquilli
68a03585da
Merge pull request #20811 from github/redsun82/update-rules_java
...
Javascript: fix errors from upcoming `rules_java` update
2025-11-14 16:44:47 +01:00
Jeroen Ketema
0f2e29c90e
Merge pull request #20816 from paldepind/cpp/range-analysis-perf-fix
...
C++: Range analysis performance fix
2025-11-14 16:15:04 +01:00
Anders Schack-Mulligen
1c93710ed3
Merge pull request #20826 from aschackmull/guards/disjunctive-implication
...
Guards: Support disjunctive implications.
2025-11-14 15:44:45 +01:00
Simon Friis Vindum
792ac7a772
C++: Fix typo
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-14 12:59:41 +01:00
Paolo Tranquilli
da12d73f25
Merge branch 'main' into redsun82/update-rules_java
2025-11-14 12:35:09 +01:00
Simon Friis Vindum
1dd78e2f4b
C++: Add change note
2025-11-14 12:26:24 +01:00
Simon Friis Vindum
5da73f3232
C++: Make sure that nrOfBoundsNEPhi is functional
2025-11-14 12:26:23 +01:00
Simon Friis Vindum
74b433ef59
C++: Add range analysis tests
2025-11-14 12:26:22 +01:00
Simon Friis Vindum
69e70d7cbc
Reapply "Merge pull request #20645 from paldepind/cpp/range-analysis-measure"
...
This reverts commit e7c029ae7d .
2025-11-14 12:26:21 +01:00
Idriss Riouak
96f57b207d
Merge pull request #20615 from github/idrissrio/java-jdk
...
Java: Add test for multi-module projects with different Java versions
2025-11-14 12:18:19 +01:00
Anders Schack-Mulligen
4867306b5e
C#: Add change note.
2025-11-14 11:44:27 +01:00
Anders Schack-Mulligen
dc029e8da9
C#: Accept qltest weirdness.
2025-11-14 11:38:13 +01:00
Owen Mansel-Chan
59ac2d3d3e
Move TransformPath into FileLabelFor
...
This way we don't have to remember to transform it at all call sites.
2025-11-14 10:25:40 +00:00
Tom Hvitved
8668473916
Merge pull request #20683 from hvitved/rust/type-inference-arg-target-typed
...
Rust: Restrict type propagation into arguments
2025-11-14 10:46:04 +01:00
Tom Hvitved
4c7f9c0144
Rust: Rename ContextType -> UnknownType
2025-11-14 10:16:21 +01:00
Owen Mansel-Chan
4005a6e2de
Merge pull request #20835 from github/dependabot/go_modules/go/extractor/extractor-dependencies-d13c81f2db
...
Bump golang.org/x/tools from 0.38.0 to 0.39.0 in /go/extractor in the extractor-dependencies group
2025-11-14 09:09:18 +00:00
Tom Hvitved
337e161aa3
Merge pull request #20834 from hvitved/rust/fix-bad-join
...
Rust: Fix bad join
2025-11-14 09:57:56 +01:00
Idriss Riouak
d916ebdc24
Java: Address review comments. Improve Change note
...
Co-authored-by: Chris Smowton <smowton@github.com >
2025-11-14 09:53:09 +01:00
Tom Hvitved
79bdf897d7
Rust: Context typing for constructors
2025-11-14 09:45:03 +01:00
Tom Hvitved
c16b42119d
Rust: More type inference tests
2025-11-14 09:45:02 +01:00
Tom Hvitved
e69ff0d5e8
Rust: Restrict type propagation into arguments
2025-11-14 09:44:58 +01:00
Tom Hvitved
72b7dd8955
Rust: Add more type inference tests
2025-11-14 09:41:30 +01:00
dependabot[bot]
acfca601bc
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.38.0 to 0.39.0
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.38.0...v0.39.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-version: 0.39.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: extractor-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-14 03:08:48 +00:00
Tom Hvitved
f926a076b8
Rust: Fix bad join
...
Before
```
Evaluated relational algebra for predicate TypeMention::NonAliasPathTypeMention.getTypeMentionForTypeParameter/1#f0c507c8@d7d71dnu with tuple counts:
12496 ~2% {3} r1 = SCAN `TypeMention::NonAliasPathTypeMention.getAnAssocTypeArgument/1#c61d1deb` OUTPUT In.2, In.0, In.1
12421 ~0% {3} | JOIN WITH TypeMention::TypeMention#3ab935d1 ON FIRST 1 OUTPUT Lhs.1, Lhs.2, Lhs.0
12421 ~0% {3} | JOIN WITH TypeMention::NonAliasPathTypeMention#9123dc7e ON FIRST 1 OUTPUT Lhs.1, Lhs.0, Lhs.2
12421 ~0% {3} | JOIN WITH cached_Type::TAssociatedTypeTypeParameter#14a276f6 ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
12421 ~0% {3} | JOIN WITH Type::TypeParameter#f85657da ON FIRST 1 OUTPUT Lhs.1, Lhs.0, Lhs.2
1 ~0% {2} r2 = SCAN `Stdlib::FnOnceTrait.getTypeParam/0#dispred#93f20bbc` OUTPUT In.1, In.0
1 ~0% {2} | JOIN WITH cached_Type::TTypeParamTypeParameter#868c69a5 ON FIRST 1 OUTPUT Rhs.1, Lhs.1
1 ~0% {2} | JOIN WITH Type::TypeParameter#f85657da ON FIRST 1 OUTPUT Lhs.1, Lhs.0
3216 ~0% {2} | JOIN WITH TypeMention::NonAliasPathTypeMention#9123dc7e_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1
3216 ~0% {3} | JOIN WITH `Path::Generated::Path.getSegment/0#dispred#1c7ef50f` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.0
3201 ~0% {3} | JOIN WITH `PathSegment::Generated::PathSegment.getParenthesizedArgList/0#dispred#cd573956` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
3201 ~0% {3} | JOIN WITH TypeMention::TypeMention#3ab935d1 ON FIRST 1 OUTPUT Lhs.2, Lhs.1, Lhs.0
1 ~0% {2} r3 = SCAN `Stdlib::FnOnceTrait.getOutputType/0#0d2e9ef1` OUTPUT In.1, In.0
1 ~0% {2} | JOIN WITH cached_Type::TAssociatedTypeTypeParameter#14a276f6 ON FIRST 1 OUTPUT Rhs.1, Lhs.1
1 ~0% {2} | JOIN WITH Type::TypeParameter#f85657da ON FIRST 1 OUTPUT Lhs.1, Lhs.0
3216 ~3% {2} | JOIN WITH TypeMention::NonAliasPathTypeMention#9123dc7e_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1
3216 ~0% {3} | JOIN WITH `Path::Generated::Path.getSegment/0#dispred#1c7ef50f` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.0
2958 ~0% {3} | JOIN WITH `PathSegment::Generated::PathSegment.getRetType/0#dispred#9d400241` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
2958 ~0% {3} | JOIN WITH `RetTypeRepr::Generated::RetTypeRepr.getTypeRepr/0#dispred#fd85a980` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
2944 ~0% {3} | JOIN WITH TypeMention::TypeMention#3ab935d1 ON FIRST 1 OUTPUT Lhs.2, Lhs.1, Lhs.0
54186 ~3% {2} r4 = JOIN `TypeAlias::Generated::TypeAlias.getTypeRepr/0#dispred#5fd7e521_10#join_rhs` WITH TypeMention::TypeMention#3ab935d1 ON FIRST 1 OUTPUT Lhs.1, Lhs.0
1446369 ~12% {3} | JOIN WITH `PathResolution::ItemNode.getASuccessor/1#8f430f71_201#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Rhs.2
36945 ~0% {3} | JOIN WITH `PathResolution::ImplItemNode.getTraitPath/0#dispred#3b7d1cb6` ON FIRST 1 OUTPUT Lhs.2, Lhs.1, Rhs.1
377232832 ~1% {4} | JOIN WITH `Name::Generated::Name.getText/0#dispred#107a5a39_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.0
370815806 ~5% {4} | JOIN WITH `TypeAlias::Generated::TypeAlias.getName/0#dispred#bf886045_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3
1490317 ~0% {4} | JOIN WITH cached_Type::TAssociatedTypeTypeParameter#14a276f6 ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3
1490317 ~0% {4} | JOIN WITH `Type::AssociatedTypeTypeParameter.getTrait/0#dispred#41eb3020` ON FIRST 1 OUTPUT Lhs.2, Rhs.1, Lhs.1, Lhs.3
36413 ~1% {4} | JOIN WITH TypeMention::NonAliasPathTypeMention#9123dc7e ON FIRST 2 OUTPUT Lhs.1, Lhs.3, Lhs.2, Lhs.0
36413 ~1% {3} | JOIN WITH `PathResolution::ImplOrTraitItemNode.getAssocItem/1#f77bb9ed` ON FIRST 2 OUTPUT Rhs.2, Lhs.2, Lhs.3
36413 ~0% {3} | JOIN WITH cached_Type::TAssociatedTypeTypeParameter#14a276f6 ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
36413 ~0% {3} | JOIN WITH Type::TypeParameter#f85657da ON FIRST 1 OUTPUT Lhs.2, Lhs.0, Lhs.1
54979 ~3% {3} r5 = r1 UNION r2 UNION r3 UNION r4
return r5
```
After
```
Evaluated relational algebra for predicate TypeMention::NonAliasPathTypeMention.getTypeMentionForTypeParameter/1#f0c507c8@a37ac19m with tuple counts:
12496 ~2% {3} r1 = SCAN `TypeMention::NonAliasPathTypeMention.getAnAssocTypeArgument/1#c61d1deb` OUTPUT In.2, In.0, In.1
12421 ~0% {3} | JOIN WITH TypeMention::TypeMention#3ab935d1 ON FIRST 1 OUTPUT Lhs.1, Lhs.2, Lhs.0
12421 ~0% {3} | JOIN WITH TypeMention::NonAliasPathTypeMention#9123dc7e ON FIRST 1 OUTPUT Lhs.1, Lhs.0, Lhs.2
12421 ~0% {3} | JOIN WITH Type::TAssociatedTypeTypeParameter#14a276f6 ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
12421 ~0% {3} | JOIN WITH Type::TypeParameter#f85657da ON FIRST 1 OUTPUT Lhs.1, Lhs.0, Lhs.2
1 ~0% {2} r2 = SCAN `Stdlib::FnOnceTrait.getTypeParam/0#dispred#93f20bbc` OUTPUT In.1, In.0
1 ~0% {2} | JOIN WITH Type::TTypeParamTypeParameter#868c69a5 ON FIRST 1 OUTPUT Rhs.1, Lhs.1
1 ~0% {2} | JOIN WITH Type::TypeParameter#f85657da ON FIRST 1 OUTPUT Lhs.1, Lhs.0
3216 ~0% {2} | JOIN WITH TypeMention::NonAliasPathTypeMention#9123dc7e_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1
3216 ~0% {3} | JOIN WITH `Path::Generated::Path.getSegment/0#dispred#1c7ef50f` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.0
3201 ~0% {3} | JOIN WITH `PathSegment::Generated::PathSegment.getParenthesizedArgList/0#dispred#cd573956` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
3201 ~0% {3} | JOIN WITH TypeMention::TypeMention#3ab935d1 ON FIRST 1 OUTPUT Lhs.2, Lhs.1, Lhs.0
1 ~0% {2} r3 = SCAN `Stdlib::FnOnceTrait.getOutputType/0#0d2e9ef1` OUTPUT In.1, In.0
1 ~0% {2} | JOIN WITH Type::TAssociatedTypeTypeParameter#14a276f6 ON FIRST 1 OUTPUT Rhs.1, Lhs.1
1 ~0% {2} | JOIN WITH Type::TypeParameter#f85657da ON FIRST 1 OUTPUT Lhs.1, Lhs.0
3216 ~3% {2} | JOIN WITH TypeMention::NonAliasPathTypeMention#9123dc7e_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1
3216 ~0% {3} | JOIN WITH `Path::Generated::Path.getSegment/0#dispred#1c7ef50f` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.0
2958 ~0% {3} | JOIN WITH `PathSegment::Generated::PathSegment.getRetType/0#dispred#9d400241` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
2958 ~0% {3} | JOIN WITH `RetTypeRepr::Generated::RetTypeRepr.getTypeRepr/0#dispred#fd85a980` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
2944 ~0% {3} | JOIN WITH TypeMention::TypeMention#3ab935d1 ON FIRST 1 OUTPUT Lhs.2, Lhs.1, Lhs.0
54186 ~3% {2} r4 = JOIN `TypeAlias::Generated::TypeAlias.getTypeRepr/0#dispred#5fd7e521_10#join_rhs` WITH TypeMention::TypeMention#3ab935d1 ON FIRST 1 OUTPUT Lhs.1, Lhs.0
1446369 ~12% {3} | JOIN WITH `PathResolution::ItemNode.getASuccessor/1#8f430f71_201#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Rhs.2
36945 ~2% {3} | JOIN WITH `PathResolution::ImplItemNode.getTraitPath/0#dispred#3b7d1cb6` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
36398 ~3% {3} | JOIN WITH TypeMention::NonAliasPathTypeMention#9123dc7e ON FIRST 1 OUTPUT Lhs.0, Lhs.2, Lhs.1
36413 ~1% {3} | JOIN WITH `TypeMention::NonAliasPathTypeMention.getResolvedAlias/1#c48b878e` ON FIRST 2 OUTPUT Rhs.2, Lhs.2, Lhs.0
36413 ~0% {3} | JOIN WITH Type::TAssociatedTypeTypeParameter#14a276f6 ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
36413 ~0% {3} | JOIN WITH Type::TypeParameter#f85657da ON FIRST 1 OUTPUT Lhs.2, Lhs.0, Lhs.1
54979 ~3% {3} r5 = r1 UNION r2 UNION r3 UNION r4
return r5
```
2025-11-13 21:31:32 +01:00
Tom Hvitved
caccee9990
Merge pull request #20833 from hvitved/rust/fix-bad-join
...
Rust: Fix bad join
2025-11-13 19:11:27 +01:00
Geoffrey White
e0f0305ace
Rust: Add test cases for rust/access-invalid-pointer based on real world FPs.
2025-11-13 16:07:22 +00:00
Kristen Newbury
7b8a3d044e
Update javascript/ql/lib/semmle/javascript/frameworks/React.qll
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-13 15:38:41 +01:00
Kristen Newbury
ee60f8e6c6
Update javascript/ql/lib/semmle/javascript/frameworks/React.qll
...
Co-authored-by: Asger F <asgerf@github.com >
2025-11-13 15:38:41 +01:00
Kristen Newbury
7f8ccb7d46
Simplify addition
2025-11-13 15:38:41 +01:00
Kristen Newbury
dd6db16550
Add DomValueSource for react useRef output (object's prop named current)
2025-11-13 15:38:41 +01:00
Kristen Newbury
9534188f1f
Add react precallgraphstep useRef
2025-11-13 15:38:41 +01:00
Tom Hvitved
1b6b1e56ed
Rust: Fix bad join
...
Before
```
Pipeline standard for ElementImpl::Impl::MacroExpansion::isFromMacroExpansion/1#69965d18@7580bdbj was evaluated in 205 iterations totaling 49106ms (delta sizes total: 1254645).
8014745124 ~4% {1} r1 = AstNodeImpl::Impl::AstNode#22e758cf AND NOT `ElementImpl::Impl::MacroExpansion::isFromMacroExpansion/1#69965d18#prev`(FIRST 1)
822416474 ~0% {2} | JOIN WITH `ElementImpl::Impl::MacroExpansion::getImmediatelyEnclosingMacroInvocation/1#1eb32ecc` ON FIRST 1 OUTPUT Rhs.1, Lhs.0
1254645 ~0% {1} | JOIN WITH `ElementImpl::Impl::MacroExpansion::isFromMacroExpansion/1#69965d18#prev_delta` ON FIRST 1 OUTPUT Lhs.1
return r1
```
After
```
Pipeline standard for ElementImpl::Impl::MacroExpansion::isFromMacroExpansion/1#69965d18@f39b84ka was evaluated in 205 iterations totaling 138ms (delta sizes total: 1254645).
4675568 ~0% {1} r1 = JOIN `ElementImpl::Impl::MacroExpansion::isFromMacroExpansion/1#69965d18#prev_delta` WITH `ElementImpl::Impl::MacroExpansion::getImmediatelyEnclosingMacroInvocation/1#1eb32ecc_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1
4672186 ~0% {1} | JOIN WITH AstNodeImpl::Impl::AstNode#22e758cf ON FIRST 1 OUTPUT Lhs.0
1254645 ~0% {1} | AND NOT `ElementImpl::Impl::MacroExpansion::isFromMacroExpansion/1#69965d18#prev`(FIRST 1)
return r1
```
2025-11-13 15:26:01 +01:00
Anders Schack-Mulligen
a28a718409
Merge pull request #20814 from aschackmull/guards/wrapper-perf
...
Guards: Improve join-order for wrapper guards
2025-11-13 13:16:13 +01:00
Anders Schack-Mulligen
b31dfdd5f4
Guards: Add elaborating comment.
2025-11-13 13:09:44 +01:00
Tom Hvitved
bfa35629ac
Merge pull request #20744 from hvitved/rust/path-resolution-unqualified-use-tree
...
Rust: Handle unqualified `UseTree`s in path resolution
2025-11-13 11:18:41 +01:00
Owen Mansel-Chan
f22429de2d
Merge branch 'main' into java-mad-test
2025-11-13 10:06:14 +00:00
Tom Hvitved
c6164b33e5
Address review comment
2025-11-13 10:47:04 +01:00
Geoffrey White
e43000f7cf
Rust: Correct ordering in query suite .expected lists.
2025-11-13 09:21:04 +00:00
Geoffrey White
12cbb64ef8
Rust: Add query to suite .expected lists.
2025-11-13 09:00:56 +00:00
Geoffrey White
15fa99a288
Rust: Clarify some confusing text in the .qhelp.
2025-11-13 09:00:46 +00:00
Geoffrey White
42aca4a171
Apply suggestions from code review
...
Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com >
2025-11-13 08:51:41 +00:00
Asger F
c7341f295d
JS: Fix bad join in BarrierGuards.qll
2025-11-13 09:46:27 +01:00
Asger F
578355ac27
JS: Fix bad join in CallGraphs.qll
2025-11-13 09:46:25 +01:00
Asger F
ecfa94600f
Sync ApiGraphModels.qll
2025-11-13 09:46:23 +01:00
Asger F
16e7dc1b8a
Sync ApiGraphModelsExtensions.qll
2025-11-13 09:46:21 +01:00
Asger F
46b1387846
JS: Make isAssignedInUniqueFile global, as it should be
2025-11-13 09:46:20 +01:00
Asger F
6498cd1b07
JS: Remove obsolete overlay[global] annotations
2025-11-13 09:46:18 +01:00
Asger F
0594f84dfc
JS: Improve join orders related to getABooleanValue()
2025-11-13 09:46:16 +01:00
Asger F
4645f327a5
JS: Avoid more bad joins due to locality
2025-11-13 09:46:14 +01:00
Asger F
269489e817
JS: Avoid bad join in shared predicate induced by 'forex'.
...
Use manual recursion instead.
2025-11-13 09:46:12 +01:00
Asger F
5dd87e379b
JS: Add overlay[local] to restore magic in unwrap() predicate
...
In this case we actually want magic to apply, but was prevented by locality.
2025-11-13 09:46:10 +01:00
Asger F
ac3913e7db
JS: Fix bad join in DuplicateProperty.ql
2025-11-13 09:46:08 +01:00
Asger F
e72232fd1d
JS: Add more overlay[caller?] annotations
2025-11-13 09:46:06 +01:00
Asger F
66febb263d
JS: Add some overlay[caller] and a pragma[nomagic] annotations
2025-11-13 09:46:05 +01:00
Taus
889209719b
JS: Overlay annotations for some failing tests
...
Locally these seem to get rid of the compilation warnings, but of course
CI is the true arbiter here.
2025-11-13 09:46:03 +01:00
Asger F
c09563f775
JS: Make more general-purpose data flow things local
2025-11-13 09:46:01 +01:00
Asger F
b1418e1d70
JS: Add overlay[local?] to new summaries after rebasing
2025-11-13 09:46:00 +01:00
Asger F
2b338fc1d9
JS: Fix getRawEnclosingStmt call
2025-11-13 09:45:58 +01:00
Asger F
23e42c89ee
JS: Overlay annotations for AST layer
2025-11-13 09:45:56 +01:00
idrissrio
e6d4e515b0
Java: Add change note for Maven Java version auto-detection
2025-11-13 09:41:32 +01:00
Geoffrey White
0675a29ae6
Rust: Minor corrections.
2025-11-12 19:26:45 +00:00
Tom Hvitved
467bd541d2
Merge pull request #20770 from hvitved/rust/attribute-macro-expansion-filter
...
Rust: Remove elements superseded by attribute macro expansions
2025-11-12 19:52:09 +01:00
Geoffrey White
7a62642ed7
Rust: Change note.
2025-11-12 18:17:12 +00:00
Geoffrey White
49063ac8a9
Rust: Cut down the example for readability.
2025-11-12 18:13:02 +00:00
Geoffrey White
dcae0ef975
Rust: I prefer the original certificates reference from the Go .qhelp.
2025-11-12 18:10:44 +00:00
Geoffrey White
87d66c69a3
Rust: Clean up the .qhelp a little.
2025-11-12 18:10:02 +00:00
Geoffrey White
bb78fdf150
Rust: Add qhelp and examples (translated from Go, by Copilot).
2025-11-12 16:50:50 +00:00
Geoffrey White
c77eef39e2
Rust: Convert the query to a path-problem with global data flow.
2025-11-12 16:21:46 +00:00
Geoffrey White
209f394b5e
Rust: Fix the alert message.
2025-11-12 15:51:03 +00:00
Geoffrey White
f8ef48b924
Rust: Add query test.
2025-11-12 15:44:15 +00:00
Owen Mansel-Chan
7b533db4fb
Sort models and tests alphabetically
2025-11-12 15:10:29 +00:00
Owen Mansel-Chan
f598027cbd
Apply suggestions from code review
2025-11-12 15:02:42 +00:00
Nick Rolfe
86465b36e0
Merge pull request #20623 from github/nickrolfe/go-extractor-overlay
...
Go: basic overlay support
2025-11-12 14:56:25 +00:00
Geoffrey White
9598772477
Update rust/ql/examples/snippets/simple_constant_password.ql
...
Co-authored-by: Tom Hvitved <hvitved@github.com >
2025-11-12 14:37:45 +00:00
Michael Nebel
085d3c85cd
Merge pull request #20425 from michaelnebel/csharp/basicextractoroverlay
...
C#: Overlay extraction support.
2025-11-12 15:25:57 +01:00
Anders Schack-Mulligen
d6800394fa
Guards: Support disjunctive implications.
2025-11-12 14:14:32 +01:00
Anders Schack-Mulligen
2192d75286
Java: Add test for a known FP.
2025-11-12 14:08:18 +01:00
Owen Mansel-Chan
54ff206fde
Merge pull request #20822 from github/dependabot/go_modules/go/extractor/extractor-dependencies-b217d21568
...
Bump golang.org/x/mod from 0.29.0 to 0.30.0 in /go/extractor in the extractor-dependencies group
2025-11-12 09:27:06 +00:00
Paolo Tranquilli
7c31cf17d8
Merge pull request #20815 from github/update-ripunzip
...
Update ripunzip binaries to version v2.0.3
2025-11-12 10:25:59 +01:00
Anders Schack-Mulligen
4a58a0158a
Java: Reinstate useless null check results for fields that are no longer tracked as SSA variables.
2025-11-12 09:06:22 +01:00
Anders Schack-Mulligen
437ca58e3f
Java: Add change note.
2025-11-12 09:06:22 +01:00
Anders Schack-Mulligen
109a5eb7e7
Java: Accept qltest changes due to dropped UntrackedDef.
2025-11-12 09:06:21 +01:00
Anders Schack-Mulligen
e059ded133
Java: Accept toString changes in qltest.
2025-11-12 09:06:21 +01:00
Anders Schack-Mulligen
95ac61df42
Java: Drop caching of deprecated predicates.
2025-11-12 09:06:20 +01:00
Anders Schack-Mulligen
5849d85f1f
Java: Deprecate two more SSA classes.
2025-11-12 09:06:20 +01:00
Anders Schack-Mulligen
ee5d65eba1
Java: Update toString for implicit writes.
2025-11-12 09:06:19 +01:00
Anders Schack-Mulligen
f0bd0346f0
Java: Replace usages of SsaVariable.
2025-11-12 09:06:19 +01:00
Anders Schack-Mulligen
8594ae03df
Java: Replace remaining SsaImplicitInit.
2025-11-12 09:06:19 +01:00
Anders Schack-Mulligen
f4b9efcdce
Java: Replace getAUse with getARead.
2025-11-12 09:06:18 +01:00
Anders Schack-Mulligen
35caede859
Java: Replace SsaPhiNode with SsaPhiDefinition.
2025-11-12 09:06:18 +01:00
Anders Schack-Mulligen
3e43c53b9d
Java: Update some qldoc deprecation notices.
2025-11-12 09:06:17 +01:00
Anders Schack-Mulligen
06df5c0bd1
Java: Introduce SsaCapturedDefinition and replace uses of getAnUltimateDefinition.
2025-11-12 09:06:17 +01:00
Anders Schack-Mulligen
483b2d89a7
Java: Replace uses of SsaExplicitUpdate.
2025-11-12 09:06:16 +01:00
Anders Schack-Mulligen
07e635636c
Java: Replace getAFirstUse with top-level predicate.
2025-11-12 09:06:16 +01:00
Anders Schack-Mulligen
99aa0333cf
Java: Replace usages of isParameterDefinition.
2025-11-12 09:06:15 +01:00
Anders Schack-Mulligen
154f0770de
Java: Simplify instantiation of Guards and ControlFlowReachability.
2025-11-12 09:06:15 +01:00
Anders Schack-Mulligen
d5708fdd4e
Java: Instantiate shared SSA wrappers for main SSA.
2025-11-12 09:06:14 +01:00
Anders Schack-Mulligen
942dc2b89e
Java: Replace BaseSSA class wrappers with shared code.
2025-11-12 09:06:14 +01:00
Anders Schack-Mulligen
551944bacb
Java: Add VariableWrite class.
2025-11-12 09:06:13 +01:00
Anders Schack-Mulligen
289d3374ef
SSA: Improve toString.
2025-11-12 09:06:13 +01:00
Anders Schack-Mulligen
79b2f21b07
SSA: Fix phi defs.
2025-11-12 09:06:12 +01:00
Anders Schack-Mulligen
374c77213f
Java: Remove getAFirstUse in BaseSSA.
2025-11-12 09:06:12 +01:00
Anders Schack-Mulligen
f2181ece4f
Java: Get rid of untracked SSA definitions.
2025-11-12 09:06:11 +01:00
Anders Schack-Mulligen
c4f0868844
Java: Move SSA entry defs to index -1.
2025-11-12 09:06:11 +01:00
idrissrio
3b7f2f4eda
Java: Add LGTM_INDEX_ MAVEN_TOLLCHAINS_FILE for new Maven integration tests
2025-11-12 08:39:40 +01:00
idrissrio
a82b5e7aa1
Java: Add test for selecting the highest compiler release in a pom
2025-11-12 08:39:39 +01:00
idrissrio
7dab2bef69
Java: Add test for Java 16 target when only Java 17+ is available
2025-11-12 08:39:37 +01:00
idrissrio
fcc54c1470
Java: Add test for detecting --add-exports in poms
2025-11-12 08:39:36 +01:00
idrissrio
5247c88da1
Java: Add test for pom targeting Java 8 but rquiring Java 11
2025-11-12 08:39:35 +01:00
idrissrio
6b890eaf94
Java: Add test for multi-module projects with different Java versions
2025-11-12 08:39:34 +01:00
dependabot[bot]
c88952423e
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.29.0 to 0.30.0
- [Commits](https://github.com/golang/mod/compare/v0.29.0...v0.30.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/mod
dependency-version: 0.30.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: extractor-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-12 03:08:31 +00:00
Paolo Tranquilli
3483007b2a
Ripunzip: use new archives
2025-11-11 17:44:12 +01:00
Geoffrey White
f6b7aeaaca
Rust: Add prototype query.
2025-11-11 16:01:10 +00:00
Nick Rolfe
e5ba4143ff
Go: add change-note for path transformer fixes
2025-11-11 15:47:53 +00:00
github-actions[bot]
d5734af555
Update ripunzip binaries to version v2.0.3
2025-11-11 13:40:02 +00:00
Paolo Tranquilli
0419667460
Merge pull request #20802 from github/redsun82/ripunzip
...
CI: make `build-ripunzip.yml` auto-create update PR
2025-11-11 14:34:39 +01:00
Michael B. Gale
f1076b9eb1
Merge pull request #20813 from github/post-release-prep/codeql-cli-2.23.5
...
Post-release preparation for codeql-cli-2.23.5
2025-11-11 13:13:14 +00:00
Henry Mercer
d3dc7908f8
Merge branch 'main' into post-release-prep/codeql-cli-2.23.5
2025-11-11 12:55:58 +00:00
Anders Schack-Mulligen
62e28d2dcf
Guards: Simplify non-linear join.
2025-11-11 13:34:47 +01:00
github-actions[bot]
466a6f330a
Post-release preparation for codeql-cli-2.23.5
2025-11-11 12:21:57 +00:00
Anders Schack-Mulligen
3c7522ca7d
Guards: Replace recursion through universal quantification with rank-iteration.
2025-11-11 13:03:05 +01:00
Paolo Tranquilli
e2671da05f
Fix build-ripunzip.yml archive step on macos
2025-11-11 13:01:39 +01:00
Anders Schack-Mulligen
a5279ec420
Guards: Rank return expressions.
2025-11-11 12:52:07 +01:00
Paolo Tranquilli
104f0e3a02
Fix build-ripunzip.yml archive step on windows
2025-11-11 12:51:30 +01:00
Paolo Tranquilli
99baf98897
Fix build-ripunzip.yml
2025-11-11 12:46:28 +01:00
Anders Schack-Mulligen
0a4406dec9
Guards: Push forex-range constraint in.
2025-11-11 12:45:46 +01:00
Paolo Tranquilli
82435218dc
Javascript: fix compilation error after scripted replacement
2025-11-11 12:44:33 +01:00
Paolo Tranquilli
9d51932124
Merge branch 'main' into redsun82/update-rules_java
2025-11-11 12:43:05 +01:00
Napalys Klicius
d122534398
Merge pull request #20671 from github/napalys/adjust_query_severity
...
Adjust query severity ratings
2025-11-11 12:37:31 +01:00
Paolo Tranquilli
ff62c65cdf
Javascript: avoid null pointer exception on boolean values
2025-11-11 12:11:49 +01:00
Paolo Tranquilli
47f2617b4d
Use other compression method for ripunzip
2025-11-11 12:07:19 +01:00
Paolo Tranquilli
295744eb36
Set permissions
2025-11-11 12:00:30 +01:00
Paolo Tranquilli
29a2f96cc7
Merge branch 'main' into redsun82/ripunzip
2025-11-11 11:57:29 +01:00
Paolo Tranquilli
6ef314ed03
Javascript: fix errors from upcoming rules_java update
2025-11-11 11:53:07 +01:00
Paolo Tranquilli
8d6a45008a
Bazel: update to 8.4.2
2025-11-11 11:42:58 +01:00
Geoffrey White
109abddc36
Apply suggestions from code review
...
Co-authored-by: Simon Friis Vindum <paldepind@github.com >
2025-11-11 09:32:14 +00:00
Geoffrey White
8624f9c660
Merge pull request #20749 from github/copilot/add-secure-cookie-test-cases
...
Add test coverage for actix-web, poem, and http-types cookie secure attribute
2025-11-11 09:26:26 +00:00
Joe Farebrother
eda23902ba
Merge pull request #20692 from joefarebrother/csharp-secure-cookie-promote
...
C#: Promote insecure cookie and httponly cookie queries
2025-11-10 15:02:45 +00:00
Paolo Tranquilli
02e696d9cc
Update .github/workflows/build-ripunzip.yml
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-10 15:58:43 +01:00
Michael Nebel
0541dccc78
C#: Add discarding for ASP elements.
2025-11-10 15:44:17 +01:00
Michael Nebel
3492811cda
C#: Add XML overlay tests.
2025-11-10 15:38:29 +01:00
Michael Nebel
d6b7424e2c
C#: Add the same strategy in as in Java for XML element discarding.
2025-11-10 15:38:26 +01:00
Joe Farebrother
c9a559a6d8
Restrict Append calls to string arguments
2025-11-10 14:14:06 +00:00
Joe Farebrother
b813c13462
Restrict sinks to fix performance
2025-11-10 14:14:01 +00:00
Joe Farebrother
7d5388fb68
Update integration tests
2025-11-10 14:13:56 +00:00
Joe Farebrother
544446bb81
Minor comment update
2025-11-10 14:13:51 +00:00
Joe Farebrother
0a085dccbe
Fix qhelp
2025-11-10 14:13:46 +00:00
Joe Farebrother
d29fc9d2d0
Add changenote
2025-11-10 14:13:41 +00:00
Joe Farebrother
d8eeae781b
Add additional test case for httponly cookies set to true
2025-11-10 14:13:36 +00:00
Paolo Tranquilli
a6fda6ba73
CI: make build-ripunzip.yml auto-create update PR
2025-11-10 15:13:35 +01:00
Joe Farebrother
c734e74c76
Update qhelp
2025-11-10 14:13:31 +00:00
Joe Farebrother
cdd1edd53b
Remove experimental versions
2025-11-10 14:13:26 +00:00
Joe Farebrother
6ba7ece2f0
Add httponly tests for aspnet core + fixes
2025-11-10 14:13:19 +00:00
Joe Farebrother
ae0b997c31
Add system.web tests for httponly cookie
2025-11-10 14:13:14 +00:00
Joe Farebrother
a9b97f7065
Add tests for insecure cookie using system.web
2025-11-10 14:13:09 +00:00
Joe Farebrother
bb010fee6b
Add tests for secure cookie using aspnetcore
2025-11-10 14:13:04 +00:00
Joe Farebrother
3cdfa8e0ac
Update comments and names
2025-11-10 14:12:57 +00:00
Joe Farebrother
a87a03cfa8
Move to main query pack
2025-11-10 14:12:48 +00:00
Joe Farebrother
71ad5a340f
Refactor httponly cookie query
2025-11-10 14:12:43 +00:00
Joe Farebrother
a1864edcb6
Presere behaviour for insecure cookie constructor
2025-11-10 14:12:36 +00:00
Joe Farebrother
d3ea6758c3
Simplify checks for assignments to false to creation case
2025-11-10 14:12:30 +00:00
Joe Farebrother
7bb65fef1b
Refactor secure cookie query
2025-11-10 14:12:24 +00:00
Mathias Vorreiter Pedersen
fd8bf990f6
Merge pull request #20783 from MathiasVP/fix-cp-in-external-flow
...
C++: Fix cartesian-like join in `ExternalFlow.qll`
2025-11-10 13:40:34 +00:00
Michael Nebel
c44b74740e
C#: Minor code quality improvements.
2025-11-10 14:23:59 +01:00
Michael Nebel
0a16cf68de
C#: Do not require that comments and type locations are in source in test.
2025-11-10 13:53:41 +01:00
Geoffrey White
4b212239e1
Rust: Remove unnecessary .(BlockExpr).
2025-11-10 12:35:39 +00:00
Michael Nebel
43118ecccc
C#: The extraction of the TypeMentions for return type and explicit interface return type for methods have changed order.
2025-11-10 13:26:07 +01:00
Michael Nebel
ded1328103
C#: Do not extract comments when scaffolding.
2025-11-10 13:26:05 +01:00
Tom Hvitved
de367eaad6
Update rust/ql/lib/codeql/rust/elements/internal/ElementImpl.qll
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-10 12:42:28 +01:00
Mathias Vorreiter Pedersen
7b052e2404
Merge branch 'main' into fix-cp-in-external-flow
2025-11-10 10:44:31 +00:00
Mathias Vorreiter Pedersen
29a294f8d0
C++: Bind the columns inside the predicate instead of relying on 'bindingset's. The repeated inlining caused by 'bindiingset's created some #shared predicates with repeated regex matching.
2025-11-10 10:21:12 +00:00
Mathias Vorreiter Pedersen
267a7f5229
Merge pull request #20779 from MathiasVP/fix-bad-magic
...
C++: Fix bad magic in `IRGuards`
2025-11-10 10:05:18 +00:00
Jeroen Ketema
eb3e86480f
Merge pull request #20784 from jketema/qual-fail
...
C++: Fix named qualifier dataset check error with decltypes
2025-11-10 10:36:47 +01:00
Paolo Tranquilli
3de598ef79
Merge pull request #20800 from github/redsun82/remove-macos-13
...
CI: update images in `build-ripunzip.yml`
2025-11-10 10:16:14 +01:00
Jeroen Ketema
0bf415acdf
C++: Add upgrade and downgrade scripts
2025-11-10 10:11:05 +01:00
Jeroen Ketema
b660625429
C++: Update dbscheme to address dataset check error
2025-11-10 10:11:04 +01:00
Jeroen Ketema
a3f26fd6bb
C++: Update expected test results after QL changes
2025-11-10 10:11:03 +01:00
Jeroen Ketema
f9554e1542
C++: Give proper getNames to more types and fix QLdoc
2025-11-10 10:11:01 +01:00
Paolo Tranquilli
7fb0e212b2
Make default refs valid on PR checks
...
Set default versions for ripunzip and openssl in the workflow.
2025-11-10 10:09:16 +01:00
Paolo Tranquilli
2ff4af9ede
Update default versions in build-ripunzip.yml
2025-11-10 09:56:52 +01:00
Paolo Tranquilli
cd3b29f249
Update OS versions in ripunzip workflow
2025-11-10 09:54:10 +01:00
Paolo Tranquilli
63a2088ae0
Add pull_request trigger for ripunzip workflow
2025-11-10 09:53:19 +01:00
Paolo Tranquilli
fe690c90d5
Fix typo in workflow name
2025-11-10 09:52:14 +01:00
Paolo Tranquilli
da966fc799
CI: remove deprecated macos-13 image
2025-11-10 09:50:43 +01:00
Tom Hvitved
c81f5f5190
Rust: Remove elements superseded by attribute macro expansions
2025-11-10 09:18:58 +01:00
Tom Hvitved
74dd515c67
Merge pull request #20790 from hvitved/codegen/raw-child
...
Codegen: Add `Raw::getImmediateChild` and `Synth::getSynthParent`
2025-11-10 09:14:16 +01:00
Tom Hvitved
a8a799c919
Swift: Run codegen
2025-11-09 20:41:26 +01:00
Tom Hvitved
0bf458a56f
Rust: Run codegen
2025-11-09 20:40:13 +01:00
Tom Hvitved
d77b35c5d2
Codegen: Add Raw::getImmediateChild and Synth::getSynthParent
2025-11-09 20:39:38 +01:00
Mathias Vorreiter Pedersen
dfdc2a6a15
C++: Delete an incorrect comment.
2025-11-08 16:45:45 +00:00
Mathias Vorreiter Pedersen
3d6b3a31ac
C++: Also join on the 'namespace'.
2025-11-08 16:45:39 +00:00
Mathias Vorreiter Pedersen
bfe2b7dc44
C++: Use the new predicate to remove a cartesian-like join.
2025-11-08 16:43:43 +00:00
Mathias Vorreiter Pedersen
a922d5099f
C++: Factor out some conjuncts from 'interpretElement0' and into a new predicate.
2025-11-08 16:42:16 +00:00
Mathias Vorreiter Pedersen
74b774eec5
Merge pull request #20769 from MathiasVP/add-more-flow-models
...
C++: Add a few more models
2025-11-08 16:39:29 +00:00
Michael B. Gale
dbadb6f738
Merge pull request #20781 from github/post-release-prep/codeql-cli-2.23.4
...
Post-release preparation for codeql-cli-2.23.4
2025-11-07 19:07:21 +00:00
github-actions[bot]
10ae374a82
Post-release preparation for codeql-cli-2.23.4
2025-11-07 18:18:09 +00:00
Mathias Vorreiter Pedersen
6a2debba96
C++: Fix bad magic.
2025-11-07 17:38:18 +00:00
Mathias Vorreiter Pedersen
56b9566299
C++: Fix mistakes in models of internal strcat and strcpy functions.
2025-11-07 17:29:48 +00:00
Mathias Vorreiter Pedersen
f163d015d5
C++: Clean up comments.
2025-11-07 17:27:25 +00:00
Geoffrey White
61481b51e7
Rust: Change note.
2025-11-07 16:55:35 +00:00
Nick Rolfe
e32a5ca846
Go: add some overlay-related logging
2025-11-07 16:52:24 +00:00
Nick Rolfe
44654bdef6
Go: avoid overlay-discarding @file entities
...
...since they are shared between base and overlay
2025-11-07 16:52:22 +00:00
Nick Rolfe
734cba7b9c
Go: add discard predicates for XML entities
...
This is adapted from the implementation for Java.
Since the HTML/XML extractor is not (yet) incremental, it will extract
files that were not in the diff. These discard predicates are intended
to cope with that, while also being robust against a future version
where the extractor *is* overlay-aware.
2025-11-07 16:52:21 +00:00
Nick Rolfe
10fa1d650d
Go: be consistent in replacement of backslashes in file labels
2025-11-07 16:52:20 +00:00
Nick Rolfe
e4c9bb3c5c
Go: enable overlay compilation
2025-11-07 16:52:19 +00:00
Nick Rolfe
50e01283da
Go: overlay workaround for cgo-processed files
2025-11-07 16:52:17 +00:00
Nick Rolfe
5aaed8941a
Go: pass source root from autobuilder to extractor
...
This ensures the extractor can resolve the relative paths for files
changed in the overlay.
2025-11-07 16:52:16 +00:00
Nick Rolfe
dd4f27868e
Go: apply path transformer for file TRAP labels
2025-11-07 16:52:15 +00:00
Nick Rolfe
4c009d5bc9
Go: implement overlay discarding for @locatable
2025-11-07 16:52:14 +00:00
Nick Rolfe
aff874e835
Go: merge with incoming path transformer when setting GOPATH
2025-11-07 16:52:12 +00:00
Nick Rolfe
99236f7877
Go: skip overlay extraction of unchanged go.mod files
2025-11-07 16:52:10 +00:00
Nick Rolfe
604df2125d
Go: implement basic overlay extraction
...
When in overlay mode, extractFile will exit early if the file isn't in
the list of files that changed since the base was extracted.
2025-11-07 16:52:08 +00:00
Nick Rolfe
05e5502680
Go: recognize CODEQL_PATH_TRANSFORMER env var
2025-11-07 16:52:07 +00:00
Nick Rolfe
4a325986e4
Go: add extractor pack field indicating overlay support
2025-11-07 16:52:06 +00:00
Nick Rolfe
c91e5618a4
Go: add dbscheme relations for overlay support
2025-11-07 16:52:05 +00:00
Michael Nebel
9d300e3ad3
C#: Address comments in the QL implementation.
2025-11-07 15:52:37 +01:00
Michael Nebel
1657dfb551
C#: Remove expression population safeguard and guard creation of constructor initializer expressions.
2025-11-07 15:26:07 +01:00
Michael Nebel
7c670cdc3f
C#: Address review comments and make more early returns in Populate.
2025-11-07 14:50:20 +01:00
Geoffrey White
7e3ab99d6b
Rust: Add much more detailed code comments, since these are examples.
2025-11-07 13:48:03 +00:00
Geoffrey White
7b6e06e8de
Rust: Add simple constant password example.
2025-11-07 13:30:53 +00:00
Rasmus Wriedt Larsen
3c20b950a0
Merge pull request #20747 from felickz/patch-4
...
Add 'code-quality-extended' to query packs list
2025-11-07 14:25:54 +01:00
Idriss Riouak
7c2b1a291d
Merge pull request #20760 from github/idrissrio/codeowners-lang-coverage
...
CODEOWNERS: Add code-scanning-language-coverage team to all extractors
2025-11-07 08:44:11 +01:00
Geoffrey White
49aefe2110
Rust: Add simple SQL injection example.
2025-11-06 18:49:55 +00:00
Geoffrey White
6ce0a0d9df
Rust: Add example from the basic-query-for-rust-code.rst.
2025-11-06 17:50:59 +00:00
Geoffrey White
84b50606ed
Rust: Add example queries pack.
2025-11-06 17:33:15 +00:00
Mathias Vorreiter Pedersen
f0da0d98a2
C++: Add a few more models I noticed while here.
2025-11-06 17:00:19 +00:00
Mathias Vorreiter Pedersen
2b6a75f4ad
C++: Accept test changes.
2025-11-06 16:57:11 +00:00
Mathias Vorreiter Pedersen
1d5d272822
C++: Add a few more models.
2025-11-06 16:55:51 +00:00
Mathias Vorreiter Pedersen
0607100310
C++: Add tests with missing flow.
2025-11-06 16:54:54 +00:00
Michael Nebel
446a87713a
C#: Report more timing metrics to the console logger.
2025-11-06 15:17:45 +01:00
Tom Hvitved
000f33fcbf
Merge pull request #20765 from hvitved/rust/variable-if-let-guard
...
Rust: Handle variables introduced in if-let guards
2025-11-06 13:49:38 +01:00
Idriss Riouak
0d76d582b5
CODEOWNERS: Add Go-related folders for extractor and autobuilder
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2025-11-06 11:12:53 +01:00
Geoffrey White
b4b444de48
Merge pull request #20746 from geoffw0/mv3
...
Rust: Clean up some models
2025-11-06 10:07:43 +00:00
Geoffrey White
680870dbf3
Rust: Fix after merge.
2025-11-06 09:39:51 +00:00
Tom Hvitved
f8cde74eac
Merge pull request #20736 from github/copilot/add-constaccess-class
...
Rust: Add ConstAccess class with getConst() predicate
2025-11-06 10:25:06 +01:00
Geoffrey White
1ce787a185
Merge branch 'main' into mv3
2025-11-06 09:23:01 +00:00
Tom Hvitved
c80301d58a
Rust: Handle variables introduced in if-let guards
2025-11-05 19:46:54 +01:00
Geoffrey White
1e7acc5e1a
Merge branch 'main' into copilot/add-secure-cookie-test-cases
2025-11-05 17:53:02 +00:00
Jeroen Ketema
5eac0f7953
Merge pull request #20759 from jketema/swift-6.2.1
...
Swift: Update to Swift 6.2.1
2025-11-05 16:56:35 +01:00
Geoffrey White
62e77687ca
Rust: Move async_std::io models.
2025-11-05 15:09:39 +00:00
Jeroen Ketema
a79c383fd5
Swift: update load.bzl
2025-11-05 15:46:42 +01:00
Jeroen Ketema
6476f60cd4
Swift: Add change note
2025-11-05 15:44:20 +01:00
Jeroen Ketema
a19f49b2ac
Swift: Update resources
2025-11-05 15:41:00 +01:00
Tom Hvitved
db7b187961
Rust: Add more variables tests
2025-11-05 15:32:24 +01:00
Geoffrey White
e78018769b
Rust: Add the model file (missed on previous commits).
2025-11-05 12:50:26 +00:00
Geoffrey White
6e35cb9748
Rust: Change note.
2025-11-05 11:36:04 +00:00
Geoffrey White
ad24b7414e
Rust: Fix for Poem cookies defaulting secure.
2025-11-05 11:32:30 +00:00
Geoffrey White
99a369228b
Rust: Model poem cookie methods.
2025-11-05 11:14:40 +00:00
Michael Nebel
5ec0494467
Merge pull request #20731 from michaelnebel/csharp/updatedependencies
...
C#: Update extractor package dependencies.
2025-11-05 11:58:48 +01:00
Michael B. Gale
046db0419f
Merge pull request #20758 from github/post-release-prep/codeql-cli-2.23.4
...
Post-release preparation for codeql-cli-2.23.4
2025-11-05 10:45:51 +00:00
Owen Mansel-Chan
85175f6d18
Merge pull request #20714 from owen-mc/java/pretty-print-models-quantum-nonce-reuse
...
Java: Pretty print models in nonce reuse test in experimental/quantum
2025-11-05 09:53:21 +00:00
Anders Schack-Mulligen
02fd1dcccd
Merge pull request #20738 from aschackmull/csharp/guards-misc
...
C#: Misc Guards-related cleanup.
2025-11-05 10:22:07 +01:00
idrissrio
51475df5a9
CODEOWNERS: Add code-scanning-language-coverage team to all extractors
2025-11-05 10:04:16 +01:00
Jeroen Ketema
68cd9ab3ab
Swift: Update to Swift 6.2.1
2025-11-05 09:33:06 +01:00
Jeroen Ketema
5d9d6b9a00
Merge pull request #20757 from jketema/swift-doc-update
...
Swift: Update supported versions in the documentation
2025-11-05 09:27:54 +01:00
Geoffrey White
ff06181e4b
Rust: We actually want barriers on set_secure(false) as well as set_secure(true), to prevent excessive flow paths.
2025-11-04 19:30:35 +00:00
Geoffrey White
5fed5a278e
Rust: It turns out Poem defaults 'secure' to true.
2025-11-04 18:37:20 +00:00
Geoffrey White
7383e4ff23
Rust: Test for another edge cases supported by two of the libraries.
2025-11-04 18:25:02 +00:00
Chad Bentz
aac10c1efb
Merge branch 'main' into patch-4
2025-11-04 13:13:50 -05:00
github-actions[bot]
4014df9a6e
Post-release preparation for codeql-cli-2.23.4
2025-11-04 17:57:52 +00:00
Geoffrey White
21274d3d76
Rust: Add tests of poem CookieConfig.
2025-11-04 15:14:00 +00:00
Geoffrey White
e5933d0c54
Rust: Add test cases with cookie builders.
2025-11-04 15:13:31 +00:00
Jeroen Ketema
a29c9af4a7
Update swift/third_party/resources/updating.md
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-04 16:00:23 +01:00
Jeroen Ketema
41bf91072d
Swift: Update supported versions in the documentation
...
Also document that we need to update the supported versions, so we don't forget
it next time around.
2025-11-04 15:56:39 +01:00
Anders Schack-Mulligen
7ab25b593d
C#: Change note.
2025-11-04 15:43:49 +01:00
yoff
f6eabc278a
Merge pull request #20722 from github/tausbn/python-move-points-to-predicates-to-legacy-module
...
Python: Move `ControlFlowNode`, `Expr`, and `Module` points-to to legacy module
2025-11-04 15:40:37 +01:00
Geoffrey White
55cf375886
Rust: Add the cookies to jars, indicating that they're ready for use.
2025-11-04 13:10:33 +00:00
Tom Hvitved
50552da4d8
Rust: Handle unqualified UseTrees in path resolution
2025-11-04 13:57:33 +01:00
Geoffrey White
7fe4877ddd
Rust: Update test annotations.
2025-11-04 12:36:56 +00:00
Michael Nebel
d95ebc77ae
C#: Add using directives and type mentions as star entities.
2025-11-04 13:28:29 +01:00
Michael Nebel
504bb9c4a1
C#: Only scaffold assemblies in overlay mode, only extract expressions when not scaffolding and only extract attributes when they are in source code in overlay mode.
2025-11-04 13:28:28 +01:00
Michael Nebel
1d2f1545d6
C#: Add change-note.
2025-11-04 13:28:26 +01:00
Michael Nebel
04d33cbad7
C#: Add discarding for diagnostics and extractor messages.
2025-11-04 13:28:24 +01:00
Michael Nebel
8927b0a350
C#: Simplify the discarding and also discard type mentions and comments.
2025-11-04 13:28:21 +01:00
Michael Nebel
40035d2e82
C#: Add a locatable type to the dbscheme.
2025-11-04 13:28:19 +01:00
Michael Nebel
8a344215b9
C#: Add QL overlay tests.
2025-11-04 13:28:17 +01:00
Michael Nebel
121c1500ca
C#: Define discarding predicates for expressions, statements, locations and some named TRAP entities.
2025-11-04 13:28:14 +01:00
Michael Nebel
76ac2dff26
C#: Write overlay metadata at end of extraction.
2025-11-04 13:28:12 +01:00
Michael Nebel
61f6512c74
C#: Sprinkle uses of OnlyScaffold to extract less when in overlay mode.
2025-11-04 13:28:10 +01:00
Michael Nebel
cab9d81376
C#: Add unit test.
2025-11-04 13:28:07 +01:00
Michael Nebel
aa805580e3
C#: Add functionality to detect overlay mode and integrate in extraction context.
2025-11-04 13:28:05 +01:00
Michael Nebel
9026a5a82a
C#: Turn on overlay support in codeql-extractor.yml.
2025-11-04 13:28:03 +01:00
Michael Nebel
cfb68436f2
C#: Add upgrade- and downgrade scripts.
2025-11-04 13:28:00 +01:00
Michael Nebel
b48ce8dec2
C#: Add overlay builtins to the dbscheme.
2025-11-04 13:27:58 +01:00
Michael Nebel
bcc6234a60
C#: Fix bad join due to overlay compilation.
2025-11-04 13:27:56 +01:00
Michael Nebel
b600255835
C#: Enable overlay compilation in lib/qlpack.yml.
2025-11-04 13:27:53 +01:00
Asger F
d297dcd9e9
Merge pull request #20752 from asgerf/actions/dont-fail-if-no-js
...
Actions: don't fail if no JS/TS code was found
2025-11-04 13:12:12 +01:00
Asger F
81bb07a7ba
JS: Fix check to account for override in tests
...
The code was written on the assumption that 'seenCode' implies 'seenFiles' but the unit test override 'hasSeenCode()' to always return true. Which meant we would start taking this branch in the unit tests.
2025-11-04 11:46:02 +01:00
Geoffrey White
077bcf6b92
Merge pull request #20740 from geoffw0/rustbarriers
...
Rust: Add numeric type barriers for three queries
2025-11-04 10:08:46 +00:00
Asger F
105213df03
Update javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-04 09:51:56 +01:00
Asger F
c4d23d16ed
Actions: dont fail if no JS/TS code was found
2025-11-04 09:37:33 +01:00
copilot-swe-agent[bot]
ee3d57ef3c
Update test cases with correct APIs and run CodeQL test
...
Co-authored-by: geoffw0 <40627776+geoffw0@users.noreply.github.com >
2025-11-03 17:38:25 +00:00
copilot-swe-agent[bot]
8f02ab107c
Add test cases for actix-web, poem, and http-types cookie secure attribute
...
Co-authored-by: geoffw0 <40627776+geoffw0@users.noreply.github.com >
2025-11-03 17:16:04 +00:00
copilot-swe-agent[bot]
2497d8c329
Initial plan
2025-11-03 17:11:12 +00:00
Geoffrey White
56e98c45ec
Rust: Accept trivial changes to test .expected files.
2025-11-03 17:08:22 +00:00
Chad Bentz
20e23f89a2
Merge pull request #2 from felickz/copilot/fix-1760475-601388369-59cd8e3d-0895-49ec-9025-a9864c8e5367
...
Fix generate-code-scanning-query-list.py to handle empty code-quality-extended suites
2025-11-03 11:55:55 -05:00
copilot-swe-agent[bot]
0fc25029bb
Revert query file change and fix script to handle empty code-quality-extended suites
...
Co-authored-by: felickz <1760475+felickz@users.noreply.github.com >
2025-11-03 16:46:56 +00:00
copilot-swe-agent[bot]
7b6b703d06
Add quality tag to Actions maintainability query
...
Co-authored-by: felickz <1760475+felickz@users.noreply.github.com >
2025-11-03 16:31:04 +00:00
copilot-swe-agent[bot]
4346c61e97
Initial plan
2025-11-03 16:19:07 +00:00
Chad Bentz
50597685a2
Add 'code-quality-extended' to query packs list
2025-11-03 10:55:36 -05:00
Geoffrey White
687cc6f544
Rust: Re-arrange models slightly.
2025-11-03 14:54:13 +00:00
Geoffrey White
5af83787d8
Rust: Move a few more models.
2025-11-03 13:35:27 +00:00
Geoffrey White
144fa7dd39
Rust: Deduplicate some models.
2025-11-03 13:33:37 +00:00
Geoffrey White
8a2c117a0e
Rust: Move models between core.model.yml and alloc.model.yml.
2025-11-03 13:31:25 +00:00
Geoffrey White
1b435ed07d
Rust: Move another model file into subdirectory.
2025-11-03 13:26:37 +00:00
Geoffrey White
4b3a1c5abb
Rust: Move a model file into subdirectory.
2025-11-03 13:24:28 +00:00
Tom Hvitved
0ca62ca5b6
Fix copilot implementation
2025-11-03 14:15:16 +01:00
Michael Nebel
c1ede51fe8
C#: Add change note.
2025-11-03 12:52:27 +01:00
Geoffrey White
c381153125
Apply suggestions from code review
...
Co-authored-by: Tom Hvitved <hvitved@github.com >
2025-11-03 09:38:43 +00:00
Tom Hvitved
39dd3acd76
Rust: More path resolution tests
2025-11-03 10:34:50 +01:00
aegilops
d1eceee9d4
Fixed format/docs issues
2025-10-31 18:19:27 +00:00
aegilops
26087f6060
Added java-kotlin Sensitive Logging barriers (substrings)
2025-10-31 17:56:04 +00:00
Geoffrey White
8548c167be
Rust: Autoformat.
2025-10-31 17:30:04 +00:00
Geoffrey White
34f75952d0
Rust: Change note.
2025-10-31 16:40:02 +00:00
Geoffrey White
33efed92b8
Rust: Add integral type barrier for Regex injection.
2025-10-31 16:37:10 +00:00
Geoffrey White
2d4369ac6c
Rust: Add numeric type barrier for log injection.
2025-10-31 16:32:32 +00:00
Geoffrey White
52397f0ce0
Rust: Add numeric type barrier for SQL injection.
2025-10-31 16:25:44 +00:00
Geoffrey White
6433bec699
Rust: Add a test for BuiltinTypes.
2025-10-31 16:24:51 +00:00
Geoffrey White
47019f7f24
Rust: Define NumericType, IntegralType and FloatingPointType in Builtins.qll.
2025-10-31 16:24:39 +00:00
Geoffrey White
aaa3b1bcb4
Rust: Add a couple of new test cases.
2025-10-31 16:20:52 +00:00
Anders Schack-Mulligen
eb93e8ed41
C#: Deprecate controlsBlock.
2025-10-31 14:22:11 +01:00
Anders Schack-Mulligen
4de564eb4e
C#: Replace reference to controlsBlock and simplify.
2025-10-31 14:17:35 +01:00
Anders Schack-Mulligen
f6dfcf1ca4
C#: Delete splitting-aware controls implementation.
2025-10-31 14:17:35 +01:00
Anders Schack-Mulligen
ab2c2ef6ae
C#: Update isUnreachableInCall in dataflow to use Guards library.
2025-10-31 14:17:34 +01:00
copilot-swe-agent[bot]
ad51b61a2b
Fix trailing whitespace in documentation comments
...
Co-authored-by: hvitved <3667920+hvitved@users.noreply.github.com >
2025-10-31 13:07:04 +00:00
copilot-swe-agent[bot]
6011ecbef4
Add ConstAccess class with getConst() predicate and test cases
...
Co-authored-by: hvitved <3667920+hvitved@users.noreply.github.com >
2025-10-31 13:01:25 +00:00
copilot-swe-agent[bot]
09bef0f4df
Initial plan
2025-10-31 12:51:08 +00:00
Michael Nebel
ee6dd0f771
C#: Update integration tests expected output.
2025-10-31 10:37:49 +01:00
Michael Nebel
ad02559b48
C#: Fix Binlog API breaking change.
2025-10-31 09:36:22 +01:00
Michael Nebel
0484be6b5b
C#: Update lock files.
2025-10-31 09:16:35 +01:00
Michael Nebel
f410c3c93a
C#: Update Microsft.Build, Roslyn and Binlog dependencies.
2025-10-31 09:16:07 +01:00
Taus
e702d3bfc8
Python: Add change note
...
I wasn't entirely sure if this should be classified as `deprecated` or
`breaking`, but seeing as these changes technically _could_ break
existing queries (requiring a small rewrite), I opted for the latter.
2025-10-30 15:16:51 +00:00
Taus
820d8e76c4
Python: Remove points-to from Module
2025-10-30 13:59:30 +00:00
Taus
b93ce98612
Python: Remove points-to from Expr
2025-10-30 13:58:59 +00:00
Taus
b434ce460e
Python: Get rid of getLiteralValue
...
This had only two uses in our libraries, so I simply inlined the
predicate body in both places.
2025-10-30 13:30:04 +00:00
Taus
fef08afff9
Python: Remove points-to to from ControlFlowNode
...
Moves the existing points-to predicates to the newly added class
`ControlFlowNodeWithPointsTo` which resides in the `LegacyPointsTo`
module.
(Existing code that uses these predicates should import this module, and
references to `ControlFlowNode` should be changed to
`ControlFlowNodeWithPointsTo`.)
Also updates all existing points-to based code to do just this.
2025-10-30 13:30:04 +00:00
Owen Mansel-Chan
f3f256d070
Add back import that was accidentally deleted from options file
2025-10-29 12:26:19 +00:00
Owen Mansel-Chan
7ad570b5f5
Pretty print models in test
...
Otherwise the test output changes when unrelated models are added.
2025-10-29 12:03:32 +00:00
Owen Mansel-Chan
fe6b4330de
Fix test import
2025-10-28 23:14:23 +00:00
Owen Mansel-Chan
74dbafa553
Merge branch 'main' into java-mad-test
2025-10-28 13:28:35 +00:00
Napalys Klicius
9c70ae04fb
Add change note
2025-10-22 11:48:16 +00:00
Napalys Klicius
91b0aaa631
Java: Lower security-severity for Insecure Cookie query to 4.0
2025-10-22 11:45:04 +00:00
Napalys Klicius
fa47174013
CWE-020: Lower security-severity for OverlyLargeRange queries to 4.0
2025-10-22 11:32:33 +00:00
Napalys Klicius
7b6720ce2c
JS: Align DOM XSS query severity with other XSS queries
2025-10-22 11:30:34 +00:00
Kevin Stubbings
88f9f90236
Fix merge problems
2025-10-06 22:41:16 -07:00
Kevin Stubbings
0d3b65a35b
Resolved merge conflicts and completed merge
2025-10-06 22:37:28 -07:00
Alex Eyers-Taylor
f5134e3125
Java: Eliminate pointless use of PathNodes over DataFlow::Node
...
The use of PathNode prevents these from being overlay informed.
2025-09-16 17:20:44 +01:00
Kevin Stubbings
9c63033d45
Fix tests
2024-11-20 16:53:39 +00:00
Kevin Stubbings
981f67598c
Formatting
2024-11-20 07:51:11 +00:00
Kevin Stubbings
ddcf852d3f
Add taint steps
2024-11-20 01:07:03 +00:00
Kevin Stubbings
58e4a40323
Merge branch 'github:main' into java-mad-test
2024-11-19 13:54:26 -08:00
Kevin Stubbings
999fcca8f3
Add summary steps
2024-10-15 23:24:41 +00:00
Kevin Stubbings
f0560458af
Finished up
2024-09-27 19:24:40 +00:00
Kevin Stubbings
1b5299de5a
Forgot something
2024-09-25 22:00:42 +00:00
Kevin Stubbings
6445074fea
Fixed but errors still
2024-09-25 21:46:52 +00:00
Kevin Stubbings
a8efb92b9b
Simple Test
2024-09-25 17:27:41 +00:00
Kevin Stubbings
d99f552cb3
Test Issues
2024-09-25 08:08:02 +00:00
Kevin Stubbings
0a697e49c1
Add MaD
2024-09-24 17:29:25 -07:00