Chris Smowton
a76ba2ef8a
Update supported Java version
2025-03-04 10:04:35 +00:00
Simon Friis Vindum
0d1865d718
Merge pull request #18872 from paldepind/rust-ref-mut
...
Rust: Allow SSA and some data flow for mutable borrows
2025-03-04 09:25:18 +01:00
Michael Nebel
96c0ca87fc
Merge pull request #18865 from carldybdahl-microsoft/csharp/path-combine
...
Add CodeQL recommendation against Path.Combine
2025-03-04 08:51:04 +01:00
Carl Dybdahl
2f7cdf1bfa
Improvements
2025-03-03 15:32:15 +01:00
Carl Dybdahl
b3447959fa
Match autoformatting, add QLDoc references
2025-03-03 15:32:15 +01:00
Carl Dybdahl
d371723fe4
Fix test
2025-03-03 15:32:15 +01:00
Carl Dybdahl
d82295c54a
Add QLDoc
2025-03-03 15:32:15 +01:00
Carl Dybdahl
aa6779f19f
Add changelog
2025-03-03 15:32:15 +01:00
Carl Dybdahl
35fd4d226f
Oops
2025-03-03 15:32:15 +01:00
Carl Dybdahl
44e6691e6d
Add implementation and tests
2025-03-03 15:32:15 +01:00
Geoffrey White
7f56c67544
Merge pull request #18837 from geoffw0/overflowbuffer
...
C++: Improve and promote cpp/overflow-buffer
2025-03-03 14:17:12 +00:00
Chris Smowton
ee08e8b1fb
Merge pull request #18888 from github/dbartol/actions-executable-bit
...
Set the executable bit on the scripts in the Actions extractor
2025-03-03 08:53:50 +00:00
Simon Friis Vindum
1225c5c828
Rust: Accept changes
2025-03-03 09:44:24 +01:00
Simon Friis Vindum
d8d882958d
Merge branch 'main' into rust-ref-mut
2025-03-03 09:19:08 +01:00
Simon Friis Vindum
757067216d
Merge pull request #18896 from paldepind/rust-model-ptr-rw
...
Rust: Model pointer read and write functions
2025-03-03 09:14:39 +01:00
Geoffrey White
7169c4be48
C++: Another attempt to make the fix more solid. I believe it can't produce negative numbers now.
2025-02-28 14:21:58 +00:00
Simon Friis Vindum
c1ee20b2b9
Rust: Update generated models for Rust built-in libraries
2025-02-28 13:40:43 +01:00
Geoffrey White
2f2c9f8943
Merge pull request #18895 from geoffw0/docimplicit
...
Data flow: Improve doc for defaultImplicitTaintRead.
2025-02-28 12:18:11 +00:00
Chris Smowton
4f810df53c
Merge pull request #18861 from smowton/smowton/admin/jdk24-upgrade-test-expectations
...
Java: Update test expectations for JDK24 upgrade
2025-02-28 11:56:49 +00:00
Chris Smowton
ad732a8f57
Docs: note JDK 24 support
2025-02-28 11:23:11 +00:00
Chris Smowton
79e581f555
Change note
2025-02-28 11:23:10 +00:00
Chris Smowton
1577b40b45
Accept test changes
2025-02-28 11:23:07 +00:00
Chris Smowton
178e90c2f1
Update test expectations for JDK24 upgrade
2025-02-28 11:23:06 +00:00
Owen Mansel-Chan
94505af49e
Merge pull request #18891 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2025-02-28 11:14:06 +00:00
Chris Smowton
ec2982f3df
Merge branch 'main' into workflow/coverage/update
2025-02-28 10:48:08 +00:00
Simon Friis Vindum
c4773c42c4
Rust: Model pointer read and write functions
2025-02-28 11:44:11 +01:00
Simon Friis Vindum
bc651af319
Merge branch 'main' into rust-ref-mut
2025-02-28 11:42:06 +01:00
Simon Friis Vindum
5b657035d2
Rust: Add test for models of pointer read and write
2025-02-28 11:19:41 +01:00
Michael Nebel
7015a0af38
Merge pull request #18893 from michaelnebel/csharp/pindotnetfornugetconfigerror
...
C#: Pin .NET for the integration test standalone_dependencies_nuget_c…
2025-02-28 10:56:10 +01:00
Simon Friis Vindum
518f164c61
Rust: Address PR comments
2025-02-28 10:49:27 +01:00
Geoffrey White
1b35c0b7c9
Data flow: Improve doc for defaultImplicitTaintRead.
2025-02-28 09:43:57 +00:00
Paolo Tranquilli
3c7fe264d1
Merge pull request #18881 from github/redsun82/rust-fix-test
...
Rust: fix dataflow test failure by pinning the toolchain version
2025-02-28 10:17:04 +01:00
Michael Nebel
5af7630841
C#: Pin .NET for the integration test standalone_dependencies_nuget_config_error.
2025-02-28 10:07:11 +01:00
Paolo Tranquilli
b73e8dc74b
Merge branch 'main' into redsun82/rust-fix-test
2025-02-28 09:31:25 +01:00
github-actions[bot]
ce82cb6424
Add changed framework coverage reports
2025-02-28 00:21:17 +00:00
Geoffrey White
998bec1efb
C++: Fix the bug.
2025-02-27 21:24:07 +00:00
Geoffrey White
51d916263d
C++: Another test.
2025-02-27 21:19:05 +00:00
Dave Bartolomeo
ac555ff0a3
Set the executable bit on the scripts in the Actions extractor
2025-02-27 20:06:14 +00:00
Owen Mansel-Chan
93b11146d8
Merge pull request #18886 from owen-mc/go/gitignore-make-test-artifacts
...
Go: Add .gitignore for artifacts of `make test`
2025-02-27 19:47:28 +00:00
Dave Bartolomeo
6c0aadfb57
Merge pull request #18887 from github/dbartol/immutable-actions
...
Move list of immutable actions into internal model pack for now.
2025-02-27 14:04:01 -05:00
Edward Minnix III
28770c526d
Merge pull request #18863 from egregius313/egregius313/go/mad/database/rqlite
...
Go: Add `database` sources for the `gorqlite` package
2025-02-27 12:41:39 -05:00
Dave Bartolomeo
2dde9ab6b9
Move immutable-actions-list pack to codeql org
2025-02-27 12:30:11 -05:00
Dave Bartolomeo
abc174858e
Remove octokit as trusted Actions owner
2025-02-27 12:15:40 -05:00
Dave Bartolomeo
160346f51b
Add warnOnImplicitThis: true
2025-02-27 12:05:00 -05:00
Dave Bartolomeo
4e47da463e
Add change note
2025-02-27 12:04:09 -05:00
Owen Mansel-Chan
e08ae22ceb
Merge pull request #18885 from owen-mc/go/change-note/1.24
...
Go: Add belated change note for go 1.24
2025-02-27 17:00:13 +00:00
Dave Bartolomeo
86c5d9f1cd
Move list of immutable actions into internal model pack for now.
2025-02-27 11:48:27 -05:00
Geoffrey White
3d19e2ad4a
C++: Static buffer overflow change note.
2025-02-27 16:46:53 +00:00
Owen Mansel-Chan
59e94521bc
Add .gitignore for artifacts of make test
2025-02-27 16:34:38 +00:00
Paolo Tranquilli
855dc09ea5
Merge branch 'main' into redsun82/rust-fix-test
2025-02-27 17:19:01 +01:00
Paolo Tranquilli
70bdeec3d5
Rust: add rust-src to required components
2025-02-27 17:18:46 +01:00
Owen Mansel-Chan
76ad107c63
Merge pull request #18883 from owen-mc/go/get-location
...
Go: Use `getLocation` instead of `hasLocationInfo`
2025-02-27 16:07:37 +00:00
Owen Mansel-Chan
332f94e8a2
Add belated change note for go 1.24
2025-02-27 16:00:40 +00:00
Paolo Tranquilli
beeb417281
Rust: fix toolchain version for tests
2025-02-27 15:39:19 +01:00
Owen Mansel-Chan
a94854bd72
Add change note
2025-02-27 13:32:48 +00:00
Owen Mansel-Chan
f322cb7968
Use getLocation instead of hasLocationInfo
2025-02-27 13:32:45 +00:00
Alexander Eyers-Taylor
f7d95e4dcb
Merge pull request #18874 from github/alexet/simplify-interpretoutput
...
Java: Simplify interpretOutput
2025-02-27 12:31:39 +00:00
Owen Mansel-Chan
ca0b363be3
Replace DbLocation with Location
2025-02-27 11:44:20 +00:00
Geoffrey White
f0951823ad
Merge pull request #18777 from geoffw0/okerr
...
Rust: Model Result.ok and Result.err.
2025-02-27 10:45:32 +00:00
Asger F
3487226116
Merge pull request #18864 from asgerf/test-rank
...
Test: Ensure total ranking order to avoid ambiguous results
2025-02-27 09:39:08 +01:00
Geoffrey White
c5284eb6fe
Merge branch 'main' into okerr
2025-02-27 08:35:26 +00:00
Ed Minnix
4f204ee40f
Add test for QueryResult::Map
2025-02-26 13:26:23 -05:00
Alex Eyers-Taylor
5e3ccc0cca
Java: Simplify interpretOutput
2025-02-26 18:20:46 +00:00
Geoffrey White
1354bebd7c
C++: Fix an issue with padding.
2025-02-26 17:43:25 +00:00
Geoffrey White
dbab845295
C++: Effect of this branch on the new test.
2025-02-26 17:18:48 +00:00
Geoffrey White
abb88e3dba
C++: Add a test file that was internal (results as on main).
2025-02-26 17:14:43 +00:00
Geoffrey White
c41add896f
C++: Accept regressions in SAMATE based test cases.
2025-02-26 16:34:10 +00:00
Owen Mansel-Chan
23fb139a87
Merge pull request #18870 from owen-mc/go/docs/update-supported-versions-compilers
...
Go: Document support for Go 1.24
2025-02-26 16:18:38 +00:00
Owen Mansel-Chan
91dd9f5d95
Merge pull request #18868 from owen-mc/go/use-more-db-locations
...
Go: Slightly adjust some location info to match locations that are in the database
2025-02-26 16:13:33 +00:00
Simon Friis Vindum
476fef49da
Rust: Allow SSA and some data flow for mutable borrows
2025-02-26 16:00:52 +01:00
Chris Smowton
6857954569
Merge pull request #18839 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2025-02-26 13:50:11 +00:00
Owen Mansel-Chan
bb7d227095
Document support for Go 1.24
2025-02-26 13:34:59 +00:00
Simon Friis Vindum
51ae7c6b8c
Rust: Reorganize pointers tests and add additional tests
2025-02-26 13:51:55 +01:00
Owen Mansel-Chan
4c28dbdc50
Add change note
2025-02-26 12:47:56 +00:00
Owen Mansel-Chan
a11692707e
Use location of basic block for SsaPhiNode
2025-02-26 12:38:08 +00:00
Geoffrey White
0ef4c6f954
Merge branch 'main' into okerr
2025-02-26 12:33:39 +00:00
Owen Mansel-Chan
6dad937ce2
Use location of basic block for SsaImplicitDefinition
2025-02-26 12:29:52 +00:00
Owen Mansel-Chan
052792f7c4
Use location of stmt for EvalImplicitTrueInstruction
2025-02-26 12:28:59 +00:00
Owen Mansel-Chan
90ea10e0b7
Use location of elt for ImplicitLiteralElementIndexInstruction
2025-02-26 12:23:34 +00:00
Owen Mansel-Chan
f34c3b16a2
Use location of control flow root for ExitNode
2025-02-26 12:20:41 +00:00
Owen Mansel-Chan
baa4c509ca
Use location of control flow root for EntryNode
2025-02-26 12:16:38 +00:00
Owen Mansel-Chan
561a681e90
Use location of condition for ConditionGuardNode
2025-02-26 12:11:16 +00:00
Owen Mansel-Chan
759f0583cb
Use location of first node for BasicBlock
2025-02-26 12:00:56 +00:00
Chris Smowton
9458f073c6
Merge pull request #18867 from github/smowton/admin/avoid-pointless-test-runs
...
Don't run Go tests on documentation changes
2025-02-26 11:34:56 +00:00
Chris Smowton
2961320f02
Don't run Go Mac & Win tests against documentation PRs
2025-02-26 11:02:04 +00:00
Chris Smowton
cd9a7ec6a8
Don't run Go tests on documentation changes
2025-02-26 10:56:59 +00:00
Chris Smowton
fc793fbc4d
Merge branch 'main' into workflow/coverage/update
2025-02-26 10:51:43 +00:00
Asger F
2a5ee847b8
Merge branch 'main' into test-rank
2025-02-26 10:00:25 +01:00
Asger F
6e53ebed47
Ensure total ranking order to avoid ambiguous results
2025-02-26 09:34:06 +01:00
Simon Friis Vindum
cc5179a35e
Merge pull request #18787 from paldepind/rust-core-std-models
...
Rust: Add generated models for standard libraries including core
2025-02-26 09:31:16 +01:00
Ed Minnix
7593def620
Model gorqlite package
2025-02-25 23:15:22 -05:00
github-actions[bot]
457af87435
Add changed framework coverage reports
2025-02-26 00:21:12 +00:00
Geoffrey White
a7ac6b137b
C++: Second change note.
2025-02-25 17:02:23 +00:00
Geoffrey White
7d7498ee32
C++: Avoid problems when a variable has multiple types.
2025-02-25 16:55:13 +00:00
Geoffrey White
812315df27
C++: Use existing getSize / getRootType to find more generous bounds for arrays inside classes (though it sometimes fails, costing us TPs).
2025-02-25 16:29:49 +00:00
Asger F
ff36d1916f
Merge pull request #18810 from asgerf/js/test-related-locations
...
Test: Add support for RelatedLocation tag and use in a JS query
2025-02-25 16:40:41 +01:00
Geoffrey White
07004bd6f9
C++: Test cases motivated by a real world FP.
2025-02-25 15:36:12 +00:00
Tamás Vajk
11d145131f
Merge pull request #18835 from tamasvajk/tamasvajk/csharp-ccr
...
Add queries to C# CCR suite
2025-02-25 16:20:35 +01:00
Asger F
baa7e35589
Merge pull request #18834 from Napalys/js/tanstack
...
JS: Support 'response' threat model and @tanstack/react-query
2025-02-25 16:16:06 +01:00
Simon Friis Vindum
26a96d9f65
Rust: Accept changes
2025-02-25 15:56:10 +01:00
Tom Hvitved
0522f3f694
Merge pull request #18856 from hvitved/rust/inline-expectations-update
...
Rust: Update some inline expectation comments
2025-02-25 15:28:28 +01:00
Jeroen Ketema
18a1ef55ea
Merge pull request #18859 from jketema/is-before
...
C++: Fix join-order problem with `isBefore`
2025-02-25 15:27:43 +01:00
Napalys
3360829a58
Updated change note with response threat model info.
...
Co-authored-by: Asgerf <asgerf@github.com >
2025-02-25 15:22:14 +01:00
Simon Friis Vindum
5c997859b0
Merge branch 'main' into rust-core-std-models
2025-02-25 15:07:29 +01:00
Anders Schack-Mulligen
994a8eea39
Merge pull request #18857 from aschackmull/ssa/refactor-df-integr
...
Ssa: Refactor the data flow integration module
2025-02-25 15:04:11 +01:00
Asger F
bb8f4529bf
Fix bug when RelatedLocation was used with a query ID
2025-02-25 14:52:32 +01:00
Asger F
5f2e5ab8c3
Rename file and ID to match .qlref and other query
2025-02-25 14:52:19 +01:00
Anders Schack-Mulligen
2c3b48946d
Merge pull request #18824 from aschackmull/java/basessa
...
Java: Switch BaseSSA to use shared SSA lib.
2025-02-25 14:23:46 +01:00
Anders Schack-Mulligen
28e96449e7
C#: Address review comment.
2025-02-25 14:12:53 +01:00
Napalys
bf77ffef37
Applied comment
...
Co-authored-by: Asgerf <asgerf@github.com >
2025-02-25 13:57:39 +01:00
Jonas Jensen
2edc9af1e0
Merge pull request #18848 from jbj/StaticInitializationVector-postprocess
...
Java: StaticInitializationVector with postprocess
2025-02-25 12:44:16 +01:00
Jeroen Ketema
7eca4b4d82
C++: Fix join-order problem with isBefore
...
Reported here: https://github.com/github/codeql/issues/17743
Without this change on the query provided by the user:
```
[2025-02-25 12:42:01] Evaluated non-recursive predicate quickquery::UnrealFunctionAnnotation.annotates/1#dispred#9cd6c269@c668c8tv in 23846ms (size: 20381473).
Evaluated relational algebra for predicate quickquery::UnrealFunctionAnnotation.annotates/1#dispred#9cd6c269@c668c8tv with tuple counts:
1 ~0% {0} r1 = CONSTANT()[]
27323 ~0% {2} | JOIN WITH `Location::Location.getEndLine/0#dispred#83af84ae#bf` CARTESIAN PRODUCT OUTPUT Rhs.0, Rhs.1
6162566035 ~0% {4} | JOIN WITH `Location::Location.getStartLine/0#d54f9e6c` CARTESIAN PRODUCT OUTPUT Lhs.0, Lhs.1, Rhs.0, Rhs.1
{4} | REWRITE WITH TEST InOut.1 < InOut.3
3894825644 ~5% {2} | SCAN OUTPUT In.2, In.0
73148692 ~0% {3} | JOIN WITH fun_decls_40#join_rhs ON FIRST 1 OUTPUT Lhs.1, Lhs.0, Rhs.1
73148692 ~0% {4} | JOIN WITH `Location::Location.getFile/0#dispred#d1f8b5d1` ON FIRST 1 OUTPUT Lhs.1, Rhs.1, Lhs.0, Lhs.2
864579 ~0% {2} | JOIN WITH `Location::Location.getFile/0#dispred#d1f8b5d1` ON FIRST 2 OUTPUT Lhs.2, Lhs.3
13010742 ~1% {2} | JOIN WITH macroinvocations_20#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1
20653781 ~0% {3} | JOIN WITH `Macro::MacroAccess.getOutermostMacroAccess/0#d58b05db_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, _, Lhs.1
20653781 ~4% {3} | REWRITE WITH Out.1 := 1
20381473 ~8% {2} | JOIN WITH macroinvocations_03#join_rhs ON FIRST 2 OUTPUT Lhs.0, Lhs.2
return r1
```
With this change:
```
[2025-02-25 12:43:10] Evaluated non-recursive predicate quickquery::UnrealFunctionAnnotation.annotates/1#dispred#9cd6c269@11bf8956 in 928ms (size: 20381473).
Evaluated relational algebra for predicate quickquery::UnrealFunctionAnnotation.annotates/1#dispred#9cd6c269@11bf8956 with tuple counts:
6873 ~3% {2} r1 = SCAN fun_decls OUTPUT In.4, In.0
6857 ~0% {3} | JOIN WITH `Location::Location.getStartLine/0#d54f9e6c` ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Rhs.1
6857 ~2% {3} | JOIN WITH `Location::Location.getFile/0#dispred#d1f8b5d1` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
6193961 ~0% {3} | JOIN WITH `Location::Location.getFile/0#dispred#d1f8b5d1_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
27389714 ~1% {4} | JOIN WITH macroinvocations_20#join_rhs ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Lhs.2, Rhs.1
27389714 ~1% {4} | JOIN WITH locations_default ON FIRST 1 OUTPUT Lhs.1, Lhs.2, Lhs.3, Rhs.4
{4} | REWRITE WITH TEST InOut.3 < InOut.1
13010742 ~1% {2} | SCAN OUTPUT In.2, In.0
20653781 ~0% {3} | JOIN WITH `Macro::MacroAccess.getOutermostMacroAccess/0#d58b05db_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, _, Lhs.1
20653781 ~4% {3} | REWRITE WITH Out.1 := 1
20381473 ~8% {2} | JOIN WITH macroinvocations_03#join_rhs ON FIRST 2 OUTPUT Lhs.0, Lhs.2
return r1
```
2025-02-25 12:39:11 +01:00
Asger F
92e1023d00
Update line numbers due to addition of new test code
2025-02-25 11:59:11 +01:00
Asger F
ae161f1654
Add meta-tests for inline expectation with related locations
2025-02-25 11:58:54 +01:00
Asger F
694f01ab78
Fix column count and add clarifying comment
2025-02-25 11:57:01 +01:00
Napalys
e2927b2fad
Updated tanstack to use API graph.
2025-02-25 11:48:44 +01:00
Geoffrey White
f406914258
Merge pull request #18701 from geoffw0/nth
...
Rust: Test and model some string and iterator methods
2025-02-25 10:42:49 +00:00
Anders Schack-Mulligen
b2a595596b
JS: Remove irrelevant comment.
2025-02-25 11:33:16 +01:00
Anders Schack-Mulligen
449150e6b5
JS: Accept fixed FP flow.
2025-02-25 10:42:21 +01:00
Anders Schack-Mulligen
ae3736bc25
C#: Accept test changes showing that we skip over useless input nodes.
2025-02-25 10:37:29 +01:00
Anders Schack-Mulligen
b1b72b73ed
SSA: Add qldoc.
2025-02-25 10:35:57 +01:00
Michael Nebel
a35510d937
Merge pull request #18849 from michaelnebel/csharp/tupledefaulttostring
...
C#: Proper handling of value tuples in `cs/call-to-object-tostring`.
2025-02-25 10:24:02 +01:00
Anders Schack-Mulligen
f00f2c6f47
SSA: Deprecate public SsaDefinitionExtNode and SsaInputNode.
2025-02-25 10:03:43 +01:00
Anders Schack-Mulligen
1f628d0f86
Ruby: Remove reference to SsaInputNode.
2025-02-25 10:01:57 +01:00
Anders Schack-Mulligen
95cbd21a62
Ruby: Accept test change following SSA bugfix.
...
This is a result of the commit "SSA: Fix bug in guards for ssa input
nodes."
2025-02-25 09:59:35 +01:00
Tom Hvitved
b40290683e
Rust: Update some inline expectation comments
2025-02-25 09:34:50 +01:00
Anders Schack-Mulligen
57c4fd6f25
JS: Combine phi reads and ssa input nodes into SynthReadNode class.
2025-02-25 09:23:53 +01:00
Owen Mansel-Chan
74a249597a
Merge pull request #18607 from owen-mc/java/xss-content-type-sanitizer
...
Java: Add XSS Sanitizer for `HttpServletResponse.setContentType` with safe values
2025-02-24 23:39:18 +00:00
Owen Mansel-Chan
0d994c1527
Merge pull request #18831 from owen-mc/go/join-order-fix-2
...
Go: Improve bad join order in guardingCall
2025-02-24 22:16:22 +00:00
Geoffrey White
6437bd692e
Merge pull request #18851 from geoffw0/typo
...
Fix typo in shared DataFlowImplConsistency.qll
2025-02-24 18:45:09 +00:00
Alexander Eyers-Taylor
ddfb16899a
Merge pull request #18828 from alexet/alexet/fix-flakey-join-order
...
CPP: Prevent forced bad join order which is saved by context.
2025-02-24 17:54:16 +00:00
Simon Friis Vindum
6353dbf3f5
Merge branch 'main' into rust-core-std-models
2025-02-24 16:05:08 +01:00
Anders Schack-Mulligen
22b3dc8f43
Ruby: Remove getDefinitionExt references.
2025-02-24 15:25:53 +01:00
Paolo Tranquilli
22074afafb
Merge pull request #18847 from github/redsun82/rust-trait-path
...
Rust: fix `<X as Y>` path extraction
2025-02-24 15:10:41 +01:00
Geoffrey White
24411b61e9
Fix typo.
2025-02-24 13:59:22 +00:00
Anders Schack-Mulligen
7499df43d0
Rust: Remove getDefinitionExt reference.
2025-02-24 14:27:17 +01:00
Anders Schack-Mulligen
0583d85f20
C#: Remove getDefinitionExt references.
2025-02-24 14:22:59 +01:00
Paolo Tranquilli
d8dad7dff0
Merge branch 'main' into redsun82/rust-trait-path
2025-02-24 14:12:53 +01:00
Michael Nebel
e8f86e41f4
C#: Add change note.
2025-02-24 13:58:55 +01:00
Michael Nebel
97f9f0ccc5
C#: Update test expected output.
2025-02-24 13:53:50 +01:00
Michael Nebel
a85131bf0f
C#: Better handling of (value) tuple types in cs/call-to-object-tostring.
2025-02-24 13:53:16 +01:00
Anders Schack-Mulligen
db7ec4a781
Java: Remove getDefinitionExt reference
2025-02-24 13:50:08 +01:00
Michael Nebel
5eb305da93
C#: Add some value tuple examples for cs/call-to-object-tostring and update test expected output.
2025-02-24 13:42:30 +01:00
Jonas Jensen
11a0a9f8af
Java: StaticInitializationVector with postprocess
...
Use the new `postprocess` feature for the test of
`StaticInitializationVector.ql`. This makes it easier to modify and test
this query for diff-informed operation.
2025-02-24 13:33:02 +01:00
Anders Schack-Mulligen
09454f9f14
SSA: Remove unused.
2025-02-24 13:02:03 +01:00
Anders Schack-Mulligen
1af753cd0c
JS: Use shared barrier guard for falsy check.
2025-02-24 13:00:06 +01:00
Anders Schack-Mulligen
782b6cfb9a
SSA: Fix bug in guards for ssa input nodes.
2025-02-24 13:00:06 +01:00
Paolo Tranquilli
8ef2029f3d
Merge pull request #18756 from github/redsun82/rust-config
...
Rust: expose more rust-analyzer config knobs
2025-02-24 12:51:37 +01:00
Paolo Tranquilli
81b6848a9c
Merge pull request #18822 from github/redsun82/rust-lint
...
Rust: strengthen linting script
2025-02-24 12:48:29 +01:00
Tom Hvitved
425fa0db09
Merge pull request #18823 from hvitved/rust/path-resolution-more
...
Rust: More path resolution improvements
2025-02-24 12:46:07 +01:00
Geoffrey White
6cb8f65076
Rust: Fix up .expected after merge.
2025-02-24 10:58:19 +00:00
Geoffrey White
fdc76dd06a
Merge branch 'main' into nth
2025-02-24 10:57:45 +00:00
Geoffrey White
3681ace746
C++: Explore negative indices more in tests.
2025-02-24 10:36:43 +00:00
Paolo Tranquilli
1bce783623
Rust: accept test changes for now
2025-02-24 11:30:58 +01:00
Tom Hvitved
7380ec8a55
Address review comments
2025-02-24 11:09:58 +01:00
Florin Coada
fcb470330c
Merge pull request #18833 from github/changedocs/2.20.5
...
Add changelog for CodeQL CLI version 2.20.5
2025-02-24 10:06:34 +00:00
Anders Schack-Mulligen
88fe4faf9d
SSA: Remove nodes that are no longer used.
2025-02-24 11:00:48 +01:00
Anders Schack-Mulligen
09b2aeb53a
SSA: Replace use-use step implementation in data-flow integration.
2025-02-24 10:58:14 +01:00
Paolo Tranquilli
689e7b8440
Rust: fix <X as Y> path extraction
...
This works around a quirk in rust-analyzer's AST generation machinery,
where for an `<X as Y>` path there might be no way to directly get `Y`
from the path segment.
2025-02-24 10:38:15 +01:00
Geoffrey White
08913c551d
Merge pull request #18827 from geoffw0/exectainted
...
C++: Expand qldoc and tests for cpp/command-line-injection
2025-02-24 08:53:49 +00:00
Michael B. Gale
1b2d842b44
Merge pull request #17900 from github/mbg/go/fix/project-files-in-vendor
2025-02-22 10:00:46 +00:00
Owen Mansel-Chan
d9d909a61e
Address review comments
2025-02-22 02:31:08 +00:00
Geoffrey White
90758b37ef
C++: Change notes.
2025-02-21 19:00:12 +00:00
Geoffrey White
fd32355ca8
C++: Give cpp/overflow-buffer medium precision, and upgrade severity so it will appear in security-extended.
2025-02-21 18:58:58 +00:00
Geoffrey White
ae25399a47
C++: Fix offsetof bug.
2025-02-21 18:58:56 +00:00
Geoffrey White
547b082ac3
C++: Even more test cases.
2025-02-21 18:58:42 +00:00
Geoffrey White
3aa1ba5876
C++: More additional test cases.
2025-02-21 18:09:41 +00:00
Chris Smowton
32e4c741cc
Merge pull request #18554 from smowton/smowton/admin/test-gbk-xml-extraction
...
Java: Add tests for XML and Java extraction with GBK charset
2025-02-21 17:27:32 +00:00
Owen Mansel-Chan
721b8c4ea6
Merge pull request #18826 from owen-mc/go/join-order-fixes
...
Go: Fix bad join order in `comparesFirstCharacter`
2025-02-21 16:25:15 +00:00
Alex Eyers-Taylor
57e985cc21
CPP: Simplify getClassAndNameImpl
2025-02-21 16:23:45 +00:00
Edward Minnix III
c93fb4cbc9
Merge pull request #18493 from egregius313/egregius313/go/mad/database/mongodb
...
Go: `database` local sources for MongoDB
2025-02-21 09:32:15 -05:00
Anders Schack-Mulligen
4e515bc2f5
JS: Remove reference to isInputInto
2025-02-21 14:48:24 +01:00
Asger F
cd0fd02e74
Rust: Remove 'Source' annotations from same line as Alert
...
Source tags should no longer be used when on the same line as the Alert.
The ones in this file went unnoticed however because *all* of them were on the same line as an Alert, which made the test library ignore all Source tags.
2025-02-21 14:44:48 +01:00
Asger F
cd2c4d5e3a
JS: Use post-processed inline test in MissingCsrfMiddleware
...
This query flags the cookie-parsing middleware in order to consolidate huge numbers of alerts into a single alert, which is more manageable. But simply annotating the cookie-parsing middleware with 'Alert' isn't a very useful, we want to annotate which middlewares are vulnerable.
2025-02-21 14:44:46 +01:00
Asger F
e2fe74ccd6
JS: Add support for RelatedLocation tags
2025-02-21 14:44:45 +01:00
Anders Schack-Mulligen
9acb58e8c2
SSA: Add SsaNode predicates that don't mention DefinitionExt.
2025-02-21 14:43:51 +01:00
Tamas Vajk
24bd9fb7e5
Add queries to C# CCR suite
2025-02-21 14:24:09 +01:00
Simon Friis Vindum
4ef64cdf9f
Merge pull request #18820 from paldepind/rust-fewer-no-match
...
Rust: Remove nonsentical no-match CFG edges
2025-02-21 14:18:23 +01:00
Napalys
3587ba593a
Add change note and added tanstack to supported framework list
2025-02-21 13:47:48 +01:00
Napalys
ab0241c1de
Added missing doc strings for Tanstack queries
2025-02-21 13:32:49 +01:00
Simon Friis Vindum
e6e4ff1b72
Rust: Accept changes to expected files
2025-02-21 13:24:06 +01:00
Napalys
1227a7eedc
Add Tanstack framework support and enhance data flow tracking for fetch responses
2025-02-21 13:24:00 +01:00
Napalys
05690c21ed
Added a test for tanstack/react-query useQuery
2025-02-21 13:24:00 +01:00
Simon Friis Vindum
0f627ae59a
Merge branch 'main' into rust-fewer-no-match
2025-02-21 13:20:50 +01:00
Florin Coada
967c1ad51c
Merge pull request #18832 from github/coadaflorin/csharp-changelog-clean
...
Coadaflorin/csharp changelog clean
2025-02-21 11:01:39 +00:00
Florin Coada
fd9475ea2f
Add changelog for CodeQL CLI version 2.20.5
2025-02-21 10:48:21 +00:00
Florin Coada
38f538e76a
Update 3.1.1.md
2025-02-21 10:44:20 +00:00
Florin Coada
b77b5fc308
Update CHANGELOG.md
2025-02-21 10:43:43 +00:00
Owen Mansel-Chan
50d1bc6aa0
Improve bad join order
2025-02-21 10:31:46 +00:00
Simon Friis Vindum
df2a110b41
Rust: Changes based on PR comments
2025-02-21 11:15:54 +01:00
Simon Friis Vindum
65bce9d7e0
Rust: Add CFG test with tuple struct pattern
2025-02-21 10:59:21 +01:00
Anders Schack-Mulligen
6932e000c6
Java: Switch BaseSSA to use shared SSA lib.
2025-02-21 08:57:23 +01:00
Anders Schack-Mulligen
1c616d10d4
Merge pull request #18819 from aschackmull/ssa/refactor-phiread3
...
Ssa: Refactor shared SSA in preparation for eliminating phi-read definitions
2025-02-21 08:56:38 +01:00
Owen Mansel-Chan
44c5df5246
Force global value fanout to go last
2025-02-21 01:01:09 +00:00
Owen Mansel-Chan
8aa9dd7092
Move go generate comment
2025-02-21 00:38:33 +00:00
Sarita Iyer
26da997bb2
Merge pull request #18809 from github/saritai/docs-formatting-fix
...
Fix table alignment in supported languages article
2025-02-20 16:35:39 -05:00
Ed Minnix
f7e094e887
Move depstubber line to test file
2025-02-20 16:28:51 -05:00
Paolo Tranquilli
45baceb2f5
Merge pull request #18821 from github/redsun82/rust-license
...
Rust: add licensing information to crates and extractor pack
2025-02-20 22:20:40 +01:00
Chris Smowton
311c1e1654
Merge pull request #18829 from smowton/smowton/admin/regularise-extractor-licenses
...
Regularise extractor pack licenses to all cite the MIT license that covers the whole CodeQL repository
2025-02-20 20:02:26 +00:00
Chris Smowton
a1ba584b20
Autoformat
2025-02-20 19:31:00 +00:00
Chris Smowton
4567e02b8c
Regularise extractor pack licenses to all cite the MIT license that covers the whole CodeQL repository
2025-02-20 18:55:55 +00:00
Chris Smowton
fe34aa35a9
Merge pull request #18699 from github/smowton/admin/update-license
...
Update license; remove redundant Go qlpack license.
2025-02-20 18:19:51 +00:00
Geoffrey White
89355991df
C++: Additional test cases.
2025-02-20 16:28:35 +00:00
Geoffrey White
e77ebf0715
C++: Test spacing.
2025-02-20 16:23:35 +00:00
Alex Eyers-Taylor
53c5b8ff9e
CPP: Prevent forced bad join order.
2025-02-20 16:06:42 +00:00
Geoffrey White
b6f9055566
C++: Add and correct some QLDoc.
2025-02-20 15:33:59 +00:00
Geoffrey White
3954f5e45e
C++: Add some test cases.
2025-02-20 15:21:25 +00:00
Geoffrey White
c36e91855f
C++: Fix a test case.
2025-02-20 15:21:17 +00:00
Simon Friis Vindum
cd49df0ff2
Merge pull request #18784 from paldepind/rust-generate-sources-sinks
...
Rust: Generate sources and sinks
2025-02-20 15:59:58 +01:00
Owen Mansel-Chan
7b6a91e90e
Fix bad join order in comparesFirstCharacter
2025-02-20 14:49:25 +00:00
Anders Schack-Mulligen
8c0cc077c8
Ssa: Fix qldoc duplicate word.
2025-02-20 15:49:23 +01:00
Tom Hvitved
22ed2e56a9
Merge pull request #18799 from hvitved/cfg/cond-split-prune
...
CFG: Prune `ConditionalCompletionSplitting` for unnecessary splits
2025-02-20 14:19:44 +01:00
Tom Hvitved
496f485375
Rust: Path resolution for bounded type parameters
2025-02-20 13:57:11 +01:00
Tom Hvitved
8f0aced868
Rust: Path resolution for trait items with default implementations
2025-02-20 13:56:19 +01:00
Chris Smowton
9162ce7d73
Add test for extraction of a Java file with a non-UTF-8 charset
2025-02-20 12:31:36 +00:00
Chris Smowton
be6162edc0
Add test for XML extraction with GBK charset
2025-02-20 12:31:36 +00:00
Tom Hvitved
1be903cb4f
Rust: Add more path resolution tests
2025-02-20 12:04:20 +01:00
Simon Friis Vindum
b6144c2f08
Merge branch 'main' into rust-core-std-models
2025-02-20 12:00:47 +01:00
Simon Friis Vindum
4a01a4df37
Rust: Remove nonsensical no-match CFG edges
2025-02-20 10:51:33 +01:00
Paolo Tranquilli
292b962513
Rust: strengthen linting script
...
* `bazel run //rust/ast-generator:inject-sources` could fail on macOS
if a non-coreutils `cp` was used
* that is now also run by `lint.py` to ensure the sources cargo needs
are present
2025-02-20 10:39:14 +01:00
Anders Schack-Mulligen
8e609b19f5
Ruby: Accept qltest change.
...
This is a result of the bugfix in the commit named
"C#/Ruby/Rust: Fix bug in adjacentReadPairSameVar"
2025-02-20 10:33:44 +01:00
Paolo Tranquilli
1038f7c035
Rust: add licensing information to crates and extractor pack
2025-02-20 10:22:17 +01:00
Tom Hvitved
a8bb37c3c2
Swift: Update expected test output
2025-02-20 10:19:45 +01:00
Tom Hvitved
889ef33006
Rust: Update expected test output
2025-02-20 10:19:41 +01:00
Tom Hvitved
9d8e9975de
C#: Update expected test output
2025-02-20 10:18:15 +01:00
Tom Hvitved
3bf424b07d
CFG: Prune ConditionalCompletionSplitting for unnecessary splits
2025-02-20 10:18:13 +01:00
Simon Friis Vindum
52515dda35
Rust: Add more CFG tests for patterns
2025-02-20 09:52:07 +01:00
Asger F
a1b7096125
Merge pull request #18783 from asgerf/js/downward-calls
...
JS: Resolve calls downward in class hierarchy
2025-02-20 09:01:58 +01:00
Remco Vermeulen
22bf1af9f3
Merge pull request #18730 from yoff/ruby/add-DBCallInLoop-to-CCR-suite
...
ruby: include `rb/database-query-in-loop` in the CCR suite
2025-02-19 14:16:56 -08:00
Tom Hvitved
c22021ab55
Merge pull request #18808 from hvitved/rust/path-resolution-inherited-functions
...
Rust: Path resolution for inherited associated items
2025-02-19 19:35:53 +01:00
Jami
485ee5c5ed
Merge pull request #18692 from jcogs33/jcogs33/spring-csrf-qhelp-update
...
Java: update `java/spring-disabled-csrf-protection` QHelp
2025-02-19 11:39:11 -05:00
Paolo Tranquilli
d0461e2c08
Merge branch 'main' into redsun82/rust-config
2025-02-19 17:09:04 +01:00
Anders Schack-Mulligen
b76e5f55c6
SSA: Deprecate unused predicate.
2025-02-19 16:41:49 +01:00
Anders Schack-Mulligen
7e596032f1
Rust: Switch use-use predicates to new implementation.
2025-02-19 16:38:37 +01:00
Anders Schack-Mulligen
4ddc5c9d75
Ruby: Switch use-use predicates to new implementation.
2025-02-19 16:34:36 +01:00
Anders Schack-Mulligen
b0a5e62003
C#: Clean up unused.
2025-02-19 16:27:52 +01:00
Anders Schack-Mulligen
17ae747b08
C#: Switch use-use predicates to new implementation.
2025-02-19 16:24:21 +01:00
Anders Schack-Mulligen
ed40035b9c
C#/Ruby/Rust: Fix bug in adjacentReadPairSameVar.
2025-02-19 16:20:57 +01:00
Anders Schack-Mulligen
291ea6f6eb
Java: Move SSA data flow test and extend it to cover phi-read input edges.
2025-02-19 16:17:22 +01:00
Anders Schack-Mulligen
5379506464
Java: Use firstUse and adjacentUseUse predicates.
2025-02-19 16:17:22 +01:00
Anders Schack-Mulligen
cf2136fbc7
SSA: Export simple firstUse and adjacentUseUse predicates.
2025-02-19 16:17:22 +01:00
yoff
75d320401b
Merge branch 'main' into ruby/add-DBCallInLoop-to-CCR-suite
2025-02-19 16:08:38 +01:00
Chris Smowton
bc6ce32af2
Merge pull request #18812 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2025-02-19 14:42:18 +00:00
Tom Hvitved
54ebe9a8f4
Rust: Path resolution for inherited associated items
2025-02-19 15:23:35 +01:00
yoff
7d3cc2eaf3
Merge pull request #18797 from github/redsun82/update-py-deps
...
Python: upgrade `clap`
2025-02-19 15:12:43 +01:00
github-actions[bot]
ce234bb2c6
Add changed framework coverage reports
2025-02-19 14:09:10 +00:00
Michael B. Gale
11e3a08e44
Go: Check for modules.txt or glide.yaml to exclude vendor dirs
2025-02-19 13:57:15 +00:00
Michael B. Gale
fe4ee54b6f
Go: Add more logging for go.mod files to workspace discovery
2025-02-19 13:25:49 +00:00
Simon Friis Vindum
ae7e15d82f
Merge pull request #18754 from paldepind/rust-ref-pattern
...
Rust ref pattern
2025-02-19 14:24:09 +01:00
Michael B. Gale
1d9a3dbd08
Go: Make go happy with the vendor folder
2025-02-19 12:47:28 +00:00
Michael B. Gale
ebd6fd4156
Merge pull request #18814 from github/mbg/bazel/test-output-all
...
Bazel: Add `--test_output all`
2025-02-19 12:40:07 +00:00
Asger F
a5fde9c3df
Merge pull request #18807 from asgerf/js/vue-without-tsconfig-fixup
...
JS: Extract TS snippets with no tsconfig.json file
2025-02-19 13:31:08 +01:00
Paolo Tranquilli
3c00dc48b1
Merge pull request #18802 from github/redsun82/rust-glob-members
...
Rust: support glob members in workspaces
2025-02-19 13:30:58 +01:00
Asger F
58c8b5fa2b
Merge pull request #18790 from asgerf/js/no-implicit-array-taint
...
JS: Do not taint whole array when storing into ArrayElement
2025-02-19 13:23:31 +01:00
Michael B. Gale
462b6e6a0e
Bazel: Add --test_output all
2025-02-19 11:41:57 +00:00
Michael B. Gale
4fa0019b55
Go: Add vendor directory to mixed-layout test with go.work file
...
The `go.work` file here should not get discovered by the autobuilder
2025-02-19 11:24:54 +00:00
Michael B. Gale
b372af51b6
Go: Allow FindAllFilesWithName to use predicate functions for dirsToSkip
2025-02-19 11:24:53 +00:00
Michael B. Gale
2cd9bd8a43
Go: Move IsGolangVendorDirectory to util package
2025-02-19 11:24:52 +00:00
Simon Friis Vindum
faef735ce9
Rust: Move equality into disjunction
2025-02-19 11:11:11 +01:00
Asger F
e1c280500e
Merge pull request #18749 from Kwstubbs/express
...
JS: Add result.download to Express as Path Traversal Sink
2025-02-19 09:08:36 +01:00
Remco Vermeulen
9865577bf5
Merge pull request #18811 from rvermeulen/rvermeulen/update-java-ccr-suite
...
Updata Java CCR suite
2025-02-18 16:54:41 -08:00
Remco Vermeulen
2d991fc387
Updata Java CCR suite
2025-02-18 20:25:22 +00:00
Geoffrey White
1a6c6a454d
Rust: Effect on integration tests.
2025-02-18 17:50:54 +00:00
Geoffrey White
12d5a30703
Rust: Add a test of mutable iterators as well.
2025-02-18 17:20:43 +00:00
Geoffrey White
8024fb6812
Rust: Add more models for Iterator.
2025-02-18 17:20:39 +00:00
Asger F
804a1a6cb0
JS: Handle array of sorting criteria
2025-02-18 16:58:04 +01:00
Asger F
7486742c37
JS: Fix model of _.sortBy
2025-02-18 16:53:40 +01:00
Asger F
ad4522c781
JS: Make 'typeStrongerThan' transitive
2025-02-18 16:04:48 +01:00
Asger F
e40ee821c2
JS: Update a qldoc comment
2025-02-18 16:02:47 +01:00
Anders Schack-Mulligen
194afbb7f8
Java: Simplify SSA for variable capture.
2025-02-18 14:01:20 +01:00
Anders Schack-Mulligen
35f50bac97
SSA: Reimplement use-use.
2025-02-18 14:01:20 +01:00
Anders Schack-Mulligen
d6dc91d191
SSA: Inline predicate to simplify negation.
2025-02-18 14:01:20 +01:00
Anders Schack-Mulligen
411aff6748
SSA: Refactor ranking into parameterised module.
2025-02-18 14:01:19 +01:00
Anders Schack-Mulligen
11166fc42d
SSA: Restrict phi-read creation to be based on reachable reads.
2025-02-18 14:01:19 +01:00
Anders Schack-Mulligen
d5ac5b4654
SSA: Replace uncertainWriteDefinitionInput implementation.
...
This yields a tiny bit of additional tuples consistent with the prior
Java implementation.
2025-02-18 14:01:18 +01:00
Anders Schack-Mulligen
a4fee2e299
SSA: Minor perf tweak to reduce tuple duplication.
2025-02-18 14:01:18 +01:00
Anders Schack-Mulligen
7e441d9eca
SSA: Fold getImmediateBasicBlockDominator into loop-invariant predicate.
2025-02-18 14:01:17 +01:00
Anders Schack-Mulligen
77ccff6be8
SSA: Replace exported def-reaches predicates (behaviour-preserving).
2025-02-18 14:01:17 +01:00
Anders Schack-Mulligen
6e272d07af
SSA: Ignore phi-reads in the new def-reaches module.
2025-02-18 14:01:16 +01:00
Anders Schack-Mulligen
ea08c60326
SSA: Copy 3 predicates from the outer scope verbatim into the new Reaches module.
2025-02-18 14:01:16 +01:00
Anders Schack-Mulligen
613323ee3a
SSA: Copy parts of SsaDefReaches verbatim to new module.
2025-02-18 14:01:15 +01:00
Anders Schack-Mulligen
81b3035160
SSA: Inline predicate
2025-02-18 14:01:15 +01:00
Anders Schack-Mulligen
f80cd97232
SSA: Factor out phi-read construction in its own predicate.
2025-02-18 14:01:14 +01:00
Anders Schack-Mulligen
5723d27428
SSA: Make inReadDominanceFrontier a bit smaller without affecting phi-read creation.
2025-02-18 14:01:14 +01:00
Anders Schack-Mulligen
c5e28842fb
SSA: Remove superfluous column from liveAtRank.
2025-02-18 14:01:13 +01:00
Anders Schack-Mulligen
b62432fc80
SSA: Remove superfluous boolean.
2025-02-18 14:01:13 +01:00
Anders Schack-Mulligen
36613e150b
SSA: Remove superfluous conjunct (implied by refRank).
2025-02-18 14:01:13 +01:00
Anders Schack-Mulligen
3822d149af
SSA: Elaborate qldoc.
2025-02-18 14:01:12 +01:00
Jami
d94dc5aa40
Merge pull request #18504 from jcogs33/jcogs33/java/file-constructor-path-sanitizer
...
Java: `File` constructor path sanitizer
2025-02-18 08:00:32 -05:00
Tom Hvitved
ab74d903fd
Rust: Path resolution for inherited functions
2025-02-18 13:49:05 +01:00
Tom Hvitved
f3a393f9da
Rust: Add more path resolution tests
2025-02-18 13:48:27 +01:00
Asger F
b3f7cd988b
JS: Extract TS snippets with no tsconfig.json file
2025-02-18 12:43:13 +01:00
Simon Friis Vindum
53557dbebd
Merge pull request #18800 from paldepind/generate-model-script
...
Sanitize path when generating MaD files
2025-02-18 12:22:42 +01:00
Paolo Tranquilli
530bfccb7c
Merge branch 'main' into redsun82/update-py-deps
2025-02-18 10:03:29 +01:00
Paolo Tranquilli
38efd4a8a2
Python: downgrade tree-sitter back to 0.20.4
2025-02-18 10:03:18 +01:00
Asger F
24e7aad6ba
JS: Overriden -> Overridden
2025-02-18 09:51:13 +01:00
Asger F
82a4b17218
JS: Change note
2025-02-18 09:43:08 +01:00
Asger F
e610683377
JS: Linter fix
2025-02-18 09:25:23 +01:00
Ian Lynagh
02249af781
Merge pull request #18804 from github/post-release-prep/codeql-cli-2.20.5
...
Post-release preparation for codeql-cli-2.20.5
2025-02-17 21:40:36 +00:00
Jami Cogswell
9bb5fe837d
Java: address review comments
2025-02-17 15:47:45 -05:00
Asger F
c958702830
JS: Accept some unproblematic consistency warnings
2025-02-17 20:30:07 +01:00
github-actions[bot]
ad24f94a77
Post-release preparation for codeql-cli-2.20.5
2025-02-17 17:58:24 +00:00
Geoffrey White
79525fa4ed
Rust: Variant -> Field.
2025-02-17 17:33:52 +00:00
Ian Lynagh
975881c74a
Merge pull request #18803 from github/release-prep/2.20.5
...
Release preparation for version 2.20.5
2025-02-17 17:29:25 +00:00
Geoffrey White
048f7dbd37
Merge branch 'main' into nth
2025-02-17 17:17:59 +00:00
github-actions[bot]
6f4562f3bd
Release preparation for version 2.20.5
2025-02-17 16:55:54 +00:00
Paolo Tranquilli
342bff6125
Python: undo tree-sitter update
2025-02-17 15:52:45 +01:00
Geoffrey White
8bcfd00565
Rust: Remove the manual models.
2025-02-17 14:29:16 +00:00
Paolo Tranquilli
755140152c
Rust: support glob members in workspaces
2025-02-17 15:09:35 +01:00
Asger F
a54f0a74f1
JS: Target post-update node instead of getALocalSource
...
getAPropertyWrite() contains getALocalSource() under the the hood. Don't rely on that to find the successor of a mutation.
2025-02-17 15:00:02 +01:00
Asger F
6e074c301f
JS: Port lodash callback steps to flow summaries
...
Not all of lodash, just the callbacks we already modeled plus a few easy ones
2025-02-17 14:54:45 +01:00
Paolo Tranquilli
df305d6b52
Python: run bazel vendoring
2025-02-17 14:18:48 +01:00
Simon Friis Vindum
a253b77894
Rust: Add clarifying comment
2025-02-17 14:14:30 +01:00
Erik Krogh Kristensen
7fa41c438f
Merge pull request #18794 from erik-krogh/v-flag
...
JS: Add support for the regex V flag
2025-02-17 13:56:48 +01:00
Anders Schack-Mulligen
a90bd68796
Merge pull request #18786 from aschackmull/ssa/cleanup
...
Rust/Ruby: Minor SSA cleanup.
2025-02-17 13:51:17 +01:00
Simon Friis Vindum
12a5766f31
Sanitize path when generating MaD files
2025-02-17 13:45:33 +01:00
Simon Friis Vindum
b08f5356dd
Merge pull request #18772 from paldepind/rust-method-call
...
Rust: Adjust argument position when call expression is for method
2025-02-17 13:39:24 +01:00
Simon Friis Vindum
dcfe65bc66
Rust: Address review comments
2025-02-17 13:35:46 +01:00
yoff
4b53e1c034
Merge pull request #18304 from yoff/ruby/performance-queries
...
Ruby: Query for database calls in a loop
2025-02-17 13:16:07 +01:00
Asger F
4e325d9f1c
JS: Convert some exception steps to legacy
2025-02-17 11:53:50 +01:00
Owen Mansel-Chan
6045d9bb22
Merge pull request #18792 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2025-02-17 10:45:36 +00:00
Asger F
08b9d934c0
JS: Add a negative test
2025-02-17 11:37:44 +01:00
Asger F
352924fb8c
JS: Handle a few other stringification contexts
2025-02-17 11:36:28 +01:00
Asger F
33ab7db98a
JS: Handle Array.prototype.toString calls
2025-02-17 11:25:03 +01:00
Asger F
a74b203c86
JS: Add test with implicit array stringification
2025-02-17 11:21:46 +01:00
Asger F
d87534c7d0
JS: Model Array#toString
2025-02-17 11:13:36 +01:00
Asger F
e8d1703224
JS: Add test for flow through Buffer.concat
...
This flow was lost since the existing model of concat() boxes its return value in ArrayElement. There is no explicit model of Buffer.concat.
2025-02-17 11:12:51 +01:00
Simon Friis Vindum
0c3e8a0f5b
Rust: Adapt tests and existing models to account for generated models
2025-02-17 11:08:42 +01:00
Paolo Tranquilli
91b3d108bb
Python: upgrade cargo dependencies
...
This required some code changes because of some breaking changes in
`clap` and `tree-sitter`.
Also needed to assign a new bazel repo name to the `crates_vendor` to
avoid name conflicts in `MODULE.bazel`.
2025-02-17 10:56:36 +01:00
Simon Friis Vindum
8b3c1ab698
Merge branch 'main' into rust-ref-pattern
2025-02-17 10:36:39 +01:00
Asger F
d79f429978
JS: Update changes to nodes/edges/subpaths
...
No changes in actual alerts
2025-02-17 10:36:05 +01:00
Asger F
0ca9b2285b
Merge pull request #18740 from asgerf/js/more-precise-diff-informed
...
JS: Provide more precise related locations
2025-02-17 10:27:15 +01:00
Asger F
b8f48aa711
JS: Change note
2025-02-17 10:24:57 +01:00
Asger F
97eb09fef8
JS: Accept updated test output
2025-02-17 10:19:49 +01:00
Tom Hvitved
3644de007f
Merge pull request #18767 from hvitved/ql4ql/inline-expectations
...
QL4QL: Add query suggesting use of inline test expectations
2025-02-17 10:04:35 +01:00
Joe Farebrother
180e45d66a
Merge pull request #18599 from joefarebrother/python-qual-not-named-self-cls
...
Python: Modernize py/not-named-self and py/not-named-cls queries
2025-02-17 08:58:34 +00:00
Asger F
e02577d3e9
Merge pull request #18768 from asgerf/js/url-search-params
...
JS: Migrate model of URLSearchParams
2025-02-17 09:10:35 +01:00
github-actions[bot]
5af60bba80
Add changed framework coverage reports
2025-02-17 00:22:08 +00:00
erik-krogh
6ebffd59f6
add change-note
2025-02-16 19:23:44 +01:00
erik-krogh
55b8e8b748
fix the ECMAScript version to be ES2024
2025-02-16 19:06:14 +01:00
erik-krogh
01d70a6d73
add test of the new v flag
2025-02-16 19:01:02 +01:00
Napalys
3ec038e7b6
JS: Added predicate to check if v flag is used on regular expression
2025-02-16 18:31:08 +01:00
Napalys
4097aa9f78
JS: Added ecma2021, thus extractor now can deal with RegExp v flag
2025-02-16 18:31:06 +01:00
Sarita Iyer
1fe46ccfd6
fix table alignment
2025-02-14 16:37:37 -05:00
Jami Cogswell
61a184c1d7
Java: update more tests
2025-02-14 16:08:06 -05:00
Jami Cogswell
2bb6a3914b
Java: update tests
2025-02-14 15:16:08 -05:00
Aditya Sharad
5f4871d609
Merge pull request #18785 from martincostello/gh-18782
...
Fix docker SHA false positive
2025-02-15 01:33:39 +05:30
martincostello
31913c4a55
Fix test
...
Fix failing test.
2025-02-14 19:46:46 +00:00
Jami Cogswell
c0ebeb9c7b
Java: use AdditionalTaintStep
2025-02-14 13:52:43 -05:00
martincostello
f1723321fa
Format Document
...
Fix lint warning.
2025-02-14 18:06:00 +00:00
Martin Costello
979d604bf6
Apply suggestions from code review
...
Co-authored-by: Aditya Sharad <6874315+adityasharad@users.noreply.github.com >
2025-02-14 17:21:24 +00:00
Paolo Tranquilli
ea0bd74728
Merge pull request #18567 from github/redsun82/env-dump-integration-test
...
Rust/Swift: add integration tests checking env dumping
2025-02-14 16:52:20 +01:00
Asger F
283954d515
JS: Do not store into arrays implicitly
2025-02-14 16:06:43 +01:00
Simon Friis Vindum
925d6ac234
Rust: Add generated models for standard libraries including core
2025-02-14 14:44:22 +01:00
Mathias Vorreiter Pedersen
89fd2876b6
Merge pull request #18773 from MathiasVP/cleanup-ssa-internals-2
...
C++: Clean up some stuff in `SsaInternals`
2025-02-14 13:38:43 +00:00
martincostello
5d2409e652
Fix query
...
Forgot to move the `and`.
2025-02-14 13:36:09 +00:00
martincostello
9a7ed7f3f7
Re-order conditions
...
Makes for a neater diff.
2025-02-14 13:35:20 +00:00
martincostello
99bb0f0b4f
Use if then else
...
Apply code review suggestion.
Co-Authored-By: Taus <1104778+tausbn@users.noreply.github.com >
2025-02-14 13:30:55 +00:00
martincostello
cf8abb7989
Add change note
...
Add change note.
2025-02-14 13:27:36 +00:00
Anders Schack-Mulligen
c84087cd19
Ruby: Deprecate dependencies of deprecated predicates for clarity.
2025-02-14 14:18:20 +01:00
Anders Schack-Mulligen
28cb37364c
Rust: delete dead code.
2025-02-14 14:16:21 +01:00
Owen Mansel-Chan
a9b9410104
Merge pull request #17759 from Kwstubbs/path-sanitizers
...
Go: Add Tainted Path sanitizers
2025-02-14 13:13:19 +00:00
Owen Mansel-Chan
d8fe4d2698
Merge pull request #18489 from owen-mc/go/rename-namedtype-definedtype
...
Go: Rename "named type" to "defined type"
2025-02-14 13:03:42 +00:00
Owen Mansel-Chan
083c756973
Merge pull request #18766 from owen-mc/go/update-framework-docs
...
Go: Add more modeled frameworks to docs
2025-02-14 13:03:13 +00:00
Mathias Vorreiter Pedersen
9cfd3391d2
C++: Move 'getImpl' to a private non-member predicate.
2025-02-14 13:01:28 +00:00
martincostello
71bc89beda
Fix query
...
Fix various issues with the query.
2025-02-14 12:59:02 +00:00
Martin Costello
9a29cebe58
Fix docker SHA false positive
...
Fix false positives for pinned Docker container images.
2025-02-14 12:35:55 +00:00
Asger F
ab5fc9f4d7
JS: Implement viableImplInCallContext
2025-02-14 13:25:19 +01:00
Simon Friis Vindum
632e0c82bd
Rust: Generate sources and sinks
2025-02-14 12:48:05 +01:00
Asger F
ff7bc7c25e
JS: Track types of classes in data flow
2025-02-14 12:44:45 +01:00
Asger F
d3c4b5d493
JS: Add test with spurious flow due to up-down calls
2025-02-14 12:42:02 +01:00
Owen Mansel-Chan
347e5ed029
Update model in test expectation
2025-02-14 10:49:51 +00:00
Owen Mansel-Chan
250cbb6b05
Change location of postprocess queries
2025-02-14 10:26:55 +00:00
Asger F
b8b2b9a470
JS: Resolve calls downward in the class hierarchy
2025-02-14 11:17:19 +01:00
Asger F
aff458d948
JS: Also add tests for upward calls and overriding
2025-02-14 11:17:17 +01:00
Asger F
9321d69034
JS: Add CG test showing lack of calls down to subclasses
2025-02-14 11:17:15 +01:00
Asger F
4043765008
JS: Avoid ambiguity in an inline CG annotation
2025-02-14 11:17:14 +01:00
Asger F
a61d42edc3
JS: Make inline CG tests report call target if NONE was given
...
Previously it would only report a spurious callee if the target function was named. Now, if specifying 'calls:NONE' if will report any callee as spurious.
2025-02-14 11:17:13 +01:00
Paolo Tranquilli
e1f92b466f
Merge pull request #18608 from github/aibaars/tracing
...
Rust: use tracing/tracing-subscriber for logging
2025-02-14 10:36:54 +01:00
Paolo Tranquilli
f28140bee9
Merge branch 'main' into redsun82/env-dump-integration-test
2025-02-14 10:29:53 +01:00
Asger F
7df3e647d1
JS: Use US spelling
2025-02-14 10:28:55 +01:00
Asger F
25314b61db
JS: Update nodes/edges output
2025-02-14 10:26:21 +01:00
Kevin Stubbings
74f16ee866
Merge branch 'main' into path-sanitizers
2025-02-14 01:11:39 -08:00
Owen Mansel-Chan
1a52398a29
Address review comments
2025-02-13 21:59:14 +00:00
Owen Mansel-Chan
8fca15036e
Merge pull request #18774 from owen-mc/go/print-dbscheme-upgrade-diff
...
Go: Print diff when dbscheme upgrade fails
2025-02-13 21:43:21 +00:00
Geoffrey White
436f7ccc82
Rust: Accept trivial change to consistency test .expected.
2025-02-13 18:12:06 +00:00
Geoffrey White
bee8b2fe32
Merge branch 'main' into okerr
2025-02-13 17:55:32 +00:00
Geoffrey White
fdcbbdfa08
Rust: Model them.
2025-02-13 17:42:41 +00:00
Geoffrey White
2d9e1b3d16
Rust: Add a test of Result.ok and Result.err.
2025-02-13 17:39:20 +00:00
Ed Minnix
84131dd068
Add Client::Watch
2025-02-13 11:30:16 -05:00
Owen Mansel-Chan
c08bb257f3
Print diff when dbscheme upgrade fails
2025-02-13 16:20:50 +00:00
Owen Mansel-Chan
f9a87cd0ea
Rename "namedtype" to "definedtype" in stats file
2025-02-13 16:19:51 +00:00
Owen Mansel-Chan
29f94f484c
Add upgrade/downgrade scripts
2025-02-13 16:19:24 +00:00
Owen Mansel-Chan
024fbf8f3a
Rename "named" to "defined" in dbscheme
2025-02-13 15:55:21 +00:00
Geoffrey White
6c314739f6
Rust: Accept changes to the summary stats query .expected.
2025-02-13 15:33:21 +00:00
Geoffrey White
c07a57bf6b
Rust: Accept spurious test results (we need a barrier for numeric types of this query at some point; it's good that flow reaches it now).
2025-02-13 15:31:10 +00:00
Tom Hvitved
9f9857b547
QL4QL: Add query suggestion use of inline test expectations
2025-02-13 16:26:11 +01:00
Tom Hvitved
bd9eb7d564
Merge pull request #18770 from hvitved/shared/windows-drive-letter-trap-id
...
Rust extractors: Normalize drive letter paths with a trailing `/`
2025-02-13 16:24:11 +01:00
Tom Hvitved
1cfc8f6abc
Merge pull request #18769 from hvitved/rust/mad-field-token
...
Rust: Use `Field` MaD token instead of `Variant`, `Struct`, `Tuple`
2025-02-13 16:23:52 +01:00
Owen Mansel-Chan
64c3f703fe
Add change note
2025-02-13 15:22:35 +00:00
Owen Mansel-Chan
09c44616a0
Rename "named type" to "defined type"
2025-02-13 15:22:33 +00:00
Michael Nebel
50584c8e82
Merge pull request #18764 from michaelnebel/csharp/updatedocumentation
...
C#: Update the documentation on supported C# language versions and fr…
2025-02-13 15:56:55 +01:00
Paolo Tranquilli
5abcf13973
Merge branch 'main' into redsun82/rust-config
2025-02-13 15:38:13 +01:00
Paolo Tranquilli
a6f58c9fd2
Rust: add option for proc macro server
2025-02-13 15:37:54 +01:00
Mathias Vorreiter Pedersen
be1af88d23
C++: Add more QLDoc.
2025-02-13 14:28:36 +00:00
Mathias Vorreiter Pedersen
aff03bd721
C++: Delete confusing class synonym.
2025-02-13 14:28:14 +00:00
Mathias Vorreiter Pedersen
f9732c746b
C++: Patch up various places that depended on the old IPA type.
2025-02-13 14:28:12 +00:00
Mathias Vorreiter Pedersen
75b6855769
C++: Move useful predicates from the old IPA type for the 'DefinitionExt' type.
2025-02-13 14:28:10 +00:00
Mathias Vorreiter Pedersen
f597ea99e1
C++: Delete the unnecessary IPA type of definitions.
2025-02-13 14:01:32 +00:00
Simon Friis Vindum
3f19279e98
Rust: Adjust argument position when call expression is for method
2025-02-13 14:12:14 +01:00
Simon Friis Vindum
a1069b1667
Rust: Add examples with methods called as functions
2025-02-13 14:03:35 +01:00
Tom Hvitved
02fd23e53a
Rust extractors: Normalize drive letter paths with a trailing /
2025-02-13 14:02:39 +01:00
Tom Hvitved
e9c25037d4
Rust: Use Field MaD token instead of Variant, Struct, Tuple
2025-02-13 13:32:08 +01:00
Asger F
c4724f42a3
JS: Change note
2025-02-13 11:51:35 +01:00
Asger F
26dcbf7a2a
JS: Migrate URLSearchParams model to flow summaries
2025-02-13 11:51:33 +01:00
Asger F
f531f4479b
JS: Add test for URL and URLSearchParams
2025-02-13 11:51:32 +01:00
Owen Mansel-Chan
dd102c4cea
Merge pull request #18645 from fabienpe/main
...
Added missing "GOOD" and "BAD" to some examples
2025-02-13 10:37:39 +00:00
Owen Mansel-Chan
63a853d8cb
Add more modeled frameworks to docs
2025-02-13 10:16:51 +00:00
Owen Mansel-Chan
c537246310
Merge pull request #18761 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2025-02-13 09:46:27 +00:00
Michael Nebel
eea295a3e6
C#: Add change-note.
2025-02-13 10:38:06 +01:00
Tom Hvitved
b2ad98ae97
Merge pull request #18755 from hvitved/rust/type-param-to-string
...
Rust: Implement `TypeParam.to(Abbreviated)String`
2025-02-13 09:59:54 +01:00
Michael Nebel
cb91fbf06e
C#: Update the documentation on supported C# language versions and frameworks.
2025-02-13 09:54:31 +01:00
github-actions[bot]
958c7d6ab6
Add changed framework coverage reports
2025-02-13 00:20:55 +00:00
Kevin Stubbings
253882c3d1
Update javascript/ql/lib/change-notes/2025-02-12-express-download.md
...
Co-authored-by: Asger F <asgerf@github.com >
2025-02-12 11:01:29 -08:00
Paolo Tranquilli
98c755d484
Merge pull request #18759 from github/redsun82/rust-avoid-linecol-panic
...
Rust: avoid panic from `line_index` crate
2025-02-12 18:46:44 +01:00
Geoffrey White
e07b25c6d4
Merge pull request #18577 from GeekMasher/rust-rusqlite
...
Rust: Add initial RuSQLite support
2025-02-12 17:14:15 +00:00
Geoffrey White
e9b8ec9324
Rust: Accept integration test changes (again).
2025-02-12 16:18:48 +00:00
Paolo Tranquilli
3dd7f23d5a
Merge branch 'redsun82/rust-avoid-linecol-panic' into redsun82/rust-config
2025-02-12 17:02:19 +01:00
Paolo Tranquilli
234d63bb97
Rust: avoid panic from line_index crate
...
We found out we can stumble upon a `line_index.line_col` panic,
specifically when reporting a macro parse error.
This replaces `line_col` with safer `try_line_col`, and deals more
gracefully with the error.
2025-02-12 16:52:36 +01:00
Geoffrey White
edda26c90d
Merge branch 'main' into nth
2025-02-12 15:14:20 +00:00
Arthur Baars
18cf39d063
Rust: add verbosity and flamegraph as extractor options
2025-02-12 15:29:27 +01:00
Geoffrey White
aa43d50837
Merge pull request #18671 from geoffw0/http
...
Rust: Model some sources for HTTP
2025-02-12 14:26:30 +00:00
Paolo Tranquilli
1bd384564d
Rust: expose more rust-analyzer config knobs
2025-02-12 14:14:43 +01:00
Geoffrey White
d0e0a7b0d0
Merge branch 'main' into http
2025-02-12 12:56:29 +00:00
Simon Friis Vindum
ef9676f838
Rust: Accept changes
2025-02-12 13:39:33 +01:00
Tom Hvitved
498828e91a
Rust: Implement TypeParam.to(Abbreviated)String
2025-02-12 13:23:51 +01:00
Simon Friis Vindum
f5b247d314
Merge branch 'main' into rust-ref-pattern
2025-02-12 13:23:19 +01:00
Simon Friis Vindum
7476aeaabf
Rust: Handle ref patterns in data flow
...
To do this we:
* Let SSA writes target the name inside identifier patterns instead of
the pattern itself
* Include relevant names in the data flow graph
* Add a store step from a identifier patterns with `ref` into the
contained name. So we have an edge `ref a` -> `a` that stores in the
reference content type.
2025-02-12 13:20:11 +01:00
Simon Friis Vindum
9054f1612b
Merge pull request #18753 from geoffw0/fix
...
Rust: Fix Windows integration test.
2025-02-12 12:38:09 +01:00
Owen Mansel-Chan
19fcf3c554
Merge pull request #18454 from owen-mc/go/mad/encoding-and-weak
...
Go: Add models for standard library updates in Go 1.24
2025-02-12 11:25:13 +00:00
Owen Mansel-Chan
dbad4df2ff
Update change note
...
Co-authored-by: Michael B. Gale <mbg@github.com >
2025-02-12 11:15:27 +00:00
Geoffrey White
bc1805c635
Rust: .yaml -> .yml
2025-02-12 10:48:49 +00:00
Owen Mansel-Chan
27622726fa
Pretty-print models in a test
2025-02-12 10:40:28 +00:00
Geoffrey White
cfcc6c8a50
Rust: Rename model file.
2025-02-12 10:16:57 +00:00
Owen Mansel-Chan
01ea4bd114
Add change note
2025-02-12 10:05:36 +00:00
Owen Mansel-Chan
eac77036b5
Update go version required for stdlib tests
2025-02-12 10:05:36 +00:00
Owen Mansel-Chan
79232da9d4
Add models for weak package, added in Go 1.24
2025-02-12 10:05:36 +00:00
Owen Mansel-Chan
2806e07760
Model additions to encoding in Go 1.24
...
Add models for `BinaryAppender` and `TextAppender`.
2025-02-12 10:05:36 +00:00
Michael B. Gale
a21dfc9a3b
Merge pull request #18306 from github/go/1.24
...
Go: Support 1.24
2025-02-12 09:59:00 +00:00
Simon Friis Vindum
5da14252ed
Rust: Include names in patterns in the CFG
2025-02-12 10:48:57 +01:00
Joe Farebrother
f46a2a1773
Exclude some decorators
2025-02-12 09:40:45 +00:00
Geoffrey White
333b183f43
Merge branch 'main' into http
2025-02-12 09:40:12 +00:00
Asger F
654c6bfec7
Merge pull request #18735 from asgerf/inline-test-non-location
...
Test: Support arbitrary locations in inline test post-processor
2025-02-12 10:30:50 +01:00
Arthur Baars
64f0908d0d
Rust: keep FlushGuard in a variable
2025-02-12 10:27:34 +01:00
Arthur Baars
5621eecc86
Rust: config: replace verbose with verbosity
2025-02-12 10:27:33 +01:00
Arthur Baars
3218faee6c
Rust: make flame_log a config option
2025-02-12 10:27:32 +01:00
Arthur Baars
0442d24204
Rust: drop tracing:: qualifiers
2025-02-12 10:27:30 +01:00
Arthur Baars
c602e82ac4
Rust: use tracing-subscriber
2025-02-12 10:27:29 +01:00
Simon Friis Vindum
bf9563e78e
Rust: Add data flow tests using ref patterns
2025-02-12 09:37:35 +01:00
Michael Nebel
bf1a9afdd3
Merge pull request #18694 from microsoft/csharp-update-MaD-upstream
...
C#: update MaD for HttpRequestMessage and UriBuilder
2025-02-12 09:32:53 +01:00
Kevin Stubbings
f5521ca1b8
Formatting
2025-02-12 00:15:27 -08:00
Kevin Stubbings
d0ed0fdeb3
Add download to Express
2025-02-12 00:10:09 -08:00
Simon Friis Vindum
b24386fb58
Merge pull request #18743 from paldepind/rust-add-generated-option-model
...
Rust: Add generated flow summaries for `Option`
2025-02-12 08:51:03 +01:00
Michael Nebel
57a7cb4b4f
Merge pull request #18747 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2025-02-12 08:47:53 +01:00
Simon Friis Vindum
94f0710350
Merge pull request #18741 from paldepind/rust-identity-pattern-to-string
...
Rust: Tweak `toString` on identity pattern
2025-02-12 08:47:15 +01:00
Simon Friis Vindum
655449be81
Rust: Add auto generated flow summaries for Option
2025-02-12 08:38:47 +01:00
github-actions[bot]
b04d05bd21
Add changed framework coverage reports
2025-02-12 00:20:39 +00:00
Owen Mansel-Chan
7c83b0e213
Move comment and clarify
2025-02-11 22:09:19 +00:00
Owen Mansel-Chan
1e74b7af75
Update to 1.24.0
2025-02-11 22:09:13 +00:00
Owen Mansel-Chan
228983ff0c
Update to rc3
2025-02-11 22:04:26 +00:00
Owen Mansel-Chan
8c3aa9383f
Update test expectations for rc2
2025-02-11 22:04:23 +00:00
Owen Mansel-Chan
b328d15742
Update to rc2
2025-02-11 22:04:21 +00:00
Owen Mansel-Chan
cc459cd80e
Update toolchain version regex
...
Allow release candidate versions.
2025-02-11 22:04:19 +00:00
Owen Mansel-Chan
b8cad66287
Update test results
2025-02-11 22:04:17 +00:00
Owen Mansel-Chan
d97cda7582
Add test for aliases with type params, added in go 1.24
2025-02-11 22:04:14 +00:00
Owen Mansel-Chan
e3d6480c22
Add go.mod to Types tests
2025-02-11 22:04:12 +00:00
Owen Mansel-Chan
b8297924eb
Revert some test expectations changes
2025-02-11 22:04:10 +00:00
Michael B. Gale
e93c4228ea
Go: Update test expectations for Go 1.24
2025-02-11 22:04:07 +00:00
Michael B. Gale
f6b460bace
Go: Set maxGoVersion to 1.24
2025-02-11 22:04:06 +00:00
Michael B. Gale
7623e2bcd6
Go: Bump extractor to go1.24rc1
2025-02-11 22:04:04 +00:00
Michael B. Gale
595e68cd48
Go: Bump go_sdk to 1.24rc1 in MODULE.bazel
2025-02-11 22:04:01 +00:00
Michael B. Gale
52e15f82e4
Go: Use 1.24rc1 in CI
2025-02-11 22:03:58 +00:00
Jami
2a8cc00284
Merge pull request #18288 from jcogs33/jcogs33/csrf-unprotected-request-type
...
Java: add CSRF query
2025-02-11 15:32:56 -05:00
Lindsay Simpkins
c45f13c219
Merge branch 'main' into csharp-update-MaD-upstream
2025-02-11 14:04:34 -05:00
Geoffrey White
f5ab6a6cd6
Rust: Accept integration test changes.
2025-02-11 17:39:03 +00:00
Geoffrey White
4f73429251
Rust: Accept test changes after merging latest main.
2025-02-11 17:38:51 +00:00
Geoffrey White
e7fdfd06bf
Merge branch 'main' into nth
2025-02-11 17:37:11 +00:00
Geoffrey White
0d9e1b410c
Rust: Additional test cases exposing what works and what doesn't.
2025-02-11 17:23:54 +00:00
Asger F
c306f44589
Remove override of final predicate
2025-02-11 17:07:09 +01:00
Asger F
a42480d361
Merge pull request #18733 from asgerf/js/query-string-parse-fn
...
JS: Model query-string parsers that strip off a leading '#' or '?'
2025-02-11 16:54:02 +01:00
Asger F
80e79b11f7
Apply suggestions from code review
...
Co-authored-by: Tom Hvitved <hvitved@github.com >
2025-02-11 16:53:13 +01:00
Michael Nebel
be0b3ba505
Merge pull request #18717 from michaelnebel/csharp/updatenetmodels2
...
C#: Update .NET 9 generated models.
2025-02-11 16:51:50 +01:00
yoff
158430af82
Merge pull request #17765 from yoff/python/test-functional-behaviour
...
Python: Add tests for functional-like programming
2025-02-11 16:28:37 +01:00
Simon Friis Vindum
608c1523d2
Rust: Add a few tests for modeled flow for Option
2025-02-11 16:02:04 +01:00
Geoffrey White
8a3a0ef24d
Rust: Use Future in the other models as well.
2025-02-11 14:54:52 +00:00
Geoffrey White
f61c157c0a
Rust: Repair test after merging main.
2025-02-11 14:47:42 +00:00
Geoffrey White
e594074421
Merge branch 'main' into http
2025-02-11 14:38:58 +00:00
Jonas Jensen
76440120d1
Merge pull request #18737 from jbj/NumericCastTaintedQuery-selectedLocation
...
Java: precise diff-informed NumericCastTainted
2025-02-11 15:33:28 +01:00
Simon Friis Vindum
5a49390615
Merge pull request #18685 from paldepind/rust-future-content
...
Rust: Basic support for future content and `.await`
2025-02-11 15:27:32 +01:00
Simon Friis Vindum
a09b37edc3
Rust: Expand on toString of IdentPat
2025-02-11 15:25:54 +01:00
Simon Friis Vindum
0aa08a3553
Rust: Add CFG test with identifier pattern containing sub pattern, ref, and mut
2025-02-11 15:09:10 +01:00
Arthur Baars
7e569b4fb2
Merge pull request #18713 from github/aibaars-patch-2
...
TreeSitter extractors: log fewer lines
2025-02-11 14:36:36 +01:00
Simon Friis Vindum
58d86fd2a9
Merge pull request #18714 from paldepind/rust-pointer
...
Rust: Handle writes to references and add encoding of reference content
2025-02-11 14:12:56 +01:00
Simon Friis Vindum
c7412cc839
Merge pull request #18696 from paldepind/shared-bb-dominates
...
Shared: Use edge dominance terminology in basic block library
2025-02-11 14:12:07 +01:00
Asger F
7e3f89842d
JS: Provide more precise related locations
2025-02-11 14:12:03 +01:00
Jonas Jensen
71c078dbdd
Java: precise diff-informed NumericCastTainted
...
It was discovered by the upcoming support for exact locations matching
in diff-informed testing that this data-flow configuration did not
correspond exactly to the query.
2025-02-11 13:49:15 +01:00
Michael Nebel
83f8a4057c
C#: Address review comments.
2025-02-11 13:46:28 +01:00
Michael Nebel
fbbdea09a2
C#: Add change note.
2025-02-11 13:42:48 +01:00
Michael Nebel
5d72b29fe9
C#: Update flow summaries test expected output.
2025-02-11 13:42:46 +01:00
Michael Nebel
ff74024f50
C#: Re-generate .NET Runtime models based on .NET 9.
2025-02-11 13:42:45 +01:00
Michael Nebel
54345044ad
C#: Consider properties that has any auto declaration as an auto property in terms of field store.
2025-02-11 13:42:43 +01:00
Michael Nebel
dde28a1bed
C#: Only disregard generated summaries in case there is a static call target in source code.
2025-02-11 13:42:40 +01:00
Michael Nebel
7476d9ed6b
Merge pull request #18734 from michaelnebel/csharp/launchjson
...
C#: Add the standard library to the list of references for debugging …
2025-02-11 13:16:29 +01:00
Asger F
eedfa4dbb2
Merge pull request #18341 from asgerf/py/diff-informed
...
Python: enable diff-informed data flow queries
2025-02-11 13:15:44 +01:00
Simon Friis Vindum
efb5b9b27c
Rust: Add a comment to clearify test
2025-02-11 13:15:32 +01:00
Asger F
56ff9351f2
JS: Update test output again
2025-02-11 12:59:11 +01:00
Asger F
967c0860f9
Test: support queries that don't select a Location
2025-02-11 12:58:49 +01:00
Asger F
5b0eb0f6cc
JS: Move an Alert annotation to its correct line
2025-02-11 12:58:47 +01:00
Asger F
84c02d0863
JS: Enable test post-processing
2025-02-11 12:58:46 +01:00
Asger F
fb79ab1c8c
JS: Update line numbers
2025-02-11 12:58:45 +01:00
Asger F
a1c3dca5de
JS: Convert OK-style to $-style expectations in one test
2025-02-11 12:58:44 +01:00
yoff
0912e3b024
ruby: use inline expectation tests
2025-02-11 12:51:25 +01:00
Simon Friis Vindum
003058c44a
Shared/Ruby: Use e for edges in documentation
2025-02-11 12:48:28 +01:00
Simon Friis Vindum
d6e8acd080
C#/Ruby/Swift: Tweaks to documentation
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2025-02-11 12:44:19 +01:00
Paolo Tranquilli
4a9be40e1f
Merge pull request #18710 from github/redsun82/rules_rust-update
...
Bazel: update `rules_rust`
2025-02-11 12:22:56 +01:00
Paolo Tranquilli
eee82f1700
Merge branch 'main' into redsun82/rules_rust-update
2025-02-11 12:07:08 +01:00
Paolo Tranquilli
71de5a2d3d
Rust: remove obsolete comment
2025-02-11 12:06:39 +01:00
Michael Nebel
ad05c4598d
C#: Add the standard library to the list of references for debugging the traced extractor.
2025-02-11 11:30:45 +01:00
Owen Mansel-Chan
4bb7559c18
Merge pull request #18732 from github/dependabot/go_modules/go/extractor/extractor-dependencies-a262e8450e
...
Bump golang.org/x/tools from 0.29.0 to 0.30.0 in /go/extractor in the extractor-dependencies group
2025-02-11 10:24:13 +00:00
Tom Hvitved
a061b1e00f
Merge pull request #16900 from hvitved/java/shared-ssa
...
Java: Adopt shared SSA library
2025-02-11 11:04:11 +01:00
Geoffrey White
72a8ab3411
Update rust/ql/lib/codeql/rust/frameworks/http.model.yml
...
Co-authored-by: Simon Friis Vindum <paldepind@github.com >
2025-02-11 09:55:04 +00:00
Simon Friis Vindum
8eadd11d28
C#/Swift/Ruby: Fix grammar in change note
...
Co-authored-by: Tom Hvitved <hvitved@github.com >
2025-02-11 10:42:36 +01:00
Asger F
45242977a4
JS: Model query-string parsers that strip off ? or #
2025-02-11 10:41:23 +01:00
Asger F
b123a3c57a
JS: Add test
2025-02-11 10:40:04 +01:00
Tom Hvitved
eaaf510b29
Merge pull request #18728 from hvitved/rust/path-resolution-namespaces
...
Rust: Model namespaces in path resolution
2025-02-11 10:29:57 +01:00
Tom Hvitved
e5e88435bc
Java: Remove ExitBasicBlock from SsaInput
2025-02-11 10:07:18 +01:00
Tom Hvitved
6fbb1e2571
Apply suggestions from code review
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2025-02-11 10:06:50 +01:00
Anders Schack-Mulligen
e955f58eb1
Java: Bugfix for samevar in useReaches.
2025-02-11 10:06:49 +01:00
Anders Schack-Mulligen
ed284353ef
Java: Bugfix for qualifier-of-qualifier update in hasExplicitQualifierUpdate.
2025-02-11 10:06:47 +01:00
Anders Schack-Mulligen
284e48cfbe
Java: Fixup private
2025-02-11 10:06:45 +01:00
Tom Hvitved
75137a0f4c
Java: Adopt shared SSA library
2025-02-11 10:06:43 +01:00
Simon Friis Vindum
532ca17e58
C#/Ruby/Swift: Add change note for deprecated basic block methods
2025-02-11 09:47:25 +01:00
Simon Friis Vindum
7c57962add
Merge branch 'main' into shared-bb-dominates
2025-02-11 09:31:06 +01:00
Paolo Tranquilli
f7ca717375
Merge branch 'main' into redsun82/rules_rust-update
2025-02-11 09:10:15 +01:00
Paolo Tranquilli
c0eaff6fa1
Bazel: workaround rules_rust generation weirdness
2025-02-11 09:09:52 +01:00
Anders Schack-Mulligen
e1c810a50c
Merge pull request #18729 from aschackmull/ssa/deprecate-deadcode
...
Ssa: Deprecate the unused getALastRead predicate.
2025-02-11 08:51:02 +01:00
dependabot[bot]
10cf522e71
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.29.0 to 0.30.0
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.29.0...v0.30.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: extractor-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-02-11 03:51:22 +00:00
Lindsay Simpkins
05434804ba
csharp update MaD UriBuilder
2025-02-10 17:54:58 -05:00
Lindsay Simpkins
76ae255e3f
Merge branch 'main' into csharp-update-MaD-upstream
2025-02-10 17:07:38 -05:00
Lindsay Simpkins
513a39b9f1
csharp MaD UriBuilder remove unnecessary getters/setters
2025-02-10 17:06:40 -05:00
Remco Vermeulen
9971398766
Merge pull request #18708 from rvermeulen/rvermeulen/add-ccr-suite-to-query-list
...
Add CCR suite to query list
2025-02-10 13:35:54 -08:00
yoff
9f9dde6655
ruby: include rb/database-query-in-loop in the CCR suite
2025-02-10 17:17:33 +01:00
Mathew Payne
1b30847310
Merge branch 'main' into rust-rusqlite
2025-02-10 15:22:05 +00:00
Geoffrey White
9eeae712d7
Merge pull request #18712 from GeekMasher/rust-db-sources
...
Rust: Add Database Sources + tokio-postgres support
2025-02-10 15:18:58 +00:00
Anders Schack-Mulligen
c5d0e2f125
C#/Ruby: Replace cached with nomagic for deprecated predicates.
2025-02-10 15:05:03 +01:00
Anders Schack-Mulligen
0b5270979d
SSA: Remove the need for ExitBasicBlock in SSA.
2025-02-10 14:36:18 +01:00
Anders Schack-Mulligen
34edda6b9b
C#/Ruby/Rust: Deprecate dead code.
2025-02-10 14:24:38 +01:00
Tom Hvitved
c7441ab005
Rust: Model namespaces in path resolution
2025-02-10 13:55:41 +01:00
Tom Hvitved
985ee92698
Rust: Add more path resolution tests
2025-02-10 13:52:53 +01:00
GeekMasher
3e38867cb2
feat(rust): Add ReSQLite source support
2025-02-10 11:11:01 +00:00
Geoffrey White
2c85353b7e
Merge branch 'main' into http
2025-02-10 09:07:34 +00:00
Paolo Tranquilli
5f171b67ec
Bazel: update cargo 3rd party deps
2025-02-10 08:56:49 +01:00
Lindsay Simpkins
54e0ba2e99
Merge branch 'main' into csharp-update-MaD-upstream
2025-02-07 19:45:45 -05:00
Lindsay Simpkins
04269f9569
csharp MaD UriBuilder switch to shorthand notation
2025-02-07 19:42:31 -05:00
Lindsay Simpkins
3c9e41d9b9
csharp MaD UriBuilder update tests
2025-02-07 18:40:29 -05:00
Lindsay Simpkins
011f889588
csharp MaD UriBuilder update model
2025-02-07 18:40:26 -05:00
yoff
921104306a
ruby: clean up logic and add test
...
use the CFG more than the AST
2025-02-07 23:43:27 +01:00
Joe Farebrother
61d5a692fb
Refactor metaclass logic a bit, ensure lambdas are excluded
2025-02-07 21:46:30 +00:00
Dave Bartolomeo
0b2e307f9a
Merge pull request #18705 from github/dbartol/actions-suite-selectors
...
Use default query selectors for Actions suites
2025-02-07 14:06:00 -05:00
Geoffrey White
f5b9691e7d
Rust: Accept fixed result.
2025-02-07 18:14:53 +00:00
Jon Janego
d06ca4398a
Merge pull request #18718 from github/changedocs/2.20.4
...
Update changelog to include new CodeQL CLI version
2025-02-07 12:14:37 -06:00
Geoffrey White
f3501819f7
Merge branch 'main' into nth
2025-02-07 18:13:18 +00:00
Felicity Chapman
56cfebd3ef
Try to resolve Sphinx warnings
2025-02-07 17:06:13 +00:00
Tom Hvitved
614b3cea66
Merge pull request #18697 from hvitved/rust/telemetry
...
Rust: Implement database quality telemetry query
2025-02-07 17:43:23 +01:00
Geoffrey White
b5c07540d0
Merge pull request #18621 from geoffw0/sourcemodels4
...
Rust: Improve models for environment sources, iterators
2025-02-07 16:02:28 +00:00
Jon Janego
3f653dd3e8
Update changelog to include new CodeQL CLI version
2025-02-07 09:50:33 -06:00
yoff
9d810130e1
ruby: simplify and document
2025-02-07 16:33:28 +01:00
Dave Bartolomeo
0e4725bfe2
Merge pull request #18435 from felickz/felickz/actions-trusted-owner-data-extensions
...
Convert trusted actions list to data extension
2025-02-07 10:25:41 -05:00
Dave Bartolomeo
3b02f4d7bc
Update change note
2025-02-07 10:09:31 -05:00
Dave Bartolomeo
42562b5187
Merge pull request #18704 from github/dbartol/actions-suites
...
Actions: Move experimental queries to `experimental` directory
2025-02-07 10:03:31 -05:00
Paolo Tranquilli
15a51c33bc
Rust: remove obsolete comment
2025-02-07 15:30:24 +01:00
Paolo Tranquilli
0b7cace51a
Merge branch 'main' into redsun82/rules_rust-update
2025-02-07 14:42:42 +01:00
Paolo Tranquilli
cc939e64fd
Python: fix bazel rule
2025-02-07 14:42:26 +01:00
Edward Minnix III
c96502478e
Merge pull request #18664 from egregius313/egregius313/csharp/blazor/url-param-sources
...
C#: Blazor: Add route parameters as remote flow sources
2025-02-07 08:34:29 -05:00
yoff
b3eaac0ab7
ruby: remove superflous logic
2025-02-07 14:03:57 +01:00
Tom Hvitved
11bf4c831d
Update rust/ql/src/queries/telemetry/DatabaseQualityDiagnostics.ql
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2025-02-07 13:55:11 +01:00
Simon Friis Vindum
11055760a4
Rust: Handle writes to references and add encoding of reference content
2025-02-07 13:53:17 +01:00
yoff
58fb592822
ruby: add tests
2025-02-07 13:50:27 +01:00
Simon Friis Vindum
11685a820f
Rust: Add flow tests involving references
2025-02-07 13:47:58 +01:00
Paolo Tranquilli
a82ba70594
Merge branch 'main' into redsun82/rules_rust-update
2025-02-07 13:40:07 +01:00
Ian Lynagh
c4d682f686
Merge pull request #18638 from igfoo/igfoo/ferstl
...
Java: Update test output
2025-02-07 12:03:03 +00:00
Arthur Baars
a8fbb37569
TreeSitter extractors: log fewer lines
...
Printing a line for every extracted file is too verbose and for large projects makes it impossible to view the log in the Actions UI.
2025-02-07 12:28:17 +01:00
Mathew Payne
be883ad4cc
fix(rust): Update naming of the DB source
2025-02-07 11:10:43 +00:00
Mathew Payne
6e5899b4ff
Merge branch 'main' into rust-rusqlite
2025-02-07 10:51:02 +00:00
Mathew Payne
5c656412d1
Update rust/ql/lib/codeql/rust/frameworks/tokio-postgres.model.yml
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-02-07 10:33:29 +00:00
GeekMasher
5943cc16e4
feat(rust): Add Database Sources + tokio-postgres support
2025-02-07 10:26:40 +00:00
Simon Friis Vindum
4581e772d6
Merge pull request #18709 from paldepind/rust-model-generation-test
...
Rust: Add additional tests for model generation
2025-02-07 11:14:41 +01:00
Tom Hvitved
d8c9427d3e
Merge pull request #18700 from hvitved/rust/shorthand-struct
...
Rust: Shorthand record construction in data flow
2025-02-07 10:59:52 +01:00
Paolo Tranquilli
f6301b8ea8
Rust: remove unneeded and now broken bazel workaround
2025-02-07 10:59:11 +01:00
Paolo Tranquilli
75b5493c9b
Bazel: update rules_rust
2025-02-07 10:43:10 +01:00
Simon Friis Vindum
5bef9c98ff
Rust: Accept changes
2025-02-07 10:20:15 +01:00
Simon Friis Vindum
c9b5dab097
Rust: Add additional tests for model generation
2025-02-07 09:05:27 +01:00
Tom Hvitved
100de73066
Merge pull request #18689 from hvitved/rust/path-resolution-type-param
...
Rust: Extend path resolution to cover type parameters
2025-02-07 08:55:27 +01:00
Simon Friis Vindum
9bcfd010d4
Merge pull request #18676 from paldepind/rust-model-clone
...
Rust: Model `clone`
2025-02-07 08:37:44 +01:00
yoff
37ddaa36ad
Merge pull request #18702 from github/tausbn/python-allow-comments-in-subscripts
...
Python: Allow comments in subscripts
2025-02-06 23:31:29 +01:00
yoff
381cc20cdd
Merge pull request #18703 from github/tausbn/python-robustly-handle-loop-constructs
...
Python: Handle loop constructs outside of loops
2025-02-06 23:31:04 +01:00
Remco Vermeulen
3b87fb18a6
Add CCR suite to query list
2025-02-06 14:10:27 -08:00
Ed Minnix
29d03db06b
Remove unneeded disjunction
2025-02-06 15:10:06 -05:00
Chad Bentz
fd404bcbcd
Update actions/ql/lib/change-notes/2025-01-07-trusted-owner-ext.md
...
Co-authored-by: Dave Bartolomeo <dbartol@github.com >
2025-02-06 14:28:07 -05:00
Ian Lynagh
05180376f2
Java: Update test output
2025-02-06 18:32:46 +00:00
Tom Hvitved
707bf16d90
Rust: Shorthand record construction in data flow
2025-02-06 19:19:18 +01:00
Tom Hvitved
9bc3b0e96e
Rust: Update a test to use shorthand record syntax
2025-02-06 19:19:17 +01:00
Tom Hvitved
aca70cd1ea
Merge pull request #18675 from hvitved/rust/struct-tuple-field
...
Rust: Implement data flow through tuple structs
2025-02-06 19:17:53 +01:00
yoff
d7ffc3fc77
Ruby: remove test code filtering
2025-02-06 18:10:06 +01:00
yoff
74155a0214
ruby: start adding comments
...
I apuse here, because the code may be simplified
2025-02-06 18:09:38 +01:00
Dave Bartolomeo
ca7bcc9714
Add change note
2025-02-06 11:50:59 -05:00
Dave Bartolomeo
cb7aeea516
Use standard query selectors for actions-code-scanning and actions-security-extended
2025-02-06 11:34:43 -05:00
Dave Bartolomeo
74619d49b3
Update precision and severity for unpinned-tag
...
This ensures that it will be in `security-extended`, but not the default suite.
2025-02-06 11:33:17 -05:00
Dave Bartolomeo
81ff4dd81c
Update severity for excessive-secrets-exposure
...
This ensures that it will remain in the default suite.
2025-02-06 11:32:32 -05:00
Dave Bartolomeo
d7259c17db
Add security tag for missing-actions-permissions
...
This ensures that it will remain in the default suite.
2025-02-06 11:31:36 -05:00
Dave Bartolomeo
909de5280c
Update severity and precision of a few injection queries
...
These will wind up in `security-extended`, when previously they were not in any of the standard suites.
2025-02-06 11:30:43 -05:00
Dave Bartolomeo
e2ab65ea3e
Update qlref paths
2025-02-06 11:20:19 -05:00
yoff
51a2d8c72f
ruby: rename query
2025-02-06 17:07:12 +01:00
yoff
d9d0d3c18b
ruby: add code block
2025-02-06 16:59:23 +01:00
yoff
8aa195d838
ruby: remove comment (we can create issues)
2025-02-06 16:59:08 +01:00
Dave Bartolomeo
604dbfd0d0
Actions: Move experimental to experimental directory
...
This is consistent with how other languages manage experimental queries. I've left the `experimental` tags in place.
2025-02-06 10:54:25 -05:00
Simon Friis Vindum
b2ba5f4f38
Rust: Make imports private
2025-02-06 16:07:25 +01:00
yoff
7af8fa75e6
Apply suggestions from code review
...
Co-authored-by: Aditya Sharad <6874315+adityasharad@users.noreply.github.com >
2025-02-06 15:45:28 +01:00
Geoffrey White
78e3c89c68
Rust: Accept changes to integration tests.
2025-02-06 14:33:37 +00:00
Taus
131ec8d22f
Python: Handle loop constructs outside of loops
...
Observed on some test files in Nuitka/Nuitka, having `break` and
`continue` outside of loops in Python is (to Python) a syntax error, but
our parser happily accepted this broken syntax.
This then caused issues further downstream in the control-flow
construction, as it broke some invariants.
To fix this we now skip the code that would previously fail when the
invariants are broken.
Co-authored-by: yoff <yoff@github.com >
2025-02-06 14:30:16 +00:00
Geoffrey White
bce4735062
Rust: Additional test case suggested by copilot.
2025-02-06 14:29:26 +00:00
Taus
3d25cd3bb5
Python: Add change note
2025-02-06 14:08:20 +00:00
Taus
7124e80f28
Python: Regenerate parser files
2025-02-06 14:05:40 +00:00
Taus
c5be2a3e2d
Python: Allow comments in subscripts
...
Once again, the interaction between anchors and extras (specifically
comments) was causing trouble.
The root of the problem was the fact that in `a[b]`, we put `b` in the
`index` field of the subscript node, whereas in `a[b,c]`, we
additionally synthesize a `Tuple` node for `b,c` (which matches the
Python AST).
To fix this, we refactored the grammar slightly so as to make that tuple
explicit, such that a subscript node either contains a single expression
or the newly added tuple node. This greatly simplifies the logic.
2025-02-06 14:04:57 +00:00
yoff
40851aeaef
Merge pull request #18687 from github/tausbn/python-print-file-path-on-context-error
...
Python: Print file path when logging context errors
2025-02-06 15:01:06 +01:00
Geoffrey White
a8a051234e
Rust: Model parse.
2025-02-06 12:51:41 +00:00
Geoffrey White
d0f5aad085
Rust: Model to_string.
2025-02-06 12:51:40 +00:00
Geoffrey White
1ff7a521d5
Rust: Add a flow test for some iterator methods.
2025-02-06 12:51:34 +00:00
Anders Schack-Mulligen
57735388e0
Merge pull request #18655 from aschackmull/java/typeflow-joinorder
...
TypeFlow: Improve join-order.
2025-02-06 13:12:52 +01:00
Asger F
7f4facc864
Merge pull request #18661 from asgerf/js/hoist-in-block
...
JS: Hoist function declarations to the top of a block statement
2025-02-06 12:38:51 +01:00
Chris Smowton
269f63d6b1
Format
2025-02-06 11:36:45 +00:00
Chris Smowton
b8a720510c
Use root dir license rather than removed Go license
2025-02-06 11:17:23 +00:00
Asger F
d3b9d1d89d
JS: Partial SSRF does not select the sink location
2025-02-06 11:30:32 +01:00
Geoffrey White
c597818c4b
Rust: Add a flow test for to_string() and parse().
2025-02-06 10:30:27 +00:00
Asger F
7d6abb4e0a
JS: Disable diff-informedness for full SSRF
...
Partial SSRF uses its result in a way that prevents diff-informedness
2025-02-06 11:30:18 +01:00
Geoffrey White
6966c96e7a
Rust: Add a test case for parse on a command line arg.
2025-02-06 10:29:53 +00:00
Chris Smowton
ffc6b7abb6
Update license; remove redundant Go qlpack license.
2025-02-06 10:23:37 +00:00
Tom Hvitved
89502d63e5
Rust: Implement database quality telemetry query
2025-02-06 10:46:48 +01:00
Simon Friis Vindum
820d2cbeb8
Shared: Use edge dominance in basic block library
2025-02-06 10:38:32 +01:00
Asger F
d3ee658399
Python: resolve remaining TODOs
2025-02-06 10:27:56 +01:00
Asger F
975ce064fc
Python: implement for polynomial redos
2025-02-06 10:27:45 +01:00
Asger F
15c2ccb880
Python: ignore experimental for now
2025-02-06 10:27:43 +01:00
Asger F
9dfd1cc608
Python: Fixup broken patch
2025-02-06 10:27:21 +01:00
Asger F
e4a1847dad
Python: mass enable diff-informed data flow
2025-02-06 10:27:19 +01:00
Asger F
6ae06aed9e
Update javascript/extractor/src/com/semmle/js/extractor/CFGExtractor.java
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-02-06 10:03:28 +01:00
Asger F
83ccdb76ed
Merge pull request #18686 from asgerf/ac/bash-quotation-oom
...
Actions: avoid N^2 parsing in common cases
2025-02-06 09:59:23 +01:00
Asger F
6207e39b5f
JS: Change note
2025-02-06 09:58:24 +01:00
Jami Cogswell
d21c8d789b
Java: restrict sink to first arg of two-arg constructor call
2025-02-05 21:19:59 -05:00
Jami Cogswell
bd47dcc87d
Java: check first arg for taint
2025-02-05 16:56:16 -05:00
Lindsay Simpkins
6f2832401c
csharp MaD add change note
2025-02-05 16:37:53 -05:00
Lindsay Simpkins
e0034e566f
csharp update MaD for HttpRequestMessage and UriBuilder
2025-02-05 15:49:49 -05:00
Jami Cogswell
e8724ab220
Java: sanitize constructor call instead and update test cases
2025-02-05 15:46:10 -05:00
Remco Vermeulen
7619f1dac9
Merge pull request #18679 from rvermeulen/rvermeulen/ccr-suites
...
Add CCR suites
2025-02-05 09:35:48 -08:00
Jami Cogswell
4a4585a526
Java: move comment
2025-02-05 11:36:58 -05:00
Ed Minnix
0a817eb1da
Fix test expectations
2025-02-05 11:25:51 -05:00
Ed Minnix
274a2d8dac
Remove remoteFlowSource integration test
2025-02-05 11:24:29 -05:00
Ed Minnix
a783ac1abf
Add QL tests for remoteFlowSource
2025-02-05 11:22:23 -05:00
Paolo Tranquilli
d65a704209
Merge pull request #18635 from hvitved/codegen/self-type-alias
...
Codegen: Improve return type of self-typed properties
2025-02-05 17:20:25 +01:00
Jami Cogswell
dce89c5419
Java: update qhelp to align with other csrf queries
2025-02-05 10:57:47 -05:00
Rasmus Lerchedahl Petersen
5feb401607
ruby: Add query for hoisting Rails ActiveRecord calls
...
This does not take assicoations into account.
It uses ActiveRecordModelFinderCall to identify relevant calls.
This class has therefor been made public.
2025-02-05 16:47:48 +01:00
Paolo Tranquilli
e4523ef581
Merge pull request #18684 from github/redsun82/swift-keypath-expr
...
Swift: fix `KeyPathExpr` assertion
2025-02-05 16:40:25 +01:00
Jami Cogswell
c6a71cd3fd
Java: minor qhelp updates
2025-02-05 10:20:57 -05:00
Nora Dimitrijević
ab521ff180
Merge pull request #18688 from d10c/d10c/drop-bigint-avg
...
Update docs to remove BigInt `avg`
2025-02-05 16:07:57 +01:00
Tom Hvitved
493953e724
Rust: Extend path resolution to cover type parameters
2025-02-05 15:30:07 +01:00
Tom Hvitved
9319b1848d
Merge pull request #18682 from hvitved/dataflow/aliases
...
Data flow: Add aliases for removing `DataFlow` prefixes
2025-02-05 15:04:13 +01:00
Nora Dimitrijević
e455a6c5d7
Update docs to remove BigInt avg
2025-02-05 14:27:21 +01:00
Taus
60d97e0e16
Python: Print file path when logging context errors
...
This makes it _much_ easier to find the offending bit of syntax.
2025-02-05 13:13:39 +00:00
Asger F
4ec84e9327
Actions: update expected output
2025-02-05 13:36:38 +01:00
Asger F
1904b026b2
Actions: Avoid blowup in quotation parser
...
The parser has an inherent N^2 blowup and will need a rewrite eventually. For now I'm just trying to make it not blow up as often.
2025-02-05 13:35:52 +01:00
Asger F
e6b5040909
Actions: add test with many quoted strings
2025-02-05 13:35:50 +01:00
Tom Hvitved
95ab48dfbf
Rust: Run codegen
2025-02-05 13:27:08 +01:00
Tom Hvitved
e4d9e29368
Rust: Implement data flow through tuple structs
2025-02-05 13:27:07 +01:00
Tom Hvitved
22f6f4e46b
Rust: Add data flow test for tuple structs
2025-02-05 13:27:04 +01:00
Simon Friis Vindum
6e99087b40
Rust: Basic support for futures and await
2025-02-05 13:22:57 +01:00
Geoffrey White
f9f5d2c3c2
Rust: Accept changes to consistency test .expected file as well.
2025-02-05 11:45:38 +00:00
Simon Friis Vindum
a40cfeb6c7
Rust: Add test for model returning a future
2025-02-05 12:35:56 +01:00
Owen Mansel-Chan
d7117ef3e5
Merge pull request #18681 from github/dependabot/go_modules/go/extractor/extractor-dependencies-bab70e25a9
...
Bump golang.org/x/mod from 0.22.0 to 0.23.0 in /go/extractor in the extractor-dependencies group
2025-02-05 10:50:22 +00:00
Geoffrey White
1608524c26
Rust: Accept changes to the dataflow/sources test as well.
2025-02-05 10:40:26 +00:00
Geoffrey White
0590c6f171
Rust: Fix .expected after merge.
2025-02-05 10:36:11 +00:00
Paolo Tranquilli
749fcb07be
Merge pull request #18683 from github/redsun82/swift-docs
...
Swift: update supported version in docs
2025-02-05 11:05:33 +01:00
Tom Hvitved
0f52fe92cf
Data flow: Add aliases for removing DataFlow prefixes
2025-02-05 10:57:16 +01:00
Paolo Tranquilli
1a654557a9
Swift: fix KeyPathExpr assertion
2025-02-05 10:52:34 +01:00
Paolo Tranquilli
48427b6700
Swift: update supported version in docs
2025-02-05 10:39:39 +01:00
Geoffrey White
70d969f3a0
Merge branch 'main' into http
2025-02-05 09:36:43 +00:00
Anders Schack-Mulligen
bcec7ee234
Merge pull request #18633 from aschackmull/dataflow/refactor-flowstate
...
Dataflow: Refactor FlowState to be paired with Node
2025-02-05 09:43:25 +01:00
Simon Friis Vindum
86d7feabc6
Rust: Add value flow model for clone methods
2025-02-05 09:18:58 +01:00
Simon Friis Vindum
670ecb3298
Merge pull request #18673 from paldepind/rust-higher-order-function-model-generation
...
Rust: Higher order function model generation
2025-02-05 09:15:46 +01:00
dependabot[bot]
aa14f4ee58
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.22.0 to 0.23.0
- [Commits](https://github.com/golang/mod/compare/v0.22.0...v0.23.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/mod
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: extractor-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-02-05 03:28:52 +00:00
Ed Minnix
12ebfa65dc
Change join order of Property/Name matching
2025-02-04 21:50:14 -05:00
Ed Minnix
07aad61c9e
Typo
2025-02-04 21:45:34 -05:00
Remco Vermeulen
9894e9ef9f
Add CCR suites
2025-02-05 01:58:34 +00:00
Jami Cogswell
60cc16cc0e
Java: change note
2025-02-04 17:51:34 -05:00
Jami Cogswell
59d454771d
Java: add FileConstructorSanitizer and tests
2025-02-04 17:51:23 -05:00
Jami Cogswell
0367846333
Java: remove token section from qhelp overview
...
discussing tokens is not directly relevant to this query's recommendation and examples
2025-02-04 13:36:15 -05:00
Jami Cogswell
f438282674
Java: rewrite qhelp overview section; aligns with overview section used by Python and Ruby
2025-02-04 13:21:43 -05:00
Paolo Tranquilli
04476282a7
Merge pull request #18677 from paldepind/rust-model-struct-match
...
Rust: Accept test changes
2025-02-04 19:09:27 +01:00
Jami Cogswell
283c3b1e44
Java: minor qhelp updates
2025-02-04 12:47:19 -05:00
Simon Friis Vindum
d198a4a3cd
Rust: Accept test changes
2025-02-04 18:26:05 +01:00
Simon Friis Vindum
04d3f989ec
Rust: Add tests for flow through clone
2025-02-04 17:09:26 +01:00
Joe Farebrother
287cf0121d
Fix docs
2025-02-04 15:28:13 +00:00
Geoffrey White
9a6ef3dae7
Rust: Accept more test changes.
2025-02-04 15:14:05 +00:00
Joe Farebrother
3802a73f47
Update docs
2025-02-04 14:46:02 +00:00
Joe Farebrother
e8adef18a3
Update to inline expectations + fixes
2025-02-04 14:45:59 +00:00
Joe Farebrother
aa2c84ea36
Move tests to separate folder
2025-02-04 14:45:56 +00:00
Joe Farebrother
0bf8d4ec4b
Exclude 'methods' used in initialisation, and allow self for metaclass methods
2025-02-04 14:45:52 +00:00
Joe Farebrother
fa76bf3c9f
Fix formatting and rewrite redundant exists
2025-02-04 14:45:48 +00:00
Joe Farebrother
526e235fc1
Update NonSelf and NonCls queries
2025-02-04 14:45:44 +00:00
Geoffrey White
da91f291ac
Rust: Accept changes to integration tests.
2025-02-04 14:40:49 +00:00
Geoffrey White
0cdef97276
Merge branch 'main' into sourcemodels4
2025-02-04 14:30:37 +00:00
Tom Hvitved
f1140530c0
Merge pull request #18656 from hvitved/rust/record-destruct-shorthand
...
Rust: Shorthand record pattern destructuring in data flow
2025-02-04 15:25:12 +01:00
Simon Friis Vindum
ece5557f3d
Apply suggestions from code review
...
Co-authored-by: Tom Hvitved <hvitved@github.com >
2025-02-04 15:10:32 +01:00
Arthur Baars
2a32e8865d
Merge pull request #18668 from github/post-release-prep/codeql-cli-2.20.4
...
Post-release preparation for codeql-cli-2.20.4
2025-02-04 14:22:53 +01:00
Simon Friis Vindum
b0a3cdc68c
Rust: Generate flow summaries for higher-order functions
2025-02-04 14:03:19 +01:00
Asger F
5613661a48
JS: Update another TRAP file
2025-02-04 14:02:51 +01:00
Asger F
f0afd6aa5f
Merge branch 'main' into js/hoist-in-block
2025-02-04 14:01:57 +01:00
Simon Friis Vindum
c9e702d107
Rest: Add tests for higher-order functions
2025-02-04 13:44:29 +01:00
Jeroen Ketema
89bbef935d
Merge pull request #18672 from jketema/codeblock-name
...
C++: Update expected test results after extractor changes
2025-02-04 13:39:54 +01:00
Geoffrey White
d72361588c
Update rust/ql/test/library-tests/dataflow/sources/test.rs
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-02-04 12:25:02 +00:00
Jeroen Ketema
1591a56aab
C++: Update expected test results after extractor changes
2025-02-04 13:19:49 +01:00
Simon Friis Vindum
8d01bbc1e3
Merge pull request #18628 from paldepind/rust-flow-summary-generation
...
Rust: Initial model generation setup
2025-02-04 12:37:09 +01:00
Asger F
80824cfdc7
JS: Benign test output changes
2025-02-04 12:12:41 +01:00
Geoffrey White
23e9270a20
Rust: Add test cases for flow through references.
2025-02-04 10:28:08 +00:00
Geoffrey White
810dd55d47
Rust: Add test cases for flow through async / await.
2025-02-04 10:28:06 +00:00
Geoffrey White
ff53d422cb
Rust: Model some sources in hyper.
2025-02-04 10:28:05 +00:00
Geoffrey White
d64d955253
Rust: Add test cases for requests through hyper + http.
2025-02-04 10:27:58 +00:00
Asger F
294fd0a7a7
Merge pull request #18653 from asgerf/js/source-on-same-line
...
Test: Don't expect 'Source' tag when source and alert are on the same same
2025-02-04 11:01:46 +01:00
fabienpe
af073b78d9
Merge branch 'main' into main
2025-02-04 09:50:35 +00:00
Asger F
3d3f07ad72
Merge pull request #18658 from asgerf/js/jsx-parser-first-attempt
...
JS: Use JSX syntax in first attempt when extension is .jsx
2025-02-04 10:49:26 +01:00
fabienpe
9a37682851
Moved comment to previous line if resulting in long line
2025-02-04 09:48:34 +00:00
Asger F
d22268e119
JS: Update TRAP again
...
The extra successor edge was due to visiting hoisted function declaration IDs multiple times,
which has now been fixed.
2025-02-04 10:47:08 +01:00
Anders Schack-Mulligen
73d7250688
Dataflow: Fix join-order issue.
2025-02-04 10:47:02 +01:00
Anders Schack-Mulligen
da34c0b3ac
Dataflow: Fixup some qldoc.
2025-02-04 10:47:01 +01:00
Anders Schack-Mulligen
db1ed67e52
JS: Simplify config in PrototypePollutingFunction.ql.
2025-02-04 10:47:01 +01:00
Anders Schack-Mulligen
e55130ebce
Dataflow: Remove unused predicate.
2025-02-04 10:47:00 +01:00
Anders Schack-Mulligen
2597ef651b
Dataflow: Avoid duplication in fwdFlow1 disjunction.
2025-02-04 10:47:00 +01:00
Anders Schack-Mulligen
b2d42ee49a
Dataflow: Rename two predicates to remove need for alias defs.
2025-02-04 10:46:59 +01:00
Anders Schack-Mulligen
e0cb70a492
Dataflow: Minor cleanup.
2025-02-04 10:46:59 +01:00
Anders Schack-Mulligen
b4197b08aa
Dataflow: Use (node,state) pair as node type in stage 2+.
2025-02-04 10:46:58 +01:00
Anders Schack-Mulligen
1166aa6a43
Dataflow: Prepare a (node,state) pair type.
2025-02-04 10:46:58 +01:00
Anders Schack-Mulligen
1799bf9d14
Dataflow: Parameterise stages 2-6 over the node type.
2025-02-04 10:46:58 +01:00
Anders Schack-Mulligen
d5759a7f33
Dataflow: Move definition of toNormalSinkNode.
2025-02-04 10:46:57 +01:00
Anders Schack-Mulligen
3cbf8e517f
Dataflow: Remove superfluous constraint.
2025-02-04 10:46:57 +01:00
Anders Schack-Mulligen
04db61a0fe
Dataflow: Move Stage1 to its own file. Stick flow exploration in there as well.
2025-02-04 10:46:56 +01:00
Anders Schack-Mulligen
02a81a0897
Dataflow: Rename signature to preempt name clash.
2025-02-04 10:46:56 +01:00
Asger F
5e109ff457
JS: Update test output
2025-02-04 10:45:37 +01:00
Simon Friis Vindum
cf4f6575d1
Merge branch 'main' into rust-flow-summary-generation
2025-02-04 10:42:11 +01:00
Asger F
1e5885ea1e
JS: Remove hoisting code from functions
...
'buildFunctionBody' no longer needs to handle hoisting, because hoisting now happens when visiting the block statement that is the body of the function.
Note that curly-brace functions contain a block statement as their body, not a list of statements.
2025-02-04 10:41:47 +01:00
github-actions[bot]
f1b05a79a4
Post-release preparation for codeql-cli-2.20.4
2025-02-04 09:25:09 +00:00
Simon Friis Vindum
07413315a1
Rust: Address PR comments
2025-02-04 10:19:04 +01:00
Tom Hvitved
90944d5252
Merge pull request #18609 from hvitved/rust/dataflow-path-resolution
...
Rust: Use `PathResolution` module in data flow
2025-02-04 10:11:54 +01:00
Anders Schack-Mulligen
ce976dcc79
TypeFlow: Improve join-order.
2025-02-04 10:11:46 +01:00
Simon Friis Vindum
fc15c0d3b2
Merge branch 'main' into rust-flow-summary-generation
2025-02-04 10:10:33 +01:00
Asger F
7bf69d92ca
Merge pull request #2 from hvitved/js/source-on-same-line
...
Test: Remove location parsing
2025-02-04 10:09:35 +01:00
Tom Hvitved
acd31dd701
Merge pull request #18657 from hvitved/rust/dataflow-node-api
...
Rust: Hide internal implementation details from `DataFlow::Node`
2025-02-04 09:41:44 +01:00
Tom Hvitved
5a24440e59
Update rust/ql/lib/codeql/rust/dataflow/internal/DataFlowImpl.qll
...
Co-authored-by: Simon Friis Vindum <paldepind@github.com >
2025-02-04 09:38:16 +01:00
Asger F
09270f4e20
JS: Change note
2025-02-04 09:36:46 +01:00
Tom Hvitved
fc04ad1ef0
Test: Remove location parsing
2025-02-04 09:34:33 +01:00
Michael Nebel
d3b714340e
Merge pull request #18666 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2025-02-04 09:06:32 +01:00
Ed Minnix
eb25c768bb
Change note
2025-02-03 22:35:57 -05:00
Ed Minnix
5236a40d0a
Remove unnecessary class
2025-02-03 22:34:08 -05:00
github-actions[bot]
42b5222432
Add changed framework coverage reports
2025-02-04 00:20:33 +00:00
Jami Cogswell
516df3b4be
Java: qhelp wording updates
2025-02-03 14:52:57 -05:00
Arthur Baars
c524a98eb9
Merge pull request #18659 from github/release-prep/2.20.4
...
Release preparation for version 2.20.4
2025-02-03 19:35:41 +01:00
Arthur Baars
63da935979
Apply suggestions from code review
2025-02-03 18:44:03 +01:00
Arthur Baars
dd34690c17
Merge branch 'codeql-cli-2.20.4' into release-prep/2.20.4
2025-02-03 18:37:16 +01:00
Arthur Baars
49a306719e
Merge pull request #18663 from github/main
...
Merge main into codeql-cli-2.20.4
2025-02-03 18:11:55 +01:00
github-actions[bot]
573e53e454
Release preparation for version 2.20.4
2025-02-03 15:19:35 +00:00
Jeroen Ketema
5e927634bc
Merge pull request #18660 from MathiasVP/fix-union-regression
...
C++: Fix regression from #18629
2025-02-03 16:15:11 +01:00
Jonas Jensen
0584aee72a
Merge pull request #18636 from jbj/diff-informed-java-location-fixups
...
Java: make diff-informed queries exact
2025-02-03 15:22:43 +01:00
Asger F
427e329363
JS: Bump extractor version string
2025-02-03 15:21:41 +01:00
Asger F
7eebe468ee
JS: Update TRAP output
...
This seems to have reordered the TRAP lines but without semantic change.
2025-02-03 15:21:09 +01:00
Asger F
be082578d4
JS: Hoist function decls in a block to the top of the block
2025-02-03 15:21:08 +01:00
Asger F
29879297ee
JS: Add test showing missed call to later-defined function in block
2025-02-03 14:56:11 +01:00
Tom Hvitved
45fc1daa74
Rust: Hide internal implementation details from DataFlow::Node
2025-02-03 14:12:56 +01:00
Mathias Vorreiter Pedersen
0e6936d418
C++: Strip the type when computing the base type of a chain of qualifiers.
2025-02-03 12:42:11 +00:00
Michael Nebel
e39ad940a7
Merge pull request #18587 from michaelnebel/csharp/updatestubs
...
C#: Update stubs
2025-02-03 13:19:52 +01:00
Michael Nebel
7e18b3e016
Merge pull request #18533 from michaelnebel/csharp/partialmembers
...
C# 13: Partial properties and indexers.
2025-02-03 13:18:43 +01:00
Asger F
2d36a5d478
JS: Use JSX syntax in first attempt when extension is .jsx
2025-02-03 13:17:15 +01:00
Tom Hvitved
f1050c4988
Rust: Shorthand record pattern destructuring in data flow
2025-02-03 13:00:52 +01:00
Tom Hvitved
4923156d0d
Address review comments
2025-02-03 12:52:31 +01:00
Owen Mansel-Chan
a3de138ec2
Merge pull request #18511 from owen-mc/go/docs/data-flow
...
Update documentation on data flow in Go (and some small fixes for java)
2025-02-03 11:11:04 +00:00
Calum Grant
ed3ad1a226
Merge pull request #18613 from github/calumgrant/bmn/wrong-type-format-arg-linkage
...
C++: Remove FPs in cpp/wrong-type-format-argument caused by no linker awareness
2025-02-03 10:39:32 +00:00
Asger F
fc1d36f867
Rust: update a Rust test case
2025-02-03 11:31:04 +01:00
Asger F
78a7f2670a
JS: Update a JS test case
2025-02-03 11:31:03 +01:00
Asger F
28472ae12f
Test: Don't expect 'Source' tag when source and alert are on same line
...
Previously the Source tag was required if the source and alert did not
have the exact same location. This relaxes the restriction to being on
the same line.
Note that in order to be "on the same line" both start and end lines
have to match.
It's still possible for a given line to expect both Alert and Source
tags, in case the source pairs up with another alert on a different
line.
2025-02-03 11:31:02 +01:00
Jeroen Ketema
25d8f0e161
Merge branch 'main' into calumgrant/bmn/wrong-type-format-arg-linkage
2025-02-03 11:23:27 +01:00
Calum Grant
6e3a169544
C++: Add change note
2025-02-03 09:48:06 +00:00
Tom Hvitved
1066b880aa
Merge pull request #18644 from hvitved/rust/fix-bad-join
...
Rust: Fix a bad join
2025-02-03 10:16:09 +01:00
Tom Hvitved
3d3b785400
Rust: Remove redundant infix casts
2025-02-03 09:12:09 +01:00
Tom Hvitved
e78b79fa45
Update misc/codegen/lib/ql.py
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-02-03 09:11:13 +01:00
Tom Hvitved
55ac9ae021
Swift: Run codegen
2025-02-03 09:11:11 +01:00
Tom Hvitved
ebe2084507
Rust: Run codegen
2025-02-03 09:11:10 +01:00
Tom Hvitved
ec33457ad4
Codegen: Improve return type of self-typed properties
2025-02-03 09:11:09 +01:00
Simon Friis Vindum
0a9b864738
Rust: Fix model generation test
2025-02-03 09:06:07 +01:00
Ed Minnix
414c0a646a
Fix test results
2025-01-31 12:52:48 -05:00
Ed Minnix
aaefa0f82a
Add remote flow source test
2025-01-31 11:32:13 -05:00
fabienpe
a9f107ce06
Added missing "GOOD" and "BAD" to some examples
2025-01-31 15:47:25 +00:00
Tom Hvitved
cd1ff6a176
Rust: Fix a bad join
...
Before
```
[2025-01-31 14:40:10] Evaluated non-recursive predicate SsaImpl::capturedCallRead/4#1f9b0af4@6f60dcog in 10553ms (size: 372366).
Evaluated relational algebra for predicate SsaImpl::capturedCallRead/4#1f9b0af4@6f60dcog with tuple counts:
1992868487 ~4% {6} r1 = JOIN `_BasicBlock::Make<Locations::Location,BasicBlocks::BasicBlocksImpl::BasicBlockInputSig>::Cached::get__#shared` WITH `SsaImpl::variableWriteInOuterScope/4#aca2ef34` ON FIRST 1 OUTPUT Lhs.1, Lhs.0, Lhs.2, Rhs.1, Rhs.2, Rhs.3
{6} | REWRITE WITH TEST InOut.3 < InOut.2
998449075 ~0% {5} | SCAN OUTPUT In.4, In.5, In.0, In.1, In.2
12205909 ~1% {4} r2 = JOIN `_BasicBlock::Make<Locations::Location,BasicBlocks::BasicBlocksImpl::BasicBlockInputSig>::Cached::get__#shared` WITH `boundedFastTC:BasicBlocks::BasicBlock.getAPredecessor/0#dispred#268ed41b:_BasicBlock::Make<Locations::Location,BasicBlocks::BasicBlocksImpl::BasicBlockInputSig>::Cached::get__#higher_order_body` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.0, Lhs.2
34440992 ~9% {5} | JOIN WITH `project#SsaImpl::variableWriteInOuterScope/4#aca2ef34` ON FIRST 1 OUTPUT Rhs.1, Rhs.2, Lhs.1, Lhs.2, Lhs.3
1032890067 ~0% {5} r3 = r1 UNION r2
680217 ~74% {4} | JOIN WITH `SsaImpl::hasCapturedRead/2#847e9f91` ON FIRST 2 OUTPUT Lhs.2, Lhs.3, Lhs.4, Lhs.0
return r3
```
After
```
[2025-01-31 14:43:05] Evaluated non-recursive predicate SsaImpl::capturedCallRead/4#1f9b0af4@15fdf34h in 74ms (size: 373835).
Evaluated relational algebra for predicate SsaImpl::capturedCallRead/4#1f9b0af4@15fdf34h with tuple counts:
1106129 ~0% {3} r1 = SCAN `project#SsaImpl::variableWriteInOuterScope/4#aca2ef34` OUTPUT In.1, In.2, In.0
25209 ~20% {2} | JOIN WITH `SsaImpl::hasCapturedRead/2#847e9f91` ON FIRST 2 OUTPUT Lhs.2, Lhs.0
339364 ~6% {2} | JOIN WITH `boundedFastTC:BasicBlocks::BasicBlock.getAPredecessor/0#dispred#268ed41b_10#higher_order_body:_SsaImpl::hasCapturedRead/2#847e9f91_project#SsaImpl::variableWriteInOuterScope/4#aca2ef34#higher_order_body` ON FIRST 1 OUTPUT Rhs.1, Lhs.1
2095088 ~0% {4} | JOIN WITH `BasicBlock::Make<Locations::Location,BasicBlocks::BasicBlocksImpl::BasicBlockInputSig>::Cached::getNode/2#4226f9fe` ON FIRST 1 OUTPUT Lhs.0, Rhs.1, Rhs.2, Lhs.1
1121531 ~0% {4} r2 = SCAN `SsaImpl::variableWriteInOuterScope/4#aca2ef34` OUTPUT In.2, In.3, In.0, In.1
25820 ~22% {3} | JOIN WITH `SsaImpl::hasCapturedRead/2#847e9f91` ON FIRST 2 OUTPUT Lhs.2, Lhs.0, Lhs.3
505208 ~1% {5} | JOIN WITH `BasicBlock::Make<Locations::Location,BasicBlocks::BasicBlocksImpl::BasicBlockInputSig>::Cached::getNode/2#4226f9fe` ON FIRST 1 OUTPUT Lhs.1, Lhs.0, Lhs.2, Rhs.1, Rhs.2
{5} | REWRITE WITH TEST InOut.2 < InOut.3
344294 ~6% {4} | SCAN OUTPUT In.1, In.3, In.4, In.0
2439382 ~0% {4} r3 = r1 UNION r2
2434485 ~7% {4} | JOIN WITH `BasicBlock::Make<Locations::Location,BasicBlocks::BasicBlocksImpl::BasicBlockInputSig>::Cached::getNode/2#4226f9fe` ON FIRST 3 OUTPUT Lhs.2, Lhs.3, Lhs.0, Lhs.1
2393182 ~3% {4} | JOIN WITH ControlFlowGraphImpl::CfgImpl::Cached::TAstNode#8f9a3aff_31#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3
380879 ~0% {4} | JOIN WITH `SsaImpl::isControlFlowJump/1#c535656e` ON FIRST 1 OUTPUT Lhs.0, Lhs.2, Lhs.3, Lhs.1
return r3
```
2025-01-31 14:45:36 +01:00
Tom Hvitved
d56bf657b9
Rust: Use PathResolution module in data flow
2025-01-31 13:29:15 +01:00
Tom Hvitved
180782d863
Merge pull request #18579 from hvitved/rust/path-resolution
...
Rust: Implement path resolution in QL
2025-01-31 13:22:21 +01:00
Arthur Baars
384c040679
Merge pull request #18641 from github/aibaars/bazel-rust-opt
...
Rust: build optimized code
2025-01-31 12:37:19 +01:00
Jonas Jensen
7ad6f13bf5
Java: adjust CommandLineQuery locations
...
It turns out these locations need to be precise.
2025-01-31 11:37:16 +01:00
Michael Nebel
42d65f9c7c
C#: Add change-note.
2025-01-31 10:37:05 +01:00
Michael Nebel
e863bf5f24
C#: Update TaintTrackingPath test expected output.
2025-01-31 10:37:04 +01:00
Michael Nebel
79fc735c93
C#: Update flow summaries expected file.
2025-01-31 10:37:02 +01:00
Michael Nebel
2cd2d3fe1a
C#: Add some manual models for params ReadOnlySpan overloads of common library methods.
2025-01-31 10:37:00 +01:00
Michael Nebel
ecb2e61d7a
C#: Update flow summaries test expected output.
2025-01-31 10:36:59 +01:00
Michael Nebel
8781d6762c
C#: Update test options files to point to the new stubs.
2025-01-31 10:36:57 +01:00
Michael Nebel
82a193705c
C#: Update stubs for other nuget packages and manually cleanup some of the project referenes.
2025-01-31 10:36:56 +01:00
Arthur Baars
4e3c23b68e
Rust: build optimized code
2025-01-31 10:12:41 +01:00
Tom Hvitved
1cb524f76f
Rust: Remove useTreeIsGlobImport workaround
2025-01-31 10:10:58 +01:00
Tom Hvitved
9d06f80902
Rust: Elaborate QL doc on PathResolution.qll
2025-01-31 10:10:57 +01:00
Tom Hvitved
8eb5792f3b
Address review comments
2025-01-31 10:10:55 +01:00
Tom Hvitved
1f6d39f520
Rust: Rename modules test to path-resolution
2025-01-31 10:07:10 +01:00
Tom Hvitved
0aee2e6fb2
Rust: Implement path resolution in QL
2025-01-31 10:07:08 +01:00
Michael Nebel
c7f5de851c
C#: Update .NET and ASP.NET framework stubs.
2025-01-31 10:02:40 +01:00
Michael Nebel
8d2ac484b2
C#: Update make_stubs_all to pin ServicePack version number and add some more packages (that previously were transitive dependencies).
2025-01-31 10:02:38 +01:00
Asger F
a0af4c9a84
Merge pull request #18622 from asgerf/js/typescript-tsconfig-names
...
JS: Treat more file patterns as tsconfig-like files
2025-01-31 09:42:50 +01:00
Asger F
a45da05086
Merge pull request #18623 from asgerf/js/nest-di
...
JS: Add support for dependency injection in Nest
2025-01-31 09:42:41 +01:00
Ed Minnix
6ae7edeae0
Add Blazor components file to Remote sources module
2025-01-30 23:07:15 -05:00
Ed Minnix
8bae79d9ce
Components file
2025-01-30 23:07:03 -05:00
Asger F
2e65fe9597
JS: Change note
2025-01-30 20:46:30 +01:00
Asger F
d23c198072
JS: Change note
2025-01-30 20:41:20 +01:00
Mathias Vorreiter Pedersen
f35fea3bee
Merge pull request #18629 from MathiasVP/fix-more-fps-in-buffer-overflow
...
C++: Fix more FPs in `cpp/overflow-buffer`
2025-01-30 18:28:10 +00:00
Mathias Vorreiter Pedersen
02cf458232
C++: Add change note.
2025-01-30 16:50:22 +00:00
Mathias Vorreiter Pedersen
764a84601f
Update cpp/ql/lib/semmle/code/cpp/commons/Buffer.qll
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2025-01-30 16:09:44 +00:00
Jeroen Ketema
0a8b76c46b
Merge pull request #18637 from jketema/forgotten
...
C++: Update expected test results
2025-01-30 17:01:21 +01:00
Jeroen Ketema
94608c5996
C++: Update expected test results
...
This seemed to have slipped through earlier.
2025-01-30 16:53:24 +01:00
Mathias Vorreiter Pedersen
839640a82f
Update cpp/ql/lib/semmle/code/cpp/commons/Buffer.qll
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2025-01-30 15:31:36 +00:00
Jami Cogswell
0071e1acc2
Java: resolve merge conflict
...
remove import no longer needed since contents of MyBatisMapperXML.qll have been moved to MyBatis.qll
2025-01-30 10:19:21 -05:00
Jami Cogswell
577152e20f
Java: minor qhelp update
2025-01-30 10:14:33 -05:00
Jami Cogswell
530103e2d9
Java: narrow query
...
remove PUT and DELETE from StaplerCsrfUnprotectedMethod
remove OPTIONS and TRACE from SpringCsrfUnprotectedMethod
2025-01-30 10:14:31 -05:00
Jami Cogswell
ead224c7b2
Java: expand qhelp, include Stapler examples
2025-01-30 10:14:29 -05:00
Jami Cogswell
096f6f88b2
Java: precision to medium
2025-01-30 10:14:27 -05:00
Jami Cogswell
f3721ebccf
Java: refactor unprotectedDatabaseUpdate
2025-01-30 10:14:26 -05:00
Jami Cogswell
530a77e5a0
Java: refactor into canTargetDatabaseUpdateMethod
2025-01-30 10:14:24 -05:00
Jami Cogswell
8173fd01b8
Java: use two negations
2025-01-30 10:14:22 -05:00
Jami Cogswell
0462425191
Java: rename getMethod to getMethodValue
2025-01-30 10:14:20 -05:00
Jami Cogswell
20e8eb4323
Java: some clean-up and refactoring
2025-01-30 10:14:18 -05:00
Jami Cogswell
d4114f66c2
Java: more name-based heuristic tests to test regex
2025-01-30 10:14:16 -05:00
Jami Cogswell
0ab37684e1
Java: more database update tests and stubs
2025-01-30 10:14:14 -05:00
Jami Cogswell
3bf6dc24c1
Java: Stapler tests and stubs
2025-01-30 10:14:11 -05:00
Jami Cogswell
26b7c1a572
Java: qldocs for CallGraph module
2025-01-30 10:14:09 -05:00
Jami Cogswell
27aa9c97a4
Java: add change note
2025-01-30 10:14:07 -05:00
Jami Cogswell
fa27689719
Java: update InlineExpectationsTest import for new location
2025-01-30 10:14:05 -05:00
Jami Cogswell
48d55ec518
Java: performance fix
2025-01-30 10:14:03 -05:00
Jami Cogswell
ede9e78645
Java: remove exists variable in test
2025-01-30 10:14:01 -05:00
Jami Cogswell
48d1fe062b
Java: remove exists variable
2025-01-30 10:13:59 -05:00
Jami Cogswell
c9ad15cc83
Java: update .expected file contents
2025-01-30 10:13:57 -05:00
Jami Cogswell
39ccde0c9d
Java: add name-based heuristic
2025-01-30 10:13:54 -05:00
Jami Cogswell
286c655264
Java: add class for Stapler web methods that are not default-protected from CSRF
2025-01-30 10:13:52 -05:00
Jami Cogswell
0f39011122
Java: add taint-tracking config for execute to exclude FPs from non-update queries like select
2025-01-30 10:13:50 -05:00
Jami Cogswell
97aaf4c011
Java: handle MyBatis annotations for insert/update/delete
2025-01-30 10:13:48 -05:00
Jami Cogswell
df77d4914f
Java: initial tests
2025-01-30 10:13:45 -05:00
Jami Cogswell
178b032453
Java: add query
2025-01-30 10:13:43 -05:00
Jami Cogswell
c553e3132e
Java: add CallGraph module for displaying call graph paths
2025-01-30 10:13:41 -05:00
Jami Cogswell
87a8746b22
Java: add a class for methods that update a sql database (found using sql-injection nodes)
2025-01-30 10:13:39 -05:00
Jami Cogswell
43a288070c
Java: add a class for PreparedStatement methods that update a database
2025-01-30 10:13:37 -05:00
Jami Cogswell
b88731df80
Java: move contents of MyBatisMapperXML.qll in src to MyBatis.qll in lib so importable, and fix experimental files broken by the move
2025-01-30 10:13:27 -05:00
Jami Cogswell
8e9f21dc52
Java: add a class for MyBatis Mapper methods that update a database
2025-01-30 10:01:43 -05:00
Jami Cogswell
506d668289
Java: add class for Spring request mapping methods that are not default-protected from CSRF
2025-01-30 10:01:41 -05:00
Jami Cogswell
0c6925399d
Java: add qhelp
2025-01-30 10:01:39 -05:00
Chuan-kai Lin
b3b7817a2b
Merge pull request #18603 from github/cklin/restrict-alerts-to-exact
...
AlertFiltering: add restrictAlertsToExactLocation
2025-01-30 06:40:39 -08:00
Anders Schack-Mulligen
8edcad0509
Merge pull request #18634 from aschackmull/cpp/unnest-getkind
...
C++: Un-nest the if-then-else sequence.
2025-01-30 14:07:07 +01:00
Jeroen Ketema
8f25dbf98d
Merge pull request #18606 from jketema/typeref
...
C++: Support mixed `typedef`s and `using`s
2025-01-30 14:04:48 +01:00
Jonas Jensen
e27e3ae5a1
Merge pull request #18610 from jbj/bigint-language-reference
...
QL reference: more BigInt updates
2025-01-30 13:47:30 +01:00
Anders Schack-Mulligen
15171eb1a5
C++: Un-nest the if-then-else sequence.
2025-01-30 13:28:44 +01:00
Jonas Jensen
455eb5bf9b
QL spec: fix typo
2025-01-30 13:09:15 +01:00
Simon Friis Vindum
f76647fc00
Rust: Initial model generation setup
2025-01-30 11:45:21 +01:00
Mathias Vorreiter Pedersen
9fa3ff74cc
C++: Accept test changes.
2025-01-29 18:32:35 +00:00
Mathias Vorreiter Pedersen
403a0eb8e6
C++: Fix FPs in 'cpp/overflow-buffer' caused by unions of structs.
2025-01-29 18:30:20 +00:00
Mathias Vorreiter Pedersen
941ad870cb
C++: Move 'hasAFieldWithOffset' to 'Field'.
2025-01-29 18:19:17 +00:00
Mathias Vorreiter Pedersen
3591f84a50
C++: Add lots of tests for CWE-119 involving unions and structs.
2025-01-29 18:11:23 +00:00
Chuan-kai Lin
d6f9eb2953
Merge pull request #18617 from github/cklin/merge-back-2.20.3
...
Mergeback from codeql-cli-2.20.3
2025-01-29 08:15:51 -08:00
Chuan-kai Lin
96caa686fc
AlertFiltering: add restrictAlertsToExactLocation
...
This commit introduces a new extensible predicate
restrictAlertsToExactLocation, which is similar to the existing
restrictAlertsTo predicate but matches alert locations exactly.
2025-01-29 07:50:45 -08:00
Owen Mansel-Chan
04e17ec987
Merge pull request #18565 from owen-mc/go/mad/parameter
...
Go: Fix "Parameter" in models-as-data
2025-01-29 14:13:17 +00:00
Owen Mansel-Chan
168fe4ae20
Merge pull request #18543 from owen-mc/go/misc-improvements-rs-cors
...
Go: miscellaneous improvements rs cors models
2025-01-29 14:12:20 +00:00
Arthur Baars
54efb0a4a6
Merge pull request #18611 from github/aibaars/use-tree-star
...
Rust: add UseTree::is_star
2025-01-29 14:42:03 +01:00
Calum Grant
a033ba9347
C++: Detect multiple definitions based on the format parameter index
2025-01-29 13:36:10 +00:00
Asger F
16f7373712
JS: Model dependency injection in Nest
2025-01-29 13:49:46 +01:00
Asger F
89ad737b2a
JS: Add internal extension points sources of class objects/instances
2025-01-29 13:49:44 +01:00
Asger F
b07c5c6ee0
JS: Add test
2025-01-29 13:49:43 +01:00
Mathias Vorreiter Pedersen
4b2c7ef03f
Merge pull request #18615 from MathiasVP/fix-fp-buffer-overflow
...
C++: Fix FPs in `cpp/overflow-buffer`
2025-01-29 12:12:47 +00:00
Mathias Vorreiter Pedersen
6e312140ce
Merge pull request #18618 from MathiasVP/18592-follow-follow-up-up
...
C++: Don't infer lambda calls when there is a static dispatch
2025-01-29 12:04:46 +00:00
Simon Friis Vindum
e141b4ee95
Merge pull request #18612 from paldepind/shared-model-generation-row
...
Shared: Generalize the number of columns in a generated MaD row
2025-01-29 12:56:07 +01:00
Mathias Vorreiter Pedersen
48cae7e7ed
C++: Accept test changes after previous commit.
2025-01-29 11:04:55 +00:00
Mathias Vorreiter Pedersen
373b38e881
Update cpp/ql/test/query-tests/Security/CWE/CWE-119/semmle/tests/tests.cpp
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2025-01-29 11:03:52 +00:00
Simon Friis Vindum
9d87f26145
Shared: Use strictconcat in model generator printing
2025-01-29 11:56:39 +01:00
Asger F
6d04425790
JS: Add test
2025-01-29 11:14:21 +01:00
Asger F
d66d1a79d6
JS: Also update legacy entry point used by qltest
2025-01-29 11:14:10 +01:00
Asger F
8182190120
JS: Remove trailing whitespace
2025-01-29 10:53:26 +01:00
Asger F
bf80f0798b
JS: Treat more file patterns as as tsconfig.json-like
2025-01-29 10:53:18 +01:00
Michael Nebel
ee5416f0b1
Merge pull request #18299 from michaelnebel/java/deprecateexperimental
...
Java: Deprecate experimental queries.
2025-01-29 10:41:25 +01:00
Simon Friis Vindum
70550950d8
Java, C#: Ensure variable is used in all disjuncts
2025-01-29 10:30:26 +01:00
Geoffrey White
3b5397f3b0
Rust: Model Iterator.collect.
2025-01-29 09:19:20 +00:00
Geoffrey White
de149a9623
Rust: Model Iterator.nth.
2025-01-29 09:19:19 +00:00
Geoffrey White
80e50f9b04
Rust: Make sources more accurate (iterator contents).
2025-01-29 09:19:18 +00:00
Geoffrey White
a42c0f6b5b
Merge pull request #18605 from geoffw0/expect
...
Rust: Improve models for environment sources, expect and unwrap
2025-01-29 09:11:30 +00:00
Asger F
f8694a34e5
Merge pull request #18397 from aegilops/angular-sources-sinks
...
JavaScript CodeQL library updates: new Angular sink(s)
2025-01-29 09:09:23 +01:00
Mathias Vorreiter Pedersen
bc50634472
Merge pull request #18616 from MathiasVP/18592-follow-up
...
C++: #18592 follow-up
2025-01-28 20:00:16 +00:00
Andrew Eisenberg
a4d9956c94
Merge pull request #18614 from github/aeisenberg/remove-pr-template
...
Delete .github/pull_request_template.md
2025-01-28 10:54:08 -08:00
Mathias Vorreiter Pedersen
be2777bc31
C++: Don't infer lambda calls when there is a static dispatch to a source or summary callable.
2025-01-28 18:51:31 +00:00
Chuan-kai Lin
225ce81d26
Merge branch 'main' into cklin/merge-back-2.20.3
2025-01-28 10:11:30 -08:00
Chuan-kai Lin
36d1c5602e
Merge pull request #18589 from github/cklin/merge-back-2.20.2
...
Mergeback from codeql-cli-2.20.2
2025-01-28 10:04:43 -08:00
Mathias Vorreiter Pedersen
a35ed57848
Revert "C++: Don't generate parameter nodes for bodyless parameters when there is a summary of the enclosing function."
...
This reverts commit ad80b36074 .
2025-01-28 17:09:45 +00:00
Mathias Vorreiter Pedersen
ff9a4d02f0
Merge pull request #18592 from MathiasVP/fix-enclosing-callable-cpp
...
C++: Don't generate dataflow nodes for functions with summaries
2025-01-28 16:57:44 +00:00
Geoffrey White
919e7978cd
Rust: Add PrettyPrintModels.ql to the test. I gather this stabilized the output MaD IDs.
2025-01-28 16:23:20 +00:00
Geoffrey White
df8a92cb62
Merge pull request #6 from hvitved/expect
...
Rust: Fix data flow through callbacks passed to library functions
2025-01-28 16:12:17 +00:00
Mathias Vorreiter Pedersen
202a5e86da
C++: Add change note.
2025-01-28 16:07:09 +00:00
Chuan-kai Lin
b9b9394259
AlertFiltering: allow multiple filtering predicates
...
This commit rephrases the documentation for the restrictAlertsTo
predicate and renames the predicate columns for clarity. The new
documentation should be equivalent to the old documentation, except
allowing for the possibility that there may be multiple alert filtering
predicates.
2025-01-28 07:51:45 -08:00
Mathias Vorreiter Pedersen
c9a3cf4bd0
C++: Accept test changes.
2025-01-28 15:48:11 +00:00
Mathias Vorreiter Pedersen
d6054c9a51
C++: Infer larger buffer sizes for non-static member variables.
2025-01-28 15:48:04 +00:00
Mathias Vorreiter Pedersen
1643a66183
C++: Add 'cpp/overflow-buffer' FP tests.
2025-01-28 15:44:53 +00:00
Andrew Eisenberg
4e7d364f4d
Delete .github/pull_request_template.md
...
The template is not useful.
2025-01-28 07:40:56 -08:00
Owen Mansel-Chan
2d76466405
Add change note
2025-01-28 15:35:28 +00:00
Owen Mansel-Chan
0ccf4cecb8
Fix XSS FPs when content type is safe
2025-01-28 15:32:30 +00:00
Arthur Baars
8d96c87abe
Rust: add UseTree::is_star
2025-01-28 16:12:25 +01:00
Simon Friis Vindum
13e0829d19
Shared: Generalize the number of columns in a generated MaD row
2025-01-28 15:36:09 +01:00
Mathias Vorreiter Pedersen
38b66e5a8e
C++: Fix a few type errors.
2025-01-28 14:08:12 +00:00
Calum Grant
cc35ec49e4
C++: Remove linker-awareness FPs
2025-01-28 14:06:38 +00:00
Calum Grant
6df8fdc233
C++: Add test for cpp/wrong-type-format-argument
2025-01-28 14:04:33 +00:00
Mathias Vorreiter Pedersen
d40322f9eb
C++: (Bugfix 3) Don't conflate summarized callables and source callables in 'nodeGetEnclosingCallable'.
2025-01-28 13:59:19 +00:00
Mathias Vorreiter Pedersen
06bc8add9d
C++: (Bugfix 2) Don't remap isParameterOf.
2025-01-28 13:59:17 +00:00
Mathias Vorreiter Pedersen
662e74924b
C++: (Bugfix 1) There should be a callable representing the source code even if there is a summarized version.
2025-01-28 13:59:16 +00:00
Mathias Vorreiter Pedersen
01d7ab93e2
C++: Add consistency check to the MaD folder.
2025-01-28 13:59:14 +00:00
Jonas Jensen
865073a75a
QL spec: result of looking through float
...
I searched for `float` everywhere in the QL language reference and
considered whether each occurrence should be generalised to cover
`BigInt`.
2025-01-28 13:58:17 +01:00
Tom Hvitved
8b82eaa633
Rust: Fix data flow through callbacks passed to library functions
2025-01-28 13:44:27 +01:00
Erik Krogh Kristensen
f0755bfb5d
Merge pull request #18601 from erik-krogh/del-deps-jan-2025
...
All: delete outdated deprecations
2025-01-28 13:31:41 +01:00
Geoffrey White
f2564c351f
Rust: Changes to other tests - mostly MaD IDs :(.
2025-01-28 09:22:30 +00:00
Geoffrey White
6337f5a08b
Merge pull request #18586 from geoffw0/floatguards
...
C++: Test and (perhaps) fix an issue with guards on floating point comparisons.
2025-01-28 09:05:13 +00:00
Asger F
16634e6dc9
Merge pull request #18540 from JarLob/bash
...
Actions: Improve bash support
2025-01-28 09:49:58 +01:00
Geoffrey White
dfd1865b96
Rust: Add some basic flow models.
2025-01-28 08:47:15 +00:00
Geoffrey White
9d42be8305
Rust: Alphabetize lang-core.model.yml.
2025-01-28 08:47:14 +00:00
Geoffrey White
c04d619a3c
Rust: Add a couple of extra data flow test cases.
2025-01-28 08:47:13 +00:00
Geoffrey White
185a23b3c6
Rust: Allow implicit flow out of content at the test sinks, so that we see our results.
2025-01-28 08:43:06 +00:00
Geoffrey White
a1980d4d08
Rust: Make sources more accurate (Option / Result contents).
2025-01-28 08:43:05 +00:00
Geoffrey White
78d0c5c529
Merge pull request #18602 from geoffw0/reqwest2
...
Rust: Additional models for Reqwest
2025-01-28 08:40:38 +00:00
erik-krogh
c7fc164680
java: remove the 2 from SafeTransformerFactoryFlow, not that the previous naming conflict has been deleted
2025-01-28 09:13:59 +01:00
Geoffrey White
fd9fb10bb9
Rust: Accept changes from fixing the ].
2025-01-27 22:50:09 +00:00
Geoffrey White
494d8f2da0
Rust: Update MaD IDs for an unrelated test. :(
2025-01-27 22:22:41 +00:00
Geoffrey White
9d6a13cec2
Rust: Accept improved results for rust/sql-injection. Note that the lost annotations are only sources, not results, and I suspect will return when we have sufficient flow in these cases.
2025-01-27 22:22:38 +00:00
erik-krogh
a1afa20d4b
add change-notes
2025-01-27 22:43:13 +01:00
erik-krogh
d46a2d4e80
ruby: delete the remainders of the old deprecated typetracking library
2025-01-27 22:38:07 +01:00
erik-krogh
90b403b40b
py: delete the remainder of the deprecated TypeTracker libary
2025-01-27 22:17:18 +01:00
erik-krogh
e1b14cb0be
ruby: delete now dead Ruby method
2025-01-27 22:17:13 +01:00
erik-krogh
0056e923ea
js: revert the JS deprecations. The old dataflow library is not that old yet
2025-01-27 22:17:07 +01:00
erik-krogh
7b1b366d98
ruby: update ruby tests after deleting deprecated test predicates
2025-01-27 22:17:00 +01:00
erik-krogh
bd8ed1dc04
cpp: revert two cpp dataflow deprecations that take more work
2025-01-27 22:16:54 +01:00
erik-krogh
34f5f61a10
all: use my script to delete outdated deprecations
2025-01-27 22:16:48 +01:00
Geoffrey White
9ea9f3ae19
Update rust/ql/lib/codeql/rust/frameworks/reqwest.model.yml
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-01-27 21:09:21 +00:00
Geoffrey White
7cf872baad
Rust: Adjust the tests to work around test processing of /.
2025-01-27 21:00:08 +00:00
Geoffrey White
23ac35e5ca
Rust: Model more Reqwest methods (.await still doesn't work though).
2025-01-27 20:52:31 +00:00
Geoffrey White
9583a2a7d3
Rust: Additional test cases for reqwest sources.
2025-01-27 20:42:35 +00:00
Mathias Vorreiter Pedersen
4e44201ba8
C++: Remap calls to source functions to the summarized function.
2025-01-27 16:58:53 +00:00
Mathias Vorreiter Pedersen
98265dda7b
Revert "C++: Don't generate dataflow nodes for instructions inside summarized callables."
...
This reverts commit fc39df28b0 .
2025-01-27 16:58:46 +00:00
Jeroen Ketema
37b67dd9eb
C++: Update stats file
2025-01-27 15:42:35 +01:00
Owen Mansel-Chan
9f3572d15a
Reformat inline expectations (space after $)
2025-01-27 14:36:26 +00:00
Owen Mansel-Chan
05fb22e8ff
Make test easier to understand
2025-01-27 14:10:19 +00:00
Jonas Jensen
e7f3e03c40
QL spec: Fix up pre-BigInt language
2025-01-27 14:50:41 +01:00
Jeroen Ketema
f49d8209e5
C++: Add upgrade and downgrade scripts
2025-01-27 13:32:00 +01:00
Tom Hvitved
253ccd1210
Merge pull request #14303 from hvitved/ruby/must-flow
...
Ruby: Implement `localMustFlowStep `
2025-01-27 12:51:29 +01:00
Mathias Vorreiter Pedersen
67a905141c
Update cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/SsaInternalsCommon.qll
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2025-01-27 10:55:56 +00:00
Erik Krogh Kristensen
87ad09bcdf
Merge pull request #18595 from erik-krogh/erik-krogh/clear-text-example
...
JS: fix example in clear-text-logging qhelp to actually be bad
2025-01-27 11:45:50 +01:00
Jeroen Ketema
a32cfdab9f
C++: Support mixed typedefs and usings
2025-01-27 11:43:17 +01:00
Geoffrey White
67a746eff1
Update cpp/ql/lib/semmle/code/cpp/controlflow/IRGuards.qll
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2025-01-27 10:41:50 +00:00
Geoffrey White
f32fd38f74
Merge pull request #18582 from geoffw0/logging
...
Rust: Query for cleartext logging of sensitive information
2025-01-27 10:37:17 +00:00
erik-krogh
37a1727043
fix example in clear-text-logging qhelp to actually be bad
2025-01-27 11:31:28 +01:00
Michael Nebel
98d6353f12
Java: Address review comments.
2025-01-27 11:21:44 +01:00
Owen Mansel-Chan
1bacb99410
Merge pull request #18585 from owen-mc/go/1.24-support-prep
...
Go: 1.24 support - Tolerate type parameters on alias types
2025-01-27 10:14:36 +00:00
Tom Hvitved
f75ecdb16e
Merge pull request #18570 from hvitved/csharp/dotnet3-integration-test
...
C#: Verify that downloaded .NET CLIs are executable
2025-01-27 10:28:04 +01:00
Michael Nebel
c27b611c76
Java: Deprecate MyBatisMapperXML as it is only used by experimental queries.
2025-01-27 10:22:22 +01:00
Michael Nebel
999f1f21e2
Java: Accept expected test output.
2025-01-27 10:22:20 +01:00
Michael Nebel
b552c8aba9
Java: Add change-note.
2025-01-27 10:22:19 +01:00
Michael Nebel
cc48cec1c7
Java: Deprecate experimental model activation.
2025-01-27 10:22:17 +01:00
Michael Nebel
e3997f65ed
Java: Deprecate experimental queries.
2025-01-27 10:22:16 +01:00
Michael Nebel
501f9859bd
C#: Add change note.
2025-01-27 10:13:26 +01:00
Michael Nebel
fc03c367e9
C#: Update expected test output.
2025-01-27 10:13:19 +01:00
Michael Nebel
0453ae8dbd
C#: Use property- and indexer implementation location and extract the accessor implementations instead of declarations.
2025-01-27 10:09:42 +01:00
Michael Nebel
443a2a47b5
C#: Add indexer data flow test expected output file.
2025-01-27 10:09:40 +01:00
Michael Nebel
c481e82fdd
C#: Add indexer data flow test.
2025-01-27 10:09:39 +01:00
Michael Nebel
568fd9c748
C#: Add some partial tests for Properties and Indexers.
2025-01-27 10:09:38 +01:00
Michael Nebel
5836c8d0ce
C#: Update expected test output for data flow tests.
2025-01-27 10:09:36 +01:00
Michael Nebel
dae5ca81a2
C#: Add dataflow examples for partial properties.
2025-01-27 10:09:35 +01:00
Michael Nebel
e53c750876
C#: Update expected output for dispatch tests.
2025-01-27 10:09:28 +01:00
Michael Nebel
b3e56e6023
C#: Add dispatch examples for partial properties and indexers.
2025-01-27 10:06:56 +01:00
Michael Nebel
ff7719f96e
C#: Updated expected test output.
2025-01-27 10:05:11 +01:00
Michael Nebel
963e658619
C#: Add partial properties and indexers examples.
2025-01-27 10:05:09 +01:00
Simon Friis Vindum
eaeeafeea4
Merge pull request #18590 from paldepind/rust-control-flow-test
...
Rust: Add two additional control flow tests
2025-01-27 09:05:20 +01:00
Mathias Vorreiter Pedersen
ad80b36074
C++: Don't generate parameter nodes for bodyless parameters when there is a summary of the enclosing function.
2025-01-24 20:16:04 +00:00
Mathias Vorreiter Pedersen
cda629b204
C++: Accept test changes. Notice the consistency failure.
2025-01-24 20:13:21 +00:00
Mathias Vorreiter Pedersen
de3b111f2f
C++: Map a parameter node to the summarized callable if it exists.
2025-01-24 20:08:16 +00:00
Mathias Vorreiter Pedersen
fc39df28b0
C++: Don't generate dataflow nodes for instructions inside summarized callables.
2025-01-24 20:05:19 +00:00
Jeroen Ketema
4d2ec75ef2
Merge pull request #18588 from jketema/decl-entry
...
C++: Fix join-order problem in `UserType::getADeclarationEntry`
2025-01-24 19:38:54 +01:00
Geoffrey White
06bd394695
C++: Add a note for the other predicates as well.
2025-01-24 17:52:13 +00:00
Geoffrey White
1f962004a9
C++: Add a note in the QLDoc for comparesEq.
2025-01-24 17:52:03 +00:00
Geoffrey White
7664fd16e7
C++: Add more test cases for guards.
2025-01-24 17:51:45 +00:00
Geoffrey White
0a3d44c44e
Rust: Re-apply suggested changes (I accidentally force-pushed them away).
2025-01-24 17:31:38 +00:00
Paul Hodgkinson
cda4b6ffcb
Merge branch 'main' into angular-sources-sinks
2025-01-24 17:26:29 +00:00
Geoffrey White
117db8a9b2
Rust: Make the test runnable.
2025-01-24 17:22:42 +00:00
Florin Coada
41ee84b412
Merge pull request #18591 from github/changedocs/2.20.3
...
Add changelog entries for CodeQL CLI versions 2.20.1 to 2.20.3
2025-01-24 17:21:11 +00:00
Florin Coada
a76e9a4c21
Add changelog entries for CodeQL CLI versions 2.20.1 to 2.20.3
2025-01-24 16:59:30 +00:00
aegilops
5a191d42bd
Merge branch 'angular-sources-sinks' of https://github.com/aegilops/codeql into angular-sources-sinks
2025-01-24 16:52:19 +00:00
aegilops
76da479550
Updated tests
2025-01-24 16:52:11 +00:00
Paul Hodgkinson
f033f179f7
Merge branch 'main' into angular-sources-sinks
2025-01-24 15:46:48 +00:00
aegilops
d248551e88
Updated expected test result files using HEAD version of codeql
2025-01-24 15:46:09 +00:00
Michael Nebel
d3d3cceb40
Merge pull request #18575 from michaelnebel/csharp/overloadresolution
...
C# 13: Overload resolution priority.
2025-01-24 16:14:18 +01:00
Jeroen Ketema
2e33a4287f
C++: Apply review suggestion
2025-01-24 16:12:16 +01:00
Simon Friis Vindum
c195840ec8
Rust: Add two additional control flow tests
2025-01-24 16:09:32 +01:00
Chuan-kai Lin
e0e02c712f
Merge branch 'main' into cklin/merge-back-2.20.2
2025-01-24 06:45:11 -08:00
Jeroen Ketema
4c256d17ae
C++: Fix join-order problem in UserType::getADeclarationEntry
...
Before on `LRMPUT/PUTSLAM`:
```
Evaluated recursive predicate UserType::UserType.getADeclarationEntry/0#cea44e2f@7ce3a4hu in 22069ms on iteration 2 (delta size: 379076853).
Evaluated relational algebra for predicate UserType::UserType.getADeclarationEntry/0#cea44e2f@7ce3a4hu on iteration 2 running pipeline standard with tuple counts:
126825 ~32% {2} r1 = JOIN `UserType::UserType.getADeclarationEntry/0#cea44e2f#prev_delta` WITH Class::Class#9afdbffd ON FIRST 1 OUTPUT Lhs.0, Lhs.1
379076853 ~97% {2} | JOIN WITH `Class::Class.isConstructedFrom/1#dispred#390e01c8_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1
379076853 ~97% {2} | JOIN WITH UserType::UserType#21e9e463 ON FIRST 1 OUTPUT Lhs.0, Lhs.1
{2} | AND NOT `UserType::UserType.getADeclarationEntry/0#cea44e2f#prev`(FIRST 2)
379076853 ~96% {2} | SCAN OUTPUT In.1, In.0
{2} | AND NOT `_Class::Class#9afdbffd_Class::Class.isConstructedFrom/1#dispred#390e01c8_10#join_rhs_ResolveClass::r__#antijoin_rhs`(FIRST 2)
379076853 ~97% {2} | SCAN OUTPUT In.1, In.0
return r1
Evaluated named local _Class::Class#9afdbffd_Class::Class.isConstructedFrom/1#dispred#390e01c8_10#join_rhs_ResolveClass::r__#antijoin_rhs@L0#7ce3a in 7459ms on iteration 2 (size: 0).
Evaluated relational algebra for predicate _Class::Class#9afdbffd_Class::Class.isConstructedFrom/1#dispred#390e01c8_10#join_rhs_ResolveClass::r__#antijoin_rhs@L0#7ce3a on iteration 2 running pipeline main with tuple counts:
126825 ~32% {2} r1 = JOIN `UserType::UserType.getADeclarationEntry/0#cea44e2f#prev_delta` WITH Class::Class#9afdbffd ON FIRST 1 OUTPUT Lhs.0, Lhs.1
379076853 ~97% {2} | JOIN WITH `Class::Class.isConstructedFrom/1#dispred#390e01c8_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1
379076853 ~97% {2} | JOIN WITH UserType::UserType#21e9e463 ON FIRST 1 OUTPUT Lhs.0, Lhs.1
379076853 ~97% {2} | AND NOT `UserType::UserType.getADeclarationEntry/0#cea44e2f#prev`(FIRST 2)
0 ~0% {2} r2 = r1 AND NOT usertypes_0#antijoin_rhs(FIRST 1)
0 ~0% {2} | JOIN WITH type_decls_1#join_rhs ON FIRST 1 OUTPUT Lhs.1, Lhs.0
379077929 ~95% {3} r3 = JOIN r1 WITH `ResolveClass::resolveClass/1#ea47deee_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.0
0 ~0% {2} | JOIN WITH type_decls_1#join_rhs ON FIRST 1 OUTPUT Lhs.1, Lhs.2
0 ~0% {2} r4 = r2 UNION r3
return r4
Evaluated named local _Class::Class#9afdbffd_Class::Class.isConstructedFrom/1#dispred#390e01c8_10#join_rhs_ResolveClass::r__#antijoin_rhs@L0#7ce3a in 1031ms on iteration 3 (size: 0).
Evaluated relational algebra for predicate _Class::Class#9afdbffd_Class::Class.isConstructedFrom/1#dispred#390e01c8_10#join_rhs_ResolveClass::r__#antijoin_rhs@L0#7ce3a on iteration 3 running pipeline main with tuple counts:
190114100 ~0% {2} r1 = JOIN `UserType::UserType.getADeclarationEntry/0#cea44e2f#prev_delta` WITH Class::Class#9afdbffd ON FIRST 1 OUTPUT Lhs.0, Lhs.1
0 ~0% {2} | JOIN WITH `Class::Class.isConstructedFrom/1#dispred#390e01c8_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1
0 ~0% {2} | JOIN WITH UserType::UserType#21e9e463 ON FIRST 1 OUTPUT Lhs.0, Lhs.1
0 ~0% {2} | AND NOT `UserType::UserType.getADeclarationEntry/0#cea44e2f#prev`(FIRST 2)
0 ~0% {2} r2 = r1 AND NOT usertypes_0#antijoin_rhs(FIRST 1)
0 ~0% {2} | JOIN WITH type_decls_1#join_rhs ON FIRST 1 OUTPUT Lhs.1, Lhs.0
0 ~0% {3} r3 = JOIN r1 WITH `ResolveClass::resolveClass/1#ea47deee_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.0
0 ~0% {2} | JOIN WITH type_decls_1#join_rhs ON FIRST 1 OUTPUT Lhs.1, Lhs.2
0 ~0% {2} r4 = r2 UNION r3
return r4
Pipeline base for UserType::UserType.getADeclarationEntry/0#cea44e2f@7ce3a4hu was evaluated in 1 iterations totaling 149ms (delta sizes total: 224004).
149171 ~17% {1} r1 = JOIN type_decls_1#join_rhs WITH `ResolveClass::resolveClass/1#ea47deee` ON FIRST 1 OUTPUT Rhs.1
125649 ~0% {1} | JOIN WITH UserType::UserType#21e9e463 ON FIRST 1 OUTPUT Lhs.0
1811817 ~1075% {2} | JOIN WITH `ResolveClass::resolveClass/1#ea47deee_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.0
1812281 ~1172% {2} | JOIN WITH type_decls_10#join_rhs ON FIRST 1 OUTPUT Lhs.1, Rhs.1
return r1
Pipeline standard for UserType::UserType.getADeclarationEntry/0#cea44e2f@7ce3a4hu was evaluated in 1 iterations totaling 22069ms (delta sizes total: 379076853).
126825 ~32% {2} r1 = JOIN `UserType::UserType.getADeclarationEntry/0#cea44e2f#prev_delta` WITH Class::Class#9afdbffd ON FIRST 1 OUTPUT Lhs.0, Lhs.1
379076853 ~97% {2} | JOIN WITH `Class::Class.isConstructedFrom/1#dispred#390e01c8_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1
379076853 ~97% {2} | JOIN WITH UserType::UserType#21e9e463 ON FIRST 1 OUTPUT Lhs.0, Lhs.1
{2} | AND NOT `UserType::UserType.getADeclarationEntry/0#cea44e2f#prev`(FIRST 2)
379076853 ~96% {2} | SCAN OUTPUT In.1, In.0
{2} | AND NOT `_Class::Class#9afdbffd_Class::Class.isConstructedFrom/1#dispred#390e01c8_10#join_rhs_ResolveClass::r__#antijoin_rhs`(FIRST 2)
379076853 ~97% {2} | SCAN OUTPUT In.1, In.0
return r1
Pipeline main for _Class::Class#9afdbffd_Class::Class.isConstructedFrom/1#dispred#390e01c8_10#join_rhs_ResolveClass::r__#antijoin_rhs@L0#7ce3a was evaluated in 2 iterations totaling 8490ms (sizes total: 0).
190240925 ~0% {2} r1 = JOIN `UserType::UserType.getADeclarationEntry/0#cea44e2f#prev_delta` WITH Class::Class#9afdbffd ON FIRST 1 OUTPUT Lhs.0, Lhs.1
379076853 ~97% {2} | JOIN WITH `Class::Class.isConstructedFrom/1#dispred#390e01c8_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1
379076853 ~97% {2} | JOIN WITH UserType::UserType#21e9e463 ON FIRST 1 OUTPUT Lhs.0, Lhs.1
379076853 ~97% {2} | AND NOT `UserType::UserType.getADeclarationEntry/0#cea44e2f#prev`(FIRST 2)
0 ~0% {2} r2 = r1 AND NOT usertypes_0#antijoin_rhs(FIRST 1)
0 ~0% {2} | JOIN WITH type_decls_1#join_rhs ON FIRST 1 OUTPUT Lhs.1, Lhs.0
379077929 ~95% {3} r3 = JOIN r1 WITH `ResolveClass::resolveClass/1#ea47deee_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.0
0 ~0% {2} | JOIN WITH type_decls_1#join_rhs ON FIRST 1 OUTPUT Lhs.1, Lhs.2
0 ~0% {2} r4 = r2 UNION r3
return r4
```
After:
```
[2025-01-24 15:22:19] Evaluated non-recursive predicate UserType::UserType.getADeclarationEntryBase/0#dispred#d07c0e9a@82645fgi in 8ms (size: 149661).
Evaluated relational algebra for predicate UserType::UserType.getADeclarationEntryBase/0#dispred#d07c0e9a@82645fgi with tuple counts:
149661 ~5% {2} r1 = JOIN `_ResolveClass::resolveClass/1#ea47deee_type_decls#shared` WITH UserType::UserType#21e9e463 ON FIRST 1 OUTPUT Lhs.0, Lhs.1
return r1
[2025-01-24 15:22:19] Evaluated non-recursive predicate project#UserType::UserType.getADeclarationEntryBase/0#dispred#d07c0e9a@22da38r1 in 10ms (size: 124540).
Evaluated relational algebra for predicate project#UserType::UserType.getADeclarationEntryBase/0#dispred#d07c0e9a@22da38r1 with tuple counts:
149661 ~17% {1} r1 = SCAN `UserType::UserType.getADeclarationEntryBase/0#dispred#d07c0e9a` OUTPUT In.0
124540 ~0% {1} | STREAM DEDUP
return r1
[2025-01-24 15:22:20] Evaluated non-recursive predicate Class::Class.isConstructedFrom/1#dispred#390e01c8_10#join_rhs@9c5150lt in 91ms (size: 764244).
Evaluated relational algebra for predicate Class::Class.isConstructedFrom/1#dispred#390e01c8_10#join_rhs@9c5150lt with tuple counts:
764244 ~2% {2} r1 = SCAN `Class::Class.isConstructedFrom/1#dispred#390e01c8` OUTPUT In.1, In.0
return r1
Evaluated recursive predicate UserType::UserType.getADeclarationEntry/0#cea44e2f#fb@d5a154u4 in 8ms on iteration 1 (delta size: 25561).
Evaluated relational algebra for predicate UserType::UserType.getADeclarationEntry/0#cea44e2f#fb@d5a154u4 on iteration 1 running pipeline base with tuple counts:
149661 ~2% {2} r1 = SCAN `UserType::UserType.getADeclarationEntryBase/0#dispred#d07c0e9a` OUTPUT In.1, In.0
25561 ~6% {2} | JOIN WITH type_def ON FIRST 1 OUTPUT Lhs.1, Lhs.0
return r1
Evaluated recursive predicate UserType::UserType.getADeclarationEntry/0#cea44e2f#fb@d5a154u4 in 108ms on iteration 2 (delta size: 763236).
Evaluated relational algebra for predicate UserType::UserType.getADeclarationEntry/0#cea44e2f#fb@d5a154u4 on iteration 2 running pipeline standard with tuple counts:
3655 ~0% {2} r1 = JOIN `UserType::UserType.getADeclarationEntry/0#cea44e2f#fb#prev_delta` WITH Class::Class#9afdbffd ON FIRST 1 OUTPUT Lhs.0, Lhs.1
763236 ~1% {2} | JOIN WITH `Class::Class.isConstructedFrom/1#dispred#390e01c8_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1
763236 ~1% {2} | AND NOT `UserType::UserType.getADeclarationEntry/0#cea44e2f#fb#prev`(FIRST 2)
763236 ~1% {2} | AND NOT `project#UserType::UserType.getADeclarationEntryBase/0#dispred#d07c0e9a`(FIRST 1)
return r1
Pipeline base for UserType::UserType.getADeclarationEntry/0#cea44e2f#fb@d5a154u4 was evaluated in 1 iterations totaling 8ms (delta sizes total: 25561).
149661 ~2% {2} r1 = SCAN `UserType::UserType.getADeclarationEntryBase/0#dispred#d07c0e9a` OUTPUT In.1, In.0
25561 ~6% {2} | JOIN WITH type_def ON FIRST 1 OUTPUT Lhs.1, Lhs.0
return r1
Pipeline standard for UserType::UserType.getADeclarationEntry/0#cea44e2f#fb@d5a154u4 was evaluated in 1 iterations totaling 108ms (delta sizes total: 763236).
3655 ~0% {2} r1 = JOIN `UserType::UserType.getADeclarationEntry/0#cea44e2f#fb#prev_delta` WITH Class::Class#9afdbffd ON FIRST 1 OUTPUT Lhs.0, Lhs.1
763236 ~1% {2} | JOIN WITH `Class::Class.isConstructedFrom/1#dispred#390e01c8_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1
763236 ~1% {2} | AND NOT `UserType::UserType.getADeclarationEntry/0#cea44e2f#fb#prev`(FIRST 2)
763236 ~1% {2} | AND NOT `project#UserType::UserType.getADeclarationEntryBase/0#dispred#d07c0e9a`(FIRST 1)
return r1
```
2025-01-24 15:24:13 +01:00
Tom Hvitved
ac4f82cfbb
C#: Verify that downloaded .NET CLIs are executable
2025-01-24 15:14:58 +01:00
Tom Hvitved
dcd87a9825
C#: Add .NET 3 integration test
2025-01-24 15:13:22 +01:00
Owen Mansel-Chan
29f6d48162
Retain previous check for alias types
2025-01-24 12:30:27 +00:00
Jaroslav Lobačevski
9521467a06
Update actions/ql/lib/codeql/actions/Bash.qll
...
Co-authored-by: Asger F <asgerf@github.com >
2025-01-24 12:59:41 +01:00
Asger F
a54e732aab
Merge pull request #18572 from asgerf/rb/diff-informed2
...
Ruby: fix and improve diff-informed queries
2025-01-24 11:05:46 +01:00
Asger F
1b7977bf90
Merge pull request #18466 from asgerf/js/view-component-inputs
...
JS: Add view-component-input threat model
2025-01-24 10:59:25 +01:00
Asger F
60f9160822
Merge pull request #18574 from asgerf/js/diff-informed2
...
JS: fix and improve diff-informed queries
2025-01-24 10:58:22 +01:00
Simon Friis Vindum
a6cd53eeb8
Merge pull request #18497 from paldepind/shared-basic-block-library
...
Add shared basic block library
2025-01-24 10:49:33 +01:00
Owen Mansel-Chan
57fad4a837
Allow type parameters on alias types
2025-01-24 09:40:58 +00:00
Rasmus Wriedt Larsen
bafed4e098
Merge pull request #18560 from JarLob/downloadartifact
...
Actions: Fix version range for known vulnerable actions
2025-01-24 10:39:53 +01:00
Simon Friis Vindum
e13a7a224f
Merge branch 'main' into shared-basic-block-library
2025-01-24 09:54:26 +01:00
Simon Friis Vindum
b84adec407
Merge pull request #18568 from paldepind/rust-container
...
Rust: Change array element content type into a general collection element content type
2025-01-24 09:40:46 +01:00
Simon Friis Vindum
e7ad091b0f
Rust: Remove unnecessary characteristic predicate
2025-01-24 08:56:41 +01:00
Tom Hvitved
10f55133fe
Merge pull request #18482 from hvitved/rust/nested-functions
...
Rust: Take nested functions into account when resolving variables
2025-01-24 08:41:34 +01:00
Chris Smowton
e27d8c1672
Amend extractor information expectation
2025-01-23 15:36:37 -05:00
Chris Smowton
660922fe4d
Don't expect logged properties files in source archives
2025-01-23 15:36:27 -05:00
Paolo Tranquilli
91132b94a9
Swift: drop indisciminate printing of the env
2025-01-23 14:45:47 -05:00
Geoffrey White
037d496a68
Rust: Fix some more tests (MaD ID changes and extraction consistency issues).
2025-01-23 19:14:28 +00:00
Geoffrey White
814118d3e8
Merge remote-tracking branch 'upstream/main' into logging
2025-01-23 19:04:25 +00:00
Geoffrey White
f5459d7ba8
Rust: Accept changes to integration test results.
2025-01-23 18:48:51 +00:00
Geoffrey White
44b9a1188b
Rust: Another .qhelp fix.
2025-01-23 18:46:35 +00:00
Geoffrey White
951d1fc9e0
Rust: Add missing file.
2025-01-23 18:38:48 +00:00
Geoffrey White
d27a71eaaf
Rust: Minor fixes.
2025-01-23 18:21:27 +00:00
Geoffrey White
55705232f6
Update rust/ql/src/queries/security/CWE-312/CleartextLoggingBad.rs
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-01-23 18:18:05 +00:00
Geoffrey White
613a1656f3
Rust: Simplify QL slightly.
2025-01-23 18:13:59 +00:00
Geoffrey White
4214c837b8
Rust: Clean up the query message.
2025-01-23 18:03:25 +00:00
Geoffrey White
ccc124360e
Rust: Add .qhelp and examples.
2025-01-23 17:46:04 +00:00
Geoffrey White
e70816727b
Rust: Add the sinks to metrics.
2025-01-23 17:17:25 +00:00
Geoffrey White
59c3ac6f80
Rust: Allow flow through reference taking (&).
2025-01-23 17:17:07 +00:00
Geoffrey White
78c58aa5f1
Rust: Allow implicit taint reads from tuple contents at sinks.
2025-01-23 17:17:05 +00:00
Geoffrey White
64444940a6
Rust: Add taint sinks for target and key-value arguments.
2025-01-23 17:17:04 +00:00
Geoffrey White
2bbf493991
Rust: Model assert_failed.
2025-01-23 17:17:03 +00:00
Geoffrey White
484331c303
Rust: Model StdoutLock, StderrLock methods and String.as_bytes.
2025-01-23 17:17:02 +00:00
Geoffrey White
1d2950c70c
Rust: Add some sinks.
2025-01-23 17:17:00 +00:00
Geoffrey White
4297d05c05
Rust: Implement the query.
2025-01-23 17:16:59 +00:00
Geoffrey White
173cfd5c7b
Rust: Add test cases for various std:: bits.
2025-01-23 17:16:58 +00:00
Simon Friis Vindum
9a6d651fee
Rust: More renaming and adjusting for generic element content type
2025-01-23 18:15:17 +01:00
aegilops
c9a775d737
Merge branch 'angular-sources-sinks' of https://github.com/aegilops/codeql into angular-sources-sinks
2025-01-23 17:07:02 +00:00
aegilops
522f3d1337
Merge
2025-01-23 17:00:56 +00:00
Paul Hodgkinson
eacc322d4f
Update Angular Renderer2 XSS sink details in change note
2025-01-23 16:39:18 +00:00
Simon Friis Vindum
a537f347d3
Shared: Tweak basic block documentation
2025-01-23 17:21:46 +01:00
Jeroen Ketema
4311553fa0
Merge pull request #18578 from aschackmull/cpp/join-order-fix-taintedallocationsize
...
C++: Fix join order problem in TaintedAllocationSize.
2025-01-23 17:16:03 +01:00
Chris Smowton
9c779c3cc9
Merge pull request #18573 from smowton/smowton/admin/remove-properties-file-expectations
...
Java: Don't expect logged properties files in source archives
2025-01-23 16:12:25 +00:00
Mathias Vorreiter Pedersen
ccb28ed0b3
Merge pull request #18556 from MathiasVP/remove-conflation-from-pure-functions
...
C++: Remove pointer/pointee conflation from models of "pure" functions
2025-01-23 15:50:39 +00:00
Paolo Tranquilli
13f1f8fdff
Merge branch 'main' into redsun82/env-dump-integration-test
2025-01-23 15:55:26 +01:00
Paolo Tranquilli
e096bdb701
Merge pull request #18468 from github/redsun82/rust-readme
...
Rust: give more options for building in `README.md`
2025-01-23 15:54:45 +01:00
Tom Hvitved
d60a81dac1
Merge pull request #18576 from hvitved/rust/translate-mad-ids
2025-01-23 15:44:29 +01:00
Jeroen Ketema
8b2cfa9133
Merge pull request #18561 from jketema/jketema/scanf
...
C++: Fix join-order problem found on `IncorrectCheckScanf.ql`
2025-01-23 15:00:24 +01:00
Mathias Vorreiter Pedersen
7792839a25
C++: Add a 'isLocaleParameter' and clean up the model a bit.
2025-01-23 13:56:00 +00:00
Mathias Vorreiter Pedersen
67e3b69996
C++: Move comment.
2025-01-23 13:49:13 +00:00
Mathias Vorreiter Pedersen
fb12847360
Update cpp/ql/lib/semmle/code/cpp/models/implementations/Pure.qll
...
Co-authored-by: Simon Friis Vindum <paldepind@github.com >
2025-01-23 13:48:44 +00:00
Mathias Vorreiter Pedersen
2cdb52cad2
C++: Accept test changes after previous commit.
2025-01-23 13:46:47 +00:00
Tom Hvitved
33e07edcbf
Rust: Translate more MaD IDs in tests
2025-01-23 14:45:33 +01:00
Mathias Vorreiter Pedersen
e0f2f1dd80
Update cpp/ql/test/library-tests/dataflow/taint-tests/taint.cpp
...
Co-authored-by: Simon Friis Vindum <paldepind@github.com >
2025-01-23 13:41:48 +00:00
Mathew Payne
788ae2ae21
Merge branch 'main' into rust-rusqlite
2025-01-23 13:34:29 +00:00
Mathew Payne
c69bb15335
Update rust/ql/test/library-tests/frameworks/rusqlite/main.rs
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-01-23 13:32:36 +00:00
Michael Nebel
dcdc12f9af
Merge pull request #18562 from michaelnebel/csharp/implicitindex
...
C# 13: [TEST ONLY] Implicit index usage in initializers.
2025-01-23 14:31:15 +01:00
Michael Nebel
340f3c0fd5
C#: Add change note.
2025-01-23 14:24:24 +01:00
Anders Schack-Mulligen
1a4d21777d
C++: Fix join order problem in TaintedAllocationSize.
2025-01-23 14:20:23 +01:00
Michael Nebel
0a2a8e9701
C#: Add attribute test for the OverloadResolutionAttribute attribute class.
2025-01-23 14:19:58 +01:00
Mathew Payne
eac63a3840
fix(rust): Update TaintFlowStep
2025-01-23 13:19:07 +00:00
Michael Nebel
a6d16e79d9
C#: Add overload resolution priority attribute class.
2025-01-23 14:17:52 +01:00
Mathew Payne
e205a6811f
feat(rust:) Add initial rusqlite support
2025-01-23 13:09:25 +00:00
Michael Nebel
568d3cc161
C#: Update attributes test expected output.
2025-01-23 13:55:01 +01:00
Michael Nebel
08fc5644eb
C#: Add some attributes test example code with overload resolution priority attribute.
2025-01-23 13:54:44 +01:00
Michael Nebel
5f7c28d1b9
C#: Add a using statement to the attributes test file and update test expected output.
2025-01-23 13:53:26 +01:00
Michael Nebel
d924b1a536
C#: Update test expected output.
2025-01-23 13:36:09 +01:00
Michael Nebel
bc11c23f08
C#: Add dispatch tests for overload resolution and update line numbers for existing test cases.
2025-01-23 13:33:53 +01:00
Geoffrey White
bb3be2f8af
Rust: Add a test for the log crate + placeholder query.
2025-01-23 12:24:47 +00:00
Asger F
6423033db6
JS: Resolve inserted TODOs
2025-01-23 13:02:52 +01:00
Asger F
102b187c35
JS: Ignore experimental queries for now
2025-01-23 12:53:18 +01:00
Chris Smowton
09fe6091c2
Amend extractor information expectation
2025-01-23 11:33:45 +00:00
Chris Smowton
02edb1b9cb
Don't expect logged properties files in source archives
2025-01-23 11:14:20 +00:00
Asger F
fcb8cac930
Ruby: resolve inserted TODOs
2025-01-23 11:48:46 +01:00
Michael Nebel
c38ad4acff
C#: Add data flow tests for implicit index usage.
2025-01-23 11:18:24 +01:00
Michael Nebel
0430a9ee3f
C#: Add test for implicit index usage.
2025-01-23 10:45:00 +01:00
Asger F
1c136e3cd0
Ruby: rerun patch query after bugfix
2025-01-23 10:33:58 +01:00
Asger F
dba76a0e4d
JS: Rerun patch query after bugfix
2025-01-23 10:31:32 +01:00
Jaroslav Lobačevski
329ed5223a
Update actions/ql/lib/change-notes/2025-01-22-version.md
...
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com >
2025-01-23 10:25:58 +01:00
Geoffrey White
9286596c1e
Merge pull request #18530 from geoffw0/sourcemodels2
...
Rust: Convert source models to models-as-data
2025-01-23 09:08:26 +00:00
Paolo Tranquilli
e448bc62a7
Merge pull request #18566 from github/redsun82/swift-stop-dump-env
...
Swift: drop indisciminate printing of the env in debug logs
2025-01-23 10:00:52 +01:00
Simon Friis Vindum
66b6ae70c2
Rust: Change array element content type into a general collection
...
element type
2025-01-23 09:49:23 +01:00
Paolo Tranquilli
cf430da602
Rust/Swift: add integration tests checking env dumping
2025-01-23 09:15:54 +01:00
Paolo Tranquilli
5c31edd6cb
Swift: drop indisciminate printing of the env
2025-01-23 08:31:21 +01:00
Owen Mansel-Chan
577d9eb286
Add change note
2025-01-22 22:59:32 +00:00
Owen Mansel-Chan
f055a78abf
Copy "Parameter" tests to ExternalValueFlow
2025-01-22 22:59:30 +00:00
Owen Mansel-Chan
08ea30ea8d
Fix bug in InterpretNode.asCallable
...
It was only working for summarized callables.
2025-01-22 22:59:28 +00:00
Owen Mansel-Chan
8e481bdb7e
Add failing tests for "Parameter" in MaD
2025-01-22 22:49:22 +00:00
Jaroslav Lobačevski
e242190e04
Fix rlespinasse/github-slug-action upper bound
2025-01-22 22:22:21 +00:00
Erik Krogh Kristensen
4bd4937e65
Merge pull request #18547 from erik-krogh/suffixCheck
...
JS: Fix FPs with js/incorrect-suffix-check
2025-01-22 21:13:27 +01:00
Dave Bartolomeo
546a4971d5
Merge pull request #18563 from mrecachinas/patch-1
...
Change includes paths in autobuild.sh
2025-01-22 14:51:19 -05:00
Dave Bartolomeo
1c9d7b3402
Add powershell versions
2025-01-22 12:23:58 -05:00
Michael Recachinas
661e9da799
Add comment for why we're adding reusable workflows to the autobuild script
2025-01-22 12:11:51 -05:00
Michael Recachinas
7c12da4f48
Include reusable workflows directories in autobuild script
2025-01-22 12:07:01 -05:00
Jaroslav Lobačevski
ab20625b8f
Fix the upper bound of the range
2025-01-22 17:30:19 +01:00
Jaroslav Lobačevski
55df2b4302
Change notes
2025-01-22 17:30:19 +01:00
Jaroslav Lobačevski
83d13c6f20
Fix lower range for known vulnerable actions
2025-01-22 17:30:19 +01:00
Michael Recachinas
b2de1e9b9e
Change includes paths in autobuild.sh
2025-01-22 11:25:21 -05:00
Óscar San José
ebb10e3318
Merge pull request #18525 from github/oscarsj/upgrade-workflows-to-ubuntu24
...
Upgrade workflows to ubuntu-24
2025-01-22 16:50:48 +01:00
Simon Friis Vindum
9547a5cd27
Shared: Update basic block documentation and make minor tweaks
2025-01-22 16:07:30 +01:00
Óscar San José
4fb2273153
Remove .devcontainer/swift files, as testing swift on ubuntu 24 is not supported
2025-01-22 15:55:56 +01:00
Edward Minnix III
28f307390a
Merge pull request #18494 from egregius313/egregius313/csharp/blazor/buildless-integration-test
...
C#: Blazor: `build-mode: none` integration test
2025-01-22 09:11:48 -05:00
Paolo Tranquilli
bd2e8195c2
Rust: Apply suggestions from code review
...
Co-authored-by: Simon Friis Vindum <simonfv@gmail.com >
2025-01-22 14:56:56 +01:00
Paolo Tranquilli
429365f602
Merge pull request #18509 from github/redsun82/swift-ios
...
Swift: add skeleton iOS app for integration testing
2025-01-22 14:55:23 +01:00
Jeroen Ketema
68ec4b66e7
C++: Fix join-order problem found on IncorrectCheckScanf.ql
...
Before on `silentearth/curl2`:
```
Evaluated recursive predicate IRGuards::Cached::unary_compares_eq/5#7aa979d8@e3b01fca in 26109ms on iteration 2 (delta size: 4020).
Evaluated relational algebra for predicate IRGuards::Cached::unary_compares_eq/5#7aa979d8@e3b01fca on iteration 2 running pipeline standard with tuple counts:
0 ~0% {5} r1 = JOIN `IRGuards::Cached::unary_compares_eq/5#7aa979d8#prev_delta` WITH `IRGuards::Cached::BuiltinExpectCallValueNumber.getCondition/0#dispred#9b2b5da2_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3, Lhs.4
1835651 ~2% {5} r2 = SCAN `IRGuards::Cached::unary_compares_eq/5#7aa979d8#prev_delta` OUTPUT In.4, In.0, In.1, In.2, In.3
1832833 ~0% {5} | JOIN WITH `IRGuards::AbstractValue.getDualValue/0#dispred#bfb2631d` ON FIRST 1 OUTPUT Lhs.1, Lhs.2, Lhs.3, Lhs.4, Rhs.1
3996 ~0% {5} | JOIN WITH `IRGuards::Cached::LogicalNotValueNumber.getUnary/0#dispred#b2251f1f_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3, Lhs.4
1835651 ~7% {5} r3 = SCAN `IRGuards::Cached::unary_compares_eq/5#7aa979d8#prev_delta` OUTPUT In.1, In.0, In.2, In.3, In.4
1835651 ~1% {5} | JOIN WITH `Operand::Operand.getAnyDef/0#dispred#8dbe2fb8` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3, Lhs.4
0 ~0% {5} r4 = JOIN r3 WITH project#Instruction::PointerSubInstruction#0d109780 ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3, Lhs.4
0 ~0% {6} | JOIN WITH `Instruction::BinaryInstruction.getLeftOperand/0#dispred#c8432d08` ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Rhs.1
0 ~0% {6} | JOIN WITH `Instruction::BinaryInstruction.getRight/0#dispred#1f78e436` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Lhs.5
0 ~0% {7} | JOIN WITH `IRGuards::Cached::int_value/1#f9d7a458` ON FIRST 1 OUTPUT Lhs.1, Lhs.5, _, Lhs.3, Lhs.4, Lhs.2, Rhs.1
0 ~0% {5} | REWRITE WITH Out.2 := (In.5 + In.6) KEEPING 5
23 ~76% {5} r5 = JOIN r3 WITH Instruction::SubInstruction#fc619901 ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3, Lhs.4
22 ~56% {6} | JOIN WITH `Instruction::BinaryInstruction.getLeftOperand/0#dispred#c8432d08` ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Rhs.1
22 ~56% {6} | JOIN WITH `Instruction::BinaryInstruction.getRight/0#dispred#1f78e436` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Lhs.5
0 ~0% {7} | JOIN WITH `IRGuards::Cached::int_value/1#f9d7a458` ON FIRST 1 OUTPUT Lhs.1, Lhs.5, _, Lhs.3, Lhs.4, Lhs.2, Rhs.1
0 ~0% {5} | REWRITE WITH Out.2 := (In.5 + In.6) KEEPING 5
0 ~0% {5} r6 = JOIN r3 WITH project#Instruction::PointerAddInstruction#5233892c ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3, Lhs.4
0 ~0% {6} r7 = JOIN r6 WITH `Instruction::BinaryInstruction.getLeftOperand/0#dispred#c8432d08` ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Rhs.1
0 ~0% {6} | JOIN WITH `Instruction::BinaryInstruction.getRight/0#dispred#1f78e436` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Lhs.5
0 ~0% {7} | JOIN WITH `IRGuards::Cached::int_value/1#f9d7a458` ON FIRST 1 OUTPUT Lhs.1, Lhs.5, _, Lhs.3, Lhs.4, Lhs.2, Rhs.1
0 ~0% {5} | REWRITE WITH Out.2 := (In.5 - In.6) KEEPING 5
0 ~0% {6} r8 = JOIN r6 WITH `Instruction::BinaryInstruction.getRightOperand/0#dispred#9ca710da` ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Rhs.1
0 ~0% {6} | JOIN WITH `Instruction::BinaryInstruction.getLeft/0#dispred#5cf78406` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Lhs.5
0 ~0% {7} | JOIN WITH `IRGuards::Cached::int_value/1#f9d7a458` ON FIRST 1 OUTPUT Lhs.1, Lhs.5, _, Lhs.3, Lhs.4, Lhs.2, Rhs.1
0 ~0% {5} | REWRITE WITH Out.2 := (In.5 - In.6) KEEPING 5
12 ~49% {5} r9 = JOIN r3 WITH Instruction::AddInstruction#7f8fb455 ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3, Lhs.4
12 ~49% {6} r10 = JOIN r9 WITH `Instruction::BinaryInstruction.getLeftOperand/0#dispred#c8432d08` ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Rhs.1
12 ~71% {6} | JOIN WITH `Instruction::BinaryInstruction.getRight/0#dispred#1f78e436` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Lhs.5
0 ~0% {7} | JOIN WITH `IRGuards::Cached::int_value/1#f9d7a458` ON FIRST 1 OUTPUT Lhs.1, Lhs.5, _, Lhs.3, Lhs.4, Lhs.2, Rhs.1
0 ~0% {5} | REWRITE WITH Out.2 := (In.5 - In.6) KEEPING 5
12 ~49% {6} r11 = JOIN r9 WITH `Instruction::BinaryInstruction.getRightOperand/0#dispred#9ca710da` ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Rhs.1
12 ~49% {6} | JOIN WITH `Instruction::BinaryInstruction.getLeft/0#dispred#5cf78406` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Lhs.5
0 ~0% {7} | JOIN WITH `IRGuards::Cached::int_value/1#f9d7a458` ON FIRST 1 OUTPUT Lhs.1, Lhs.5, _, Lhs.3, Lhs.4, Lhs.2, Rhs.1
0 ~0% {5} | REWRITE WITH Out.2 := (In.5 - In.6) KEEPING 5
0 ~0% {5} r12 = JOIN r1 WITH `IRGuards::Cached::BuiltinExpectCallValueNumber.getAUse/0#dispred#23233591` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3, Lhs.4
0 ~0% {6} | JOIN WITH `IRGuards::Cached::CompareValueNumber.hasOperands/2#dispred#7aa36763_102#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Rhs.2
0 ~0% {6} r13 = JOIN r12 WITH project#IRGuards::Cached::CompareNEValueNumber#1aeec1bd ON FIRST 1 OUTPUT Lhs.5, Lhs.1, Lhs.2, Lhs.3, Lhs.0, Lhs.4
0 ~0% {6} r14 = JOIN r12 WITH project#IRGuards::Cached::CompareEQValueNumber#994b6833 ON FIRST 1 OUTPUT Lhs.4, Lhs.1, Lhs.2, Lhs.3, Lhs.0, Lhs.5
0 ~0% {6} | JOIN WITH `IRGuards::AbstractValue.getDualValue/0#dispred#bfb2631d_10#join_rhs` ON FIRST 1 OUTPUT Lhs.5, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Rhs.1
0 ~0% {6} r15 = r13 UNION r14
0 ~0% {7} | JOIN WITH `Operand::Operand.getAnyDef/0#dispred#8dbe2fb8` ON FIRST 1 OUTPUT Rhs.1, _, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Lhs.5
0 ~0% {7} | REWRITE WITH Out.1 := 0
0 ~0% {5} | JOIN WITH `IRGuards::Cached::int_value/1#f9d7a458` ON FIRST 2 OUTPUT Lhs.5, Lhs.2, Lhs.3, Lhs.4, Lhs.6
1901910478 ~1% {5} r16 = JOIN `IRGuards::Cached::unary_compares_eq/5#7aa979d8#prev_delta` WITH `ValueNumberingInternal::tvalueNumber/1#f03b58f9_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3, Lhs.4
1902015678 ~4% {5} | JOIN WITH `Operand::Operand.getDef/0#dispred#a70e8079_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3, Lhs.4
1902015678 ~3% {6} | JOIN WITH `Operand::Operand.getDef/0#dispred#a70e8079` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Lhs.0
1901976207 ~4% {5} | JOIN WITH `IRGuards::Cached::isConvertedBool/1#9a130da2` ON FIRST 1 OUTPUT Lhs.5, Lhs.1, Lhs.2, Lhs.3, Lhs.4
74 ~10% {6} | JOIN WITH `IRGuards::Cached::CompareValueNumber.hasOperands/2#dispred#7aa36763_102#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Rhs.2
54 ~10% {6} r17 = JOIN r16 WITH project#IRGuards::Cached::CompareNEValueNumber#1aeec1bd ON FIRST 1 OUTPUT Lhs.5, Lhs.1, Lhs.2, Lhs.3, Lhs.0, Lhs.4
20 ~0% {6} r18 = JOIN r16 WITH project#IRGuards::Cached::CompareEQValueNumber#994b6833 ON FIRST 1 OUTPUT Lhs.4, Lhs.1, Lhs.2, Lhs.3, Lhs.0, Lhs.5
20 ~0% {6} | JOIN WITH `IRGuards::AbstractValue.getDualValue/0#dispred#bfb2631d` ON FIRST 1 OUTPUT Lhs.5, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Rhs.1
74 ~5% {6} r19 = r17 UNION r18
74 ~5% {7} | JOIN WITH `Operand::Operand.getDef/0#dispred#a70e8079` ON FIRST 1 OUTPUT Rhs.1, _, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Lhs.5
74 ~4% {7} | REWRITE WITH Out.1 := 0
66 ~0% {5} | JOIN WITH `IRGuards::Cached::int_value/1#f9d7a458` ON FIRST 2 OUTPUT Lhs.5, Lhs.2, Lhs.3, Lhs.4, Lhs.6
4062 ~0% {5} r20 = r1 UNION r2 UNION r4 UNION r5 UNION r7 UNION r8 UNION r10 UNION r11 UNION r15 UNION r19
4020 ~0% {5} | AND NOT `IRGuards::Cached::unary_compares_eq/5#7aa979d8#prev`(FIRST 5)
return r20
```
After:
```
[2025-01-22 14:50:44] Evaluated non-recursive predicate _IRGuards::Cached::CompareValueNumber.hasOperands/2#dispred#7aa36763_102#join_rhs_IRGuards::Cached::__#join_rhs@25668753 in 36ms (size: 47).
Evaluated relational algebra for predicate _IRGuards::Cached::CompareValueNumber.hasOperands/2#dispred#7aa36763_102#join_rhs_IRGuards::Cached::__#join_rhs@25668753 with tuple counts:
285951 ~0% {4} r1 = JOIN `IRGuards::Cached::CompareValueNumber.hasOperands/2#dispred#7aa36763_102#join_rhs` WITH `Operand::Operand.getDef/0#dispred#a70e8079` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.0, Lhs.2
47 ~2% {3} | JOIN WITH `IRGuards::Cached::isConvertedBool/1#9a130da2` ON FIRST 1 OUTPUT Lhs.2, Lhs.1, Lhs.3
47 ~0% {3} | JOIN WITH `Operand::Operand.getDef/0#dispred#a70e8079` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
47 ~0% {3} | JOIN WITH `ValueNumberingInternal::tvalueNumber/1#f03b58f9` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
return r1
Evaluated recursive predicate IRGuards::Cached::unary_compares_eq/5#7aa979d8@a808bbfb in 63ms on iteration 2 (delta size: 4020).
Evaluated relational algebra for predicate IRGuards::Cached::unary_compares_eq/5#7aa979d8@a808bbfb on iteration 2 running pipeline standard with tuple counts:
0 ~0% {5} r1 = JOIN `IRGuards::Cached::unary_compares_eq/5#7aa979d8#prev_delta` WITH `IRGuards::Cached::BuiltinExpectCallValueNumber.getCondition/0#dispred#9b2b5da2_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3, Lhs.4
1881864 ~10% {5} r2 = SCAN `IRGuards::Cached::unary_compares_eq/5#7aa979d8#prev_delta` OUTPUT In.4, In.0, In.1, In.2, In.3
1879046 ~4% {5} | JOIN WITH `IRGuards::AbstractValue.getDualValue/0#dispred#bfb2631d` ON FIRST 1 OUTPUT Lhs.1, Lhs.2, Lhs.3, Lhs.4, Rhs.1
3986 ~0% {5} | JOIN WITH `IRGuards::Cached::LogicalNotValueNumber.getUnary/0#dispred#b2251f1f_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3, Lhs.4
1881864 ~11% {5} r3 = SCAN `IRGuards::Cached::unary_compares_eq/5#7aa979d8#prev_delta` OUTPUT In.1, In.0, In.2, In.3, In.4
1881864 ~2% {5} | JOIN WITH `Operand::Operand.getAnyDef/0#dispred#8dbe2fb8` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3, Lhs.4
0 ~0% {5} r4 = JOIN r3 WITH project#Instruction::PointerSubInstruction#0d109780 ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3, Lhs.4
0 ~0% {6} | JOIN WITH `Instruction::BinaryInstruction.getLeftOperand/0#dispred#c8432d08` ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Rhs.1
0 ~0% {6} | JOIN WITH `Instruction::BinaryInstruction.getRight/0#dispred#1f78e436` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Lhs.5
0 ~0% {7} | JOIN WITH `IRGuards::Cached::int_value/1#f9d7a458` ON FIRST 1 OUTPUT Lhs.1, Lhs.5, _, Lhs.3, Lhs.4, Lhs.2, Rhs.1
0 ~0% {5} | REWRITE WITH Out.2 := (In.5 + In.6) KEEPING 5
16 ~14% {5} r5 = JOIN r3 WITH Instruction::SubInstruction#fc619901 ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3, Lhs.4
16 ~14% {6} | JOIN WITH `Instruction::BinaryInstruction.getLeftOperand/0#dispred#c8432d08` ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Rhs.1
16 ~14% {6} | JOIN WITH `Instruction::BinaryInstruction.getRight/0#dispred#1f78e436` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Lhs.5
0 ~0% {7} | JOIN WITH `IRGuards::Cached::int_value/1#f9d7a458` ON FIRST 1 OUTPUT Lhs.1, Lhs.5, _, Lhs.3, Lhs.4, Lhs.2, Rhs.1
0 ~0% {5} | REWRITE WITH Out.2 := (In.5 + In.6) KEEPING 5
0 ~0% {5} r6 = JOIN r3 WITH project#Instruction::PointerAddInstruction#5233892c ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3, Lhs.4
0 ~0% {6} r7 = JOIN r6 WITH `Instruction::BinaryInstruction.getLeftOperand/0#dispred#c8432d08` ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Rhs.1
0 ~0% {6} | JOIN WITH `Instruction::BinaryInstruction.getRight/0#dispred#1f78e436` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Lhs.5
0 ~0% {7} | JOIN WITH `IRGuards::Cached::int_value/1#f9d7a458` ON FIRST 1 OUTPUT Lhs.1, Lhs.5, _, Lhs.3, Lhs.4, Lhs.2, Rhs.1
0 ~0% {5} | REWRITE WITH Out.2 := (In.5 - In.6) KEEPING 5
0 ~0% {6} r8 = JOIN r6 WITH `Instruction::BinaryInstruction.getRightOperand/0#dispred#9ca710da` ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Rhs.1
0 ~0% {6} | JOIN WITH `Instruction::BinaryInstruction.getLeft/0#dispred#5cf78406` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Lhs.5
0 ~0% {7} | JOIN WITH `IRGuards::Cached::int_value/1#f9d7a458` ON FIRST 1 OUTPUT Lhs.1, Lhs.5, _, Lhs.3, Lhs.4, Lhs.2, Rhs.1
0 ~0% {5} | REWRITE WITH Out.2 := (In.5 - In.6) KEEPING 5
8 ~0% {5} r9 = JOIN r3 WITH Instruction::AddInstruction#7f8fb455 ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3, Lhs.4
8 ~0% {6} r10 = JOIN r9 WITH `Instruction::BinaryInstruction.getLeftOperand/0#dispred#c8432d08` ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Rhs.1
8 ~0% {6} | JOIN WITH `Instruction::BinaryInstruction.getRight/0#dispred#1f78e436` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Lhs.5
0 ~0% {7} | JOIN WITH `IRGuards::Cached::int_value/1#f9d7a458` ON FIRST 1 OUTPUT Lhs.1, Lhs.5, _, Lhs.3, Lhs.4, Lhs.2, Rhs.1
0 ~0% {5} | REWRITE WITH Out.2 := (In.5 - In.6) KEEPING 5
8 ~0% {6} r11 = JOIN r9 WITH `Instruction::BinaryInstruction.getRightOperand/0#dispred#9ca710da` ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Rhs.1
8 ~0% {6} | JOIN WITH `Instruction::BinaryInstruction.getLeft/0#dispred#5cf78406` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Lhs.5
0 ~0% {7} | JOIN WITH `IRGuards::Cached::int_value/1#f9d7a458` ON FIRST 1 OUTPUT Lhs.1, Lhs.5, _, Lhs.3, Lhs.4, Lhs.2, Rhs.1
0 ~0% {5} | REWRITE WITH Out.2 := (In.5 - In.6) KEEPING 5
70 ~6% {6} r12 = JOIN `IRGuards::Cached::unary_compares_eq/5#7aa979d8#prev_delta` WITH `_IRGuards::Cached::CompareValueNumber.hasOperands/2#dispred#7aa36763_102#join_rhs_IRGuards::Cached::__#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Rhs.2, Lhs.1, Lhs.2, Lhs.3, Lhs.4
50 ~2% {6} r13 = JOIN r12 WITH project#IRGuards::Cached::CompareNEValueNumber#1aeec1bd ON FIRST 1 OUTPUT Lhs.1, Lhs.0, Lhs.2, Lhs.3, Lhs.4, Lhs.5
20 ~0% {6} r14 = JOIN r12 WITH project#IRGuards::Cached::CompareEQValueNumber#994b6833 ON FIRST 1 OUTPUT Lhs.5, Lhs.0, Lhs.1, Lhs.2, Lhs.3, Lhs.4
20 ~0% {6} | JOIN WITH `IRGuards::AbstractValue.getDualValue/0#dispred#bfb2631d` ON FIRST 1 OUTPUT Lhs.2, Lhs.1, Lhs.3, Lhs.4, Lhs.5, Rhs.1
70 ~0% {6} r15 = r13 UNION r14
70 ~1% {7} | JOIN WITH `Operand::Operand.getDef/0#dispred#a70e8079` ON FIRST 1 OUTPUT Rhs.1, _, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Lhs.5
70 ~0% {7} | REWRITE WITH Out.1 := 0
66 ~2% {5} | JOIN WITH `IRGuards::Cached::int_value/1#f9d7a458` ON FIRST 2 OUTPUT Lhs.2, Lhs.3, Lhs.4, Lhs.5, Lhs.6
0 ~0% {5} r16 = JOIN r1 WITH `IRGuards::Cached::BuiltinExpectCallValueNumber.getAUse/0#dispred#23233591` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3, Lhs.4
0 ~0% {6} | JOIN WITH `IRGuards::Cached::CompareValueNumber.hasOperands/2#dispred#7aa36763_102#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Rhs.2
0 ~0% {6} r17 = JOIN r16 WITH project#IRGuards::Cached::CompareNEValueNumber#1aeec1bd ON FIRST 1 OUTPUT Lhs.5, Lhs.1, Lhs.2, Lhs.3, Lhs.0, Lhs.4
0 ~0% {6} r18 = JOIN r16 WITH project#IRGuards::Cached::CompareEQValueNumber#994b6833 ON FIRST 1 OUTPUT Lhs.4, Lhs.1, Lhs.2, Lhs.3, Lhs.0, Lhs.5
0 ~0% {6} | JOIN WITH `IRGuards::AbstractValue.getDualValue/0#dispred#bfb2631d_10#join_rhs` ON FIRST 1 OUTPUT Lhs.5, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Rhs.1
0 ~0% {6} r19 = r17 UNION r18
0 ~0% {7} | JOIN WITH `Operand::Operand.getAnyDef/0#dispred#8dbe2fb8` ON FIRST 1 OUTPUT Rhs.1, _, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Lhs.5
0 ~0% {7} | REWRITE WITH Out.1 := 0
0 ~0% {5} | JOIN WITH `IRGuards::Cached::int_value/1#f9d7a458` ON FIRST 2 OUTPUT Lhs.5, Lhs.2, Lhs.3, Lhs.4, Lhs.6
4052 ~1% {5} r20 = r1 UNION r2 UNION r4 UNION r5 UNION r7 UNION r8 UNION r10 UNION r11 UNION r15 UNION r19
4020 ~1% {5} | AND NOT `IRGuards::Cached::unary_compares_eq/5#7aa979d8#prev`(FIRST 5)
return r20
```
2025-01-22 14:54:24 +01:00
Jonas Jensen
773a98a9eb
Merge pull request #18340 from jbj/diff-informed-getASelectedLocation
...
Java: make more queries diff-informed with getASelectedLocation
2025-01-22 14:25:33 +01:00
Óscar San José
769c627022
Revert updating .net version
2025-01-22 12:28:31 +01:00
Óscar San José
208551c9f2
Update test expected strings for net9
2025-01-22 12:10:02 +01:00
Paolo Tranquilli
ea47d6b6ba
Merge branch 'main' into redsun82/swift-ios
2025-01-22 12:06:43 +01:00
Asger F
051fa66af1
JS: Add change note
2025-01-22 11:49:48 +01:00
Óscar San José
82704c0426
Suggestions from PR
2025-01-22 11:31:25 +01:00
Anders Schack-Mulligen
5bfd22e60a
Merge pull request #18552 from aschackmull/java/xss-regex-perf
...
Java: Improve performance of XSS regex.
2025-01-22 11:28:49 +01:00
Asger F
8771bf81b3
Mention view-component-input in docs and threat model grouping
2025-01-22 11:23:05 +01:00
Asger F
4161f455b8
Revert "Add view-component-input for testing"
...
This reverts commit 6954039a6d106e3611a0892972a979fd45310d1a.
2025-01-22 10:45:52 +01:00
Asger F
e5c0390972
Add view-component-input for testing
2025-01-22 10:45:50 +01:00
Asger F
d647c7b14d
JS: Replace 'instanceof ClientSideRemoteFlowSource'
2025-01-22 10:45:49 +01:00
Asger F
3061d51b20
JS: Add ThreatModelSource#isCilentSideSource()
2025-01-22 10:45:48 +01:00
Asger F
327bdc0b02
JS: Use TypeScript types to restrict ViewComponentInputs in general
2025-01-22 10:45:47 +01:00
Asger F
b015c88c79
JS: Add view-component-input threat model
2025-01-22 10:45:46 +01:00
Jeroen Ketema
7fa9167ef9
Merge pull request #18553 from jketema/preprocblock
...
C++: Update `PreprocBlock.qll` QLDoc and add C++23 test
2025-01-22 10:31:51 +01:00
erik-krogh
04bbd5919a
add change-note
2025-01-22 10:16:11 +01:00
Geoffrey White
24b35ed5a4
Rust: Fixup .expected after merge.
2025-01-22 09:14:31 +00:00
Geoffrey White
b9e523a4b2
Merge branch 'main' into sourcemodels2
2025-01-22 09:10:47 +00:00
Asger F
01f7d45e2d
JS: Add meta query for reporting threat model sources
2025-01-22 09:51:32 +01:00
Asger F
30d192a1db
JS: Move getName() to a shared location
2025-01-22 09:51:32 +01:00
Asger F
f845ac1dd8
Merge pull request #18550 from asgerf/js/vue-ts-notsconfig
...
JS: Avoid inconsistent DB when embedded TS has no associated tsconfig.json
2025-01-22 09:51:06 +01:00
Simon Friis Vindum
e5f419ce75
Shared: Define getNode inside cached module
2025-01-22 09:45:02 +01:00
Ed Minnix
7ed2b9ceeb
fix Files text
2025-01-21 21:16:28 -05:00
Ed Minnix
b510107f39
Ignore DB-CHECK test
2025-01-21 17:27:26 -05:00
Erik Krogh Kristensen
f183bc9a65
Merge pull request #18557 from erik-krogh/ts57
...
JS: update missing TS support doc
2025-01-21 23:13:31 +01:00
erik-krogh
28dd2ca83c
update missing TS support doc
2025-01-21 22:27:57 +01:00
Mathias Vorreiter Pedersen
a1449bf0bd
C++: Accept test changes.
2025-01-21 20:43:54 +00:00
Mathias Vorreiter Pedersen
12666848c0
C++: Fix conflation in 'Pure' models.
2025-01-21 20:43:53 +00:00
Mathias Vorreiter Pedersen
503f018600
C++: Add taint test with false flow from conflation.
2025-01-21 20:43:52 +00:00
Jaroslav Lobačevski
6d94168ad9
gh view
2025-01-21 17:15:41 +00:00
Jeroen Ketema
442dad4ff9
C++: Update PreprocBlock.qll QLDoc and add C++23 test
2025-01-21 18:02:28 +01:00
Jeroen Ketema
91f6498e16
Merge pull request #18537 from jketema/elifdef
...
C++: Support `#elifdef`, `#elifndef`, and MSVC's `#import`
2025-01-21 16:44:27 +01:00
Owen Mansel-Chan
b4c8390991
Merge pull request #18137 from owen-mc/java/jax-rs-annotation-inheritance
...
Java: Update JAX-RS annotation inheritance
2025-01-21 15:26:47 +00:00
Jeroen Ketema
ac18e7494f
C++: Update stats file
2025-01-21 16:14:29 +01:00
Jeroen Ketema
32ff8dc0f6
C++: Add upgrade and downgrade scripts
2025-01-21 16:14:27 +01:00
Jeroen Ketema
e0acf262d5
C++: Add change note
2025-01-21 16:14:18 +01:00
Jeroen Ketema
9fd95381dc
C++: Support #elifdef #elifndef, and MSVC's #import
2025-01-21 16:14:16 +01:00
Jeroen Ketema
a0ef2888c7
C++: Add more preprocessor tests
2025-01-21 16:14:13 +01:00
Chris Smowton
531e637009
Merge pull request #18551 from github/post-release-prep/codeql-cli-2.20.2
...
Post-release preparation for codeql-cli-2.20.2
2025-01-21 14:21:56 +00:00
github-actions[bot]
ebe9088458
Post-release preparation for codeql-cli-2.20.2
2025-01-21 13:58:45 +00:00
Chris Smowton
9fa1ad9d8d
Fix changelog typos
2025-01-21 13:58:44 +00:00
github-actions[bot]
f21784db9d
Release preparation for version 2.20.2
2025-01-21 13:58:43 +00:00
Chris Smowton
fb140404b6
Revert "Release preparation for version 2.20.2"
2025-01-21 13:58:38 +00:00
Anders Schack-Mulligen
0f96e79264
Java: Improve performance of XSS regex.
2025-01-21 14:41:08 +01:00
Asger F
0b9187d76c
JS: Add change note
2025-01-21 14:17:35 +01:00
Asger F
a9d21e70c2
JS: Bump extractor version string
2025-01-21 14:04:12 +01:00
Asger F
dd55460d7f
JS: Update test output
2025-01-21 14:03:30 +01:00
Asger F
784d07c95b
JS: Ensure embedded TypeScript is extracted even when not associated with a tsconfig
2025-01-21 14:02:32 +01:00
Asger F
f3b52adde6
JS: Add test showing DB-CHECK failure
2025-01-21 14:02:17 +01:00
Michael Nebel
43bc3e5d99
Merge pull request #17911 from michaelnebel/csharp/deprecateexperimental
...
C#: Deprecate experimental queries.
2025-01-21 13:29:38 +01:00
Michael Nebel
93562950bb
C#: Add change-note.
2025-01-21 13:14:27 +01:00
Michael Nebel
0932a0edb5
C#: Updated expected test output.
2025-01-21 13:14:26 +01:00
Michael Nebel
00de19ce13
C#: Deprecate experimental queries and libraries.
2025-01-21 13:14:24 +01:00
Jonas Jensen
eacc600b29
Java: annotate a query as not selecting sources
...
This is for performance in diff-informed mode but also for avoiding
spurious entries in the code scanning timeline and alert list.
2025-01-21 12:56:06 +01:00
Geoffrey White
ab9ab0e22f
Merge pull request #18536 from GeekMasher/rust-postgres
...
Rust: Add Postgres crate Models
2025-01-21 11:17:15 +00:00
Owen Mansel-Chan
7b071ba91e
Merge pull request #18544 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2025-01-21 10:04:15 +00:00
Mathew Payne
2b74061167
fix(rust): Update TaintFlowStep
2025-01-21 09:58:33 +00:00
Owen Mansel-Chan
19df33fb43
Remove another erroneous comment
...
Co-authored-by: Jami <57204504+jcogs33@users.noreply.github.com >
2025-01-21 09:25:37 +00:00
erik-krogh
2f1bd75ee9
remove redundant cast
2025-01-21 09:51:14 +01:00
erik-krogh
17afab7d0f
support that two indexOf() calls use the same string-concatenation in getAnEquivalentIndexOfCall()
2025-01-21 09:43:57 +01:00
erik-krogh
d5529e3a7e
ensure an indexOf call is equivalent with itself. (getAUse() is used later to find matching indexOf calls)
2025-01-21 09:42:30 +01:00
erik-krogh
905d904543
add a few failing tests
2025-01-21 09:40:24 +01:00
Paolo Tranquilli
de020f60e2
Merge branch 'main' into redsun82/swift-ios
2025-01-21 08:26:55 +01:00
github-actions[bot]
35462a4d09
Add changed framework coverage reports
2025-01-21 00:20:17 +00:00
Chris Smowton
fc841023c6
Merge pull request #18541 from github/post-release-prep/codeql-cli-2.20.2
...
Post-release preparation for codeql-cli-2.20.2
2025-01-20 22:11:14 +00:00
Owen Mansel-Chan
da86668cfd
(Multiple languages) Use slightly clearer wording
2025-01-20 22:10:33 +00:00
Owen Mansel-Chan
7ff9fcb445
(Multiple languages) Simplify taint tracking example
2025-01-20 22:10:31 +00:00
Owen Mansel-Chan
d46899d37b
(Multiple languages) Be clearer about which query is being discussed
2025-01-20 22:10:29 +00:00
Owen Mansel-Chan
6d9daec514
(Multiple languages) Use active voice
2025-01-20 22:10:27 +00:00
Owen Mansel-Chan
4585c8caf2
(Multiple languages) Clarify defn of barriers
2025-01-20 22:10:25 +00:00
Owen Mansel-Chan
d1d6b520e1
(Multiple languages) "global data flow paths"
2025-01-20 22:10:24 +00:00
Owen Mansel-Chan
ed44db71d2
Explain StringOps::Formatting::Range, with a link
2025-01-20 22:10:22 +00:00
Owen Mansel-Chan
6fa18be0cc
Fix QLDocs
2025-01-20 22:07:01 +00:00
Owen Mansel-Chan
d472dfe4a3
Fix QLDocs
2025-01-20 21:36:30 +00:00
github-actions[bot]
fbb7f0a0c6
Post-release preparation for codeql-cli-2.20.2
2025-01-20 21:11:14 +00:00
Chris Smowton
cf9d773de0
Fix change-note typo
2025-01-20 21:11:13 +00:00
github-actions[bot]
a0512a50f2
Release preparation for version 2.20.2
2025-01-20 21:11:12 +00:00
Nick Rolfe
3e5707154a
Merge pull request #18542 from github/nickrolfe/java-stats
...
Java: fix stats for databaseMetadata relation
2025-01-20 17:28:51 +00:00
Nick Rolfe
6b5974a372
Java: fix stats for databaseMetadata relation
2025-01-20 17:02:25 +00:00
Joe Farebrother
d248fbfe57
Merge pull request #18301 from joefarebrother/python-model-missing-builtins
...
Python: Add models for builtins `map`, `filter`, `zip`, and `enumerate`.
2025-01-20 16:39:37 +00:00
Jaroslav Lobačevski
88529d42d0
Remove comparison
2025-01-20 16:28:35 +00:00
Owen Mansel-Chan
489a87fbae
Small QL improvement
2025-01-20 16:22:37 +00:00
Owen Mansel-Chan
f928e4cc87
Improve tests
2025-01-20 16:22:35 +00:00
Owen Mansel-Chan
4e59ac4819
Merge pull request #14873 from Kwstubbs/go-rs-cors
...
Go: Add Rs Cors Support
2025-01-20 16:16:50 +00:00
Paolo Tranquilli
c47177fd80
Merge branch 'main' into redsun82/swift-ios
2025-01-20 16:43:49 +01:00
Ian Lynagh
66777e6282
Merge pull request #18450 from igfoo/igfoo/kot2.1.20b1
...
Kotlin: Add support for 2.1.20-Beta1
2025-01-20 15:32:19 +00:00
Nick Rolfe
3846be450d
Merge pull request #18529 from github/nickrolfe/java-databaseMetadata
...
Java: add `databaseMetadata` relation to dbscheme
2025-01-20 15:25:01 +00:00
Jaroslav Lobačevski
facceb6c2d
Change note
2025-01-20 15:08:12 +00:00
Chris Smowton
411f3cd2f5
Merge pull request #17701 from smowton/smowton/feature/read-fields-before-executetemplate
...
Go: `template/text.Template` execution methods: support reading arbitrary content
2025-01-20 15:01:06 +00:00
Mathew Payne
7edb397de1
Merge branch 'main' into rust-postgres
2025-01-20 15:01:00 +00:00
Jaroslav Lobačevski
da9d612a47
Improve bash support
2025-01-20 14:59:30 +00:00
Ian Lynagh
cec503eecd
Kotlin: Fix build with 2.1.20-Beta1
2025-01-20 14:31:58 +00:00
Ian Lynagh
4e798b3db4
Kotlin: Add 2.1.20-Beta1
2025-01-20 14:31:57 +00:00
Ian Lynagh
ff328d6c04
Kotlin: Add 2.1.20-Beta1 deps
2025-01-20 14:31:57 +00:00
Paolo Tranquilli
af361ae245
Merge branch 'main' into redsun82/swift-ios
2025-01-20 14:57:35 +01:00
Simon Friis Vindum
9a4bf7513d
Shared: Add more detailed documentation for immediatelyControls
2025-01-20 14:20:48 +01:00
Paolo Tranquilli
e3e9a15525
Merge branch 'main' into redsun82/swift-ios
2025-01-20 13:53:47 +01:00
Simon Friis Vindum
f7e90497bc
Shared: Implement getScope in BB module instead of CFG module
2025-01-20 13:44:51 +01:00
Simon Friis Vindum
62a459d3d7
Shared: Address basic block review comments
2025-01-20 13:33:27 +01:00
Mathew Payne
121f0584e4
feat(rust): Add models + tests
2025-01-20 12:06:09 +00:00
Mathew Payne
04ee557b31
feat(rust): Add initial Postgres support + tests
2025-01-20 12:01:23 +00:00
Paolo Tranquilli
f66ea5e20b
Merge branch 'main' into redsun82/swift-ios
2025-01-20 10:57:04 +01:00
Geoffrey White
d970fe7768
Rust: remote-source -> remote.
2025-01-20 09:20:44 +00:00
Kevin Stubbings
217bc74278
Fix documentation
2025-01-19 22:43:14 -08:00
Geoffrey White
d6c5c00ca9
Rust: Autoformat.
2025-01-17 21:16:02 +00:00
Kevin Stubbings
e1c601dc52
oops
2025-01-17 10:18:59 -08:00
Nick Rolfe
64f33955b5
Java: add databaseMetadata to dbscheme
2025-01-17 15:18:07 +00:00
Paolo Tranquilli
2961749df6
Merge branch 'main' into redsun82/swift-ios
2025-01-17 15:28:36 +01:00
Paolo Tranquilli
8c54f51cc9
Swift: use xcode fixture
2025-01-17 15:27:20 +01:00
Simon Friis Vindum
e382ffc5d2
Shared: Address review comments for basic block library
2025-01-17 15:12:11 +01:00
Geoffrey White
0ce1a1bef0
Rust: Make the qldoc for hasher-input MAD sinks a bit clearer.
2025-01-17 13:52:29 +00:00
Geoffrey White
ce982143fb
Rust: Remove the now empty files.
2025-01-17 13:52:27 +00:00
Geoffrey White
b8aa518931
Rust: Re-model reqwest sources using models-as-data.
2025-01-17 13:52:22 +00:00
Geoffrey White
1a000c39c9
Rust: Remove QL models for reqwest sources.
2025-01-17 13:42:27 +00:00
Geoffrey White
5a73e0bd09
Rust: Re-model std::env sources using models-as-data.
2025-01-17 13:39:04 +00:00
Simon Friis Vindum
53b63bed00
Actions: Implement added predicates in CFG instantiation
2025-01-17 13:31:00 +01:00
Simon Friis Vindum
4d05b6a0a5
Shared: Address review comments for shared basic block library
2025-01-17 13:11:49 +01:00
Óscar San José
8ef4c2c229
Remove ImplicitUsings label, not supported by Net 6.0
2025-01-17 11:35:34 +01:00
Óscar San José
bb47f5b6de
Update csharp target framework to net9.0
2025-01-17 11:33:43 +01:00
Geoffrey White
db4370d149
Rust: Remove QL models for std::env sources.
2025-01-17 10:28:46 +00:00
Óscar San José
b39bfdbb04
Upgrade workflows to ubuntu-24
2025-01-17 11:22:15 +01:00
Simon Friis Vindum
8b20b0d334
Shared: Add change note for basic block addition
2025-01-16 16:36:52 +01:00
Simon Friis Vindum
c051eecfb4
Shared: Add shared basic block library
2025-01-16 16:36:45 +01:00
Owen Mansel-Chan
549baba330
Update docs/codeql/codeql-language-guides/analyzing-data-flow-in-go.rst
...
Co-authored-by: Chris Smowton <smowton@github.com >
2025-01-16 15:03:40 +00:00
Paolo Tranquilli
1cf2274629
Merge branch 'main' into redsun82/swift-ios
2025-01-16 15:20:25 +01:00
Ed Minnix
91b6b3ff1f
Fix FindOneAndReplace
2025-01-16 08:59:52 -05:00
Ed Minnix
b558119b51
Add depstubber line
2025-01-16 08:59:33 -05:00
Owen Mansel-Chan
26b8758108
Fix indentation in code block
2025-01-16 13:48:46 +00:00
Paolo Tranquilli
8189a8669c
Swift: add skeleton iOS app for integration testing
2025-01-16 13:07:39 +01:00
Owen Mansel-Chan
75424f3010
Update java data flow docs: two misc improvements
...
Copied from the C# equivalent.
2025-01-16 12:06:23 +00:00
Owen Mansel-Chan
037ce3d3df
Update java data flow docs: Add 5 missing "import java"s
2025-01-16 12:05:42 +00:00
Owen Mansel-Chan
9785aac8be
Update java data flow docs: update use of deprecated class
2025-01-16 12:04:45 +00:00
Owen Mansel-Chan
4f2d7ade5b
Delete old docs for data flow in Go
2025-01-16 12:03:14 +00:00
Owen Mansel-Chan
cab9c64fbc
Add docs for data flow in Go
...
Mostly based on the java and C# equivalents.
2025-01-16 12:02:37 +00:00
Ed Minnix
f5045abe9e
Fix files test
2025-01-15 10:43:01 -05:00
Simon Friis Vindum
ce5c886ad4
Rust, Ruby: Add basic block test
2025-01-15 15:24:26 +01:00
Joe Farebrother
344dd2dab5
Qldoc fix
2025-01-15 10:26:37 +00:00
Joe Farebrother
2aea356756
Add change note + fix tests
2025-01-15 10:24:18 +00:00
Joe Farebrother
6a6585e415
Add tests for zip and enumerate
2025-01-15 09:57:15 +00:00
Tom Hvitved
1bbb3fde96
Rust: Take nested functions into account when resolving variables
2025-01-15 09:44:53 +01:00
Tom Hvitved
fe216aefc7
Rust: Add tests for nested functions
2025-01-15 09:43:43 +01:00
Ed Minnix
239a10642a
Blazor: buildless integration test
2025-01-14 22:48:33 -05:00
Ed Minnix
4ac59795b9
Change note
2025-01-14 22:41:49 -05:00
Ed Minnix
55422d27fb
mongodb tests
2025-01-14 22:36:13 -05:00
Ed Minnix
9a7f14f717
Add Database::Watch
2025-01-14 22:35:34 -05:00
Ed Minnix
68ab767189
Sort models in alphabetical order
2025-01-14 22:04:03 -05:00
Ed Minnix
6a8945c55d
Add missing models
2025-01-14 22:04:00 -05:00
Ed Minnix
831cea663b
mongodb models
2025-01-14 22:03:58 -05:00
Chris Smowton
9504f3611f
Restrict text/template modelling to known call targets
...
Otherwise it's too easy to define a common interface to both text/template, which doesn't sanitize, and html/template, which does.
2025-01-14 17:52:02 +00:00
Chris Smowton
016bda04a5
Autoformat
2025-01-14 17:52:01 +00:00
Chris Smowton
24eb774921
Change note
2025-01-14 17:52:00 +00:00
Chris Smowton
bf34860ad0
Test deeply ntested taint
2025-01-14 17:51:59 +00:00
Chris Smowton
3573ff10c7
Update to account for changes on main
2025-01-14 17:51:58 +00:00
Chris Smowton
9c409f1280
Apply cosmetic review feedback
2025-01-14 17:51:57 +00:00
Chris Smowton
5548662a74
Switch to implementation using a universal read-only ContentSet
2025-01-14 17:51:55 +00:00
Chris Smowton
ae34a9c80e
template/text.Template execution methods: support reading arbitrary content
2025-01-14 17:51:54 +00:00
Joe Farebrother
460de3f7d5
Reduce generality of map and zip for performance
2025-01-14 09:39:57 +00:00
Joe Farebrother
4e36008ed9
Add tests
2025-01-14 09:39:56 +00:00
Joe Farebrother
642f9dcbea
Model missing builtins
2025-01-14 09:39:54 +00:00
Paolo Tranquilli
7c0409da35
Rust: add instructions for codegen in README.md
2025-01-10 11:50:49 +01:00
Paolo Tranquilli
70df1b9abe
Rust: give more options for building in README.md
2025-01-10 11:45:55 +01:00
Chad Bentz
1a4c2058a0
codeql query format
2025-01-09 19:39:06 -05:00
Chad Bentz
f413c4f467
Remove codeql config references from query doc
2025-01-09 19:32:06 -05:00
Chad Bentz
26074bb7fe
Make docs less verbose regarding codeql config + enhance changlog to highlight extensibility
2025-01-09 19:30:02 -05:00
Chad Bentz
b144c2f597
Merge branch 'github:main' into felickz/actions-trusted-owner-data-extensions
2025-01-09 15:07:49 -05:00
aegilops
da68a04cd1
Merge branch 'angular-sources-sinks' of https://github.com/aegilops/codeql into angular-sources-sinks
2025-01-09 18:03:39 +00:00
Paul Hodgkinson
1ada51130f
Merge branch 'main' into angular-sources-sinks
2025-01-09 18:03:04 +00:00
aegilops
b07e801c10
Add new test for new XSS sink, update expected to match
2025-01-09 18:02:45 +00:00
aegilops
e7881a8c7f
Fix typo
2025-01-09 17:11:06 +00:00
aegilops
62599b2a12
Formatted
2025-01-09 17:02:37 +00:00
aegilops
98b4c35844
Set doc string on getElementNode predicate
2025-01-09 17:00:01 +00:00
Tom Hvitved
de0deabe4c
Ruby: Implement localMustFlowStep
2025-01-09 10:37:43 +01:00
Tom Hvitved
07910b09d0
Ruby: Add more callback flow tests
2025-01-09 09:30:08 +01:00
aegilops
4b57d5feb2
Added XSS sink for innerHTML/outerHTML using new Angular attribute def
2025-01-08 16:36:46 +00:00
aegilops
2dc9e7bab7
Moved def from AngularJSCore to Angular2
2025-01-08 16:36:10 +00:00
Chad Bentz
6b3098d26c
Add configuration instructions for trusted Action publishers using data extensions
2025-01-07 19:26:18 -05:00
Chad Bentz
bccec0a711
Format
2025-01-07 17:25:40 -05:00
Chad Bentz
3e94a4c2bf
Refactor trusted actions owner model
...
- use existing data extensions config and yml folder
- rename from trustedActionsOwner to trustedActionsOwnerDataModel
- update related predicates
2025-01-07 17:22:24 -05:00
Chad Bentz
35587ed3e7
Format lib
2025-01-07 17:02:37 -05:00
Chad Bentz
e4cfd97069
Format
2025-01-07 17:01:33 -05:00
Chad Bentz
8f9aecd76f
Add change notes for expanding Trusted Action owner list using data extensions
2025-01-07 15:55:58 -05:00
Chad Bentz
22e7b9a825
Convert trusted actions list to data extension
2025-01-07 15:35:12 -05:00
Owen Mansel-Chan
7688f46650
Add change note
2025-01-07 17:08:23 +00:00
Owen Mansel-Chan
9cc614ac2d
Allow jax-rs path annotation inheritance
2025-01-07 16:44:12 +00:00
Owen Mansel-Chan
de1b374e0e
Test JAX-RS class/interface annotation inheritance
2025-01-07 15:28:41 +00:00
aegilops
4530118681
Comment out hardcoded definition of sink
2025-01-06 17:33:31 +00:00
aegilops
820fe6cd04
Formatting
2025-01-06 16:59:04 +00:00
aegilops
564df365cb
Merge branch 'main' of https://github.com/github/codeql into angular-sources-sinks
2025-01-06 16:53:02 +00:00
aegilops
322c731ac3
Attempt at AttributeDefinition to generalise Angular Renderer2 support
2025-01-06 16:52:38 +00:00
aegilops
6fb201372b
Update changelog note to remove new source
2025-01-06 16:51:59 +00:00
aegilops
e414b8c5be
Remove @Input() decorated members as remote sources, in favour of a later Threat Model
2025-01-06 16:51:35 +00:00
aegilops
8dac00aa83
Change from getParameter() to getArgument()
2025-01-06 15:43:47 +00:00
aegilops
aba8be2902
Changelog for Angular source/sink update
2025-01-03 17:07:35 +00:00
aegilops
7128700003
Simplified AngularInputUse class
2025-01-03 17:02:55 +00:00
aegilops
4891c1e5fe
Added QLdoc and simplified QL in source class
2025-01-03 16:50:47 +00:00
aegilops
4773917876
Formatting
2025-01-03 16:43:00 +00:00
Paul Hodgkinson
a23f4ee007
Merge branch 'main' into angular-sources-sinks
2025-01-03 16:38:48 +00:00
aegilops
0f64822356
New remote source - reading from an @Input() decorated class member
2025-01-03 16:34:15 +00:00
aegilops
09e4c78b0f
New XSS sink - writing to innerHTML using the Angular Renderer2 API
2025-01-03 16:33:42 +00:00
Jonas Jensen
2b1c70c33b
Java: Diff-informed PolynomialReDoS.ql
...
This and other queries would also benefit from making `RegexFlow`
diff-informed. That will come later.
2024-12-20 13:01:09 +01:00
Jonas Jensen
5bebae9abf
Java: Diff-informed ImproperIntentVerification.ql
2024-12-20 13:01:07 +01:00
Jonas Jensen
e799bff744
Java: Diff-informed TaintedPermissionsCheck.ql
2024-12-20 13:01:06 +01:00
Jonas Jensen
011d667f06
Java: Diff-informed PredictableSeed.ql
2024-12-20 13:01:05 +01:00
Jonas Jensen
a928a0d2b5
Java: Diff-informed BrokenCryptoAlgorithm.ql
2024-12-20 13:01:04 +01:00
Jonas Jensen
fea260bd55
Java: Diff-informed UnsafeHostnameVerification.ql
...
This commit also adds a test case that would fail under `codeql test run
--check-diff-informed` if not for the override of
`getASelectedSourceLocation`. There was no existing such test since all
the existing tests used anonymous classes whose location was on the same
line as the source.
2024-12-20 12:58:59 +01:00
Jonas Jensen
8224ef6929
Java: Diff-informed InsecureTrustManager.ql
2024-12-20 11:22:58 +01:00
Jonas Jensen
eac1a4c002
Java: Diff-informed SqlTainted.ql
2024-12-20 11:22:57 +01:00
Jonas Jensen
2561cec80c
Java: Diff-informed CommandLineQuery
2024-12-20 11:22:56 +01:00
Jonas Jensen
40529d1e51
DataFlow: Add the concept of selected locations
...
This extension allows queries to be diff-informed even when the elements
they select are different from the sources and sinks found by data flow.
2024-12-20 11:22:55 +01:00
Kevin Stubbings
4b95ea0987
Merge branch 'main' into go-rs-cors
2024-12-17 17:35:29 -08:00
Kevin Stubbings
a94ba25ebe
Apply suggestions from code review
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2024-11-13 14:45:45 -08:00
Kevin Stubbings
460ed30d05
Fixed tests
2024-11-12 16:08:14 -08:00
Kevin Stubbings
eb3a76ddce
Merge branch 'github:main' into path-sanitizers
2024-11-12 16:03:00 -08:00
Kevin Stubbings
8744f158bd
New tests
2024-11-12 15:44:47 -08:00
Kevin Stubbings
374b13e1bb
Remove path sanitizer
2024-10-15 14:34:11 -07:00
Kevin Stubbings
1287f1befc
Address feedback
2024-10-15 14:01:14 -07:00
yoff
9ed8fe5dd0
Update python/ql/test/library-tests/dataflow/coverage/functional.py
...
Co-authored-by: Taus <tausbn@github.com >
2024-10-15 17:35:36 +02:00
Rasmus Lerchedahl Petersen
195b70aca6
python: Add test for functional-like programming
...
This can also serve for a place to add tests for
constructs like threading.Thread, mulitprocess.Process, concurrent.futures.ThreadPoolExecutor, and concurrent.futures.ProcessPoolExecutor.
2024-10-15 12:54:30 +02:00
Kevin Stubbings
d195273bf4
Add mux.Vars() and url.Path sanitizers
2024-10-14 19:49:29 -07:00
Kevin Stubbings
8277c602ac
depstubber
2023-11-21 14:31:52 -08:00
Kevin Stubbings
d7e2fbc11d
Finish
2023-11-21 14:27:17 -08:00
Kevin Stubbings
9958ad904c
thesame
2023-11-20 23:40:55 -08:00
Kevin Stubbings
28288e0d23
basic2
2023-11-20 23:40:55 -08:00
Kevin Stubbings
3b78477406
Basics
2023-11-20 23:40:55 -08:00