Michael B. Gale
a36d3f36fb
JS: Add new env vars as extractor options
2024-06-21 14:55:28 +01:00
Michael B. Gale
fb9db2b244
JS: Add env vars to allow specifying memory sizes
2024-06-21 14:49:23 +01:00
Erik Krogh Kristensen
db768960f4
Merge pull request #15060 from am0o0/amammad-js-envinjection
...
JS: Env Injection query
2024-06-20 21:27:21 +02:00
Erik Krogh Kristensen
555d7e5958
Merge pull request #14293 from am0o0/amammad-js-CodeInjection_dynamic_import
...
JS: Dynamic import as code injection sink
2024-06-20 21:19:57 +02:00
Erik Krogh Kristensen
60ed51781e
Merge pull request #16790 from github/max-schaefer-patch-1
...
JavaScript: Fix CodeQL alert in extractor
2024-06-20 20:20:00 +02:00
Erik Krogh Kristensen
e84028d01e
Merge pull request #14088 from am0o0/amammad-js-JWT
...
JS: decoding JWT without signature verification
2024-06-20 20:13:40 +02:00
Jeroen Ketema
0e04a59c08
Merge pull request #16795 from jketema/test-cleanup
...
C++: Remove unneeded options from tests
2024-06-20 16:24:07 +02:00
Jeroen Ketema
4c4c15b425
C++: Remove unneeded options from tests
2024-06-20 14:21:34 +02:00
Asger F
a36e39359f
Merge pull request #16739 from RasmusWL/js-array-steps
...
JS: Allow many Array steps to be used in type-tracking
2024-06-20 11:39:46 +02:00
Rasmus Wriedt Larsen
596102d3fb
Update javascript/ql/lib/change-notes/2024-06-14-type-tracking-array-steps.md
...
Co-authored-by: Asger F <asgerf@github.com >
2024-06-20 10:07:49 +02:00
Max Schaefer
2be171746b
JavaScript: Fix CodeQL alert in extractor
...
This doesn't make a difference in practice because we only run the method on arrays of even length, but we might as well fix it.
2024-06-19 17:13:01 +01:00
Tom Hvitved
6dbdc9e17f
Merge pull request #16784 from github/redsun82/fix-warnings-in-ql-tests
...
C++/Java: Accept new warning format in ql tests
2024-06-19 13:05:50 +02:00
Paolo Tranquilli
b7a2ea8981
CI: accept other diagnostic format related test changes
2024-06-19 11:33:50 +02:00
Paolo Tranquilli
59f8f8a394
Merge branch 'main' into redsun82/fix-warnings-in-ql-tests
2024-06-19 11:21:36 +02:00
Tamás Vajk
45ece48b6f
Merge pull request #16776 from tamasvajk/fix/source-generator-folder
...
C#: Make sure no file is added twice to the compilation
2024-06-19 10:09:50 +02:00
Paolo Tranquilli
919ddccfdb
C++/Java: Accept new warning format in ql tests
2024-06-19 09:13:18 +02:00
Edward Minnix III
7adfa6bbed
Merge pull request #16709 from egregius313/egregius313/go/df/threat-models/refactor-queries
...
Go: Refactor queries to use `ThreatModelFlowSource` instead of `RemoteFlowSource`
2024-06-18 13:56:00 -04:00
Ed Minnix
5bbd003dfc
Reword change note
2024-06-18 12:27:21 -04:00
Ed Minnix
b53712cae0
Change note
2024-06-18 12:27:19 -04:00
Ed Minnix
6a0be6ad09
ExternalAPIs
2024-06-18 12:27:18 -04:00
Ed Minnix
46e16b88bb
Refactor experimental queries to use ThreadModelFlowSource
2024-06-18 12:27:17 -04:00
Ed Minnix
cfd5f53eb0
Refactor Customizations libraries to use ThreatModelFlowSource
2024-06-18 12:27:15 -04:00
Edward Minnix III
8997f2cdf2
Merge pull request #16697 from egregius313/egregius313/go/dataflow/threat-modeling
...
Go: Introduce Threat Modeling
2024-06-18 12:25:33 -04:00
Taus
59a77a873c
Merge pull request #16754 from github/tausbn/python-disregard-unused-imports-in-pytest-tests
...
Python: Disregard unused imports in `pytest` tests
2024-06-18 15:10:31 +02:00
Owen Mansel-Chan
9403bf25d8
Merge pull request #16667 from smowton/smowton/fix/global-variable-side-effect
...
Add support for flow through content of global variables
2024-06-18 13:41:57 +01:00
Tamas Vajk
6c8e391a63
C#: Make sure no file is added twice to the compilation
2024-06-18 13:45:09 +02:00
Tamas Vajk
5170585515
C#: Add integration test with file added multiple times in the same compilation
2024-06-18 13:45:06 +02:00
Max Schaefer
2c4a95bb5e
Merge pull request #16777 from github/max-schaefer-patch-1
...
Swift: Add missing bracket in example
2024-06-18 11:39:42 +01:00
Alex Ford
6c3d90e8a0
Merge pull request #16650 from alexrford/rb/routing-improvements
...
Ruby: ActionDispatch - support `path => target` route format
2024-06-18 11:17:05 +01:00
Max Schaefer
9ca74de3e9
Swift: Add missing bracket in example
2024-06-18 11:00:59 +01:00
Joe Farebrother
33704779ea
Merge pull request #16503 from joefarebrother/ruby-sensitive-sources
...
Ruby: Use additional sensitive data heuristics for CleartextSources
2024-06-18 10:57:55 +01:00
Michael Nebel
cd9d58fdc8
Merge pull request #16772 from michaelnebel/java/taintedpermissionthreatmodel
...
Java: Opt-in `java/tainted-permissions-check` to threat models.
2024-06-18 10:54:28 +02:00
Joe Farebrother
eee7f5a896
Use a combined regex for performance
2024-06-17 22:21:33 +01:00
Cornelius Riemenschneider
0f98d9e815
Merge pull request #16774 from github/criemen/cleanup
...
Remove unused bzl files.
2024-06-17 20:04:25 +02:00
Chris Smowton
4da5d6660a
Add change note
2024-06-17 16:49:09 +01:00
Chris Smowton
38ee085782
Adjust test expectation
2024-06-17 16:46:49 +01:00
Chris Smowton
822f6eebfb
Add support for flow through content of global variables
2024-06-17 16:42:23 +01:00
Ed Minnix
b4ecc81145
Fix provenance numbers in tests
2024-06-17 11:33:19 -04:00
Ed Minnix
fa2c50616b
Remove getSourceType definitions
2024-06-17 10:57:11 -04:00
Ed Minnix
b6adff6377
Fix jsoniter test
2024-06-17 10:51:13 -04:00
Ed Minnix
53dd269f9f
Go: Threat model tests
2024-06-17 10:51:11 -04:00
Ed Minnix
7f19f449eb
Change note
2024-06-17 10:51:10 -04:00
Ed Minnix
49fb372eb9
Add getSourceType declarations to existing remote flow sources
2024-06-17 10:51:09 -04:00
Ed Minnix
df6449cfc7
Go: Add the SourceNode and ThreatModelFlowSource classes
2024-06-17 10:51:07 -04:00
Ed Minnix
b697068e9a
Go: Add threat modeling shared library
2024-06-17 10:51:06 -04:00
Michael Nebel
5686efd25c
Update java/ql/src/change-notes/2024-06-17-tainted-permissions-check.md
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2024-06-17 16:47:22 +02:00
Cornelius Riemenschneider
f41bd41bd0
Remove unused bzl files.
2024-06-17 15:15:08 +02:00
Michael Nebel
197cdab43d
Merge pull request #16752 from michaelnebel/shared/sourcesinkcallables
...
C#/Java: Add some (shared) helper classes for Neutrals, Sources and Sink
2024-06-17 14:58:27 +02:00
Anders Schack-Mulligen
0e8af39b77
Merge pull request #16719 from aschackmull/shared/fix-qldoc
...
Shared: Fix file-module qldoc.
2024-06-17 13:26:57 +02:00
Anders Schack-Mulligen
96b6ddefe0
Merge pull request #16751 from aschackmull/java/sndlevelscope-fix
...
Java: Calculate 2nd level scopes for implicit instance accesses.
2024-06-17 13:10:46 +02:00
Michael Nebel
57925373c6
Address review comment.
2024-06-17 13:02:25 +02:00
Michael Nebel
833b4f90bf
Java: Make source and sink callable adapters.
2024-06-17 12:53:08 +02:00
Michael Nebel
0fabca94db
C#: Use the new shared classes for Source and Sink callables.
2024-06-17 12:53:06 +02:00
Michael Nebel
3d53ddf919
DataFlow: Add some shared classes for Neutrals, Source and Sink callables.
2024-06-17 12:53:03 +02:00
Michael Nebel
e1317ddcb6
Merge pull request #16768 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2024-06-17 11:51:35 +02:00
Anders Schack-Mulligen
b8b95fd81d
Java: Add change note.
2024-06-17 11:46:54 +02:00
Michael Nebel
c3862660e4
Java: Add change note.
2024-06-17 11:07:29 +02:00
Michael Nebel
327dab69d0
Java: Opt-in the tainted permissions check query to threat models.
2024-06-17 11:02:08 +02:00
Jeroen Ketema
1d1a84962b
Merge pull request #16765 from jketema/attrib-dup
...
C++: Add more tests that show we do not properly deduplicate attributes
2024-06-17 07:07:55 +02:00
github-actions[bot]
abe2deb6a6
Add changed framework coverage reports
2024-06-17 00:18:39 +00:00
Andrew Eisenberg
3d3a315456
Merge pull request #16766 from github/aeisenberg/requirements
...
Add powershell to list of requirements on windows
2024-06-14 15:15:28 -07:00
Andrew Eisenberg
d238b9198d
Clarify that this applies to both autobuild and regular builds
2024-06-14 14:41:29 -07:00
Owen Mansel-Chan
b0afba49a2
Merge pull request #16761 from owen-mc/java/reverse-dns-get-loopback-address
...
Java: Exclude loopback address from reverse DNS source
2024-06-14 22:39:55 +01:00
Andrew Eisenberg
39a8af6519
Add powershell to list of requirements on windows
2024-06-14 14:30:47 -07:00
Jeroen Ketema
14b5114aa6
C++: Add more tests that show we do not properly deduplicate attributes
2024-06-14 17:44:05 +02:00
Jeroen Ketema
c0df22950b
Merge pull request #16763 from jketema/attrib-dup
...
C++: Add test that show that routine attributes are not fully de-duplicated
2024-06-14 17:15:27 +02:00
Taus
b7b0f84e8b
Python: Handle @pytest.fixture decorations with arguments as well
...
Not the prettiest of solutions, but it seems to work well enough.
2024-06-14 15:11:25 +00:00
Taus
c75e66c433
Merge pull request #16762 from github/redsun82/python-disregard-unused-imports-in-pytest-tests
...
Python: failing unused import test case
2024-06-14 16:57:53 +02:00
Owen Mansel-Chan
9aa0c9f1f3
Fix test expectations
2024-06-14 15:55:30 +01:00
Paolo Tranquilli
1046d03486
Python: update unused import test case for pytest
2024-06-14 16:55:05 +02:00
Jeroen Ketema
7d97463e4d
C++: Add test that show that routine attributes are not fully de-duplicated
2024-06-14 16:43:29 +02:00
Ian Lynagh
079717bbc0
Merge pull request #16694 from igfoo/igfoo/PopulationSpecFile
...
Kotlin: Remove unused PopulationSpecFile
2024-06-14 15:06:39 +01:00
Rasmus Wriedt Larsen
3fc8401370
JS: Add change-note
2024-06-14 15:37:25 +02:00
Rasmus Wriedt Larsen
3f2befc3e5
JS: Support spread arguments in array.splice
2024-06-14 15:33:17 +02:00
Rasmus Wriedt Larsen
269f8ca2cd
JS: Add splice(...arr) test
2024-06-14 15:19:56 +02:00
Rasmus Wriedt Larsen
68ccec3d43
JS: Prepare for new test
2024-06-14 15:18:47 +02:00
Taus
2f00a0d323
Python: Also test pytest fixture factories
2024-06-14 13:11:00 +00:00
Owen Mansel-Chan
6cfd9458b0
Add change note
2024-06-14 14:05:25 +01:00
Owen Mansel-Chan
7a13c31021
Exclude loopback address from reverse DNS source
2024-06-14 14:05:01 +01:00
Owen Mansel-Chan
5973f3fadc
Add test for reverse DNS from loopback address
2024-06-14 14:04:47 +01:00
Owen Mansel-Chan
098b732937
Fix formatting of inline expectation test comment
2024-06-14 14:04:42 +01:00
Rasmus Wriedt Larsen
194ef607f7
JS: Updated .expected
2024-06-14 14:49:34 +02:00
Taus
78729180ad
Python: Fix pytest fixture unused import FPs
2024-06-14 12:05:55 +00:00
Taus
f3a9c9a9dc
Python: Add tests for pytest fixture unused import FPs
2024-06-14 12:03:43 +00:00
am0o0
4e1f7a930d
fix invalid js file sample in qlhelp
2024-06-14 13:47:01 +02:00
Paolo Tranquilli
e2a47e7c18
Merge pull request #16720 from github/redsun82/kotlin
...
Kotlin: cleanup after internal changes
2024-06-14 13:28:22 +02:00
Cornelius Riemenschneider
c808953b1d
Merge pull request #16723 from github/criemen/codeql-pack-group
...
`pkg.bzl`: Significantly restructure `codeql_pack` rule.
2024-06-14 13:19:00 +02:00
Michael Nebel
3525967143
Merge pull request #16701 from michaelnebel/csharp/modelgentaintmembers
...
C#/Java: Improve Sink and Summary model generation.
2024-06-14 12:30:50 +02:00
Tom Hvitved
c7b4f51077
Merge pull request #16758 from hvitved/ruby/shared-ci-trigger
...
Ruby: Trigger `ruby-build.yml` on changes to shared extractor
2024-06-14 12:00:18 +02:00
Michael B. Gale
039537f7ba
Merge pull request #16727 from github/mbg/go/fix/too-many-go-mod-files-initialised
2024-06-14 10:14:57 +01:00
Tom Hvitved
be66ea2178
Ruby: Trigger ruby-build.yml on changes to shared extractor
2024-06-14 11:09:03 +02:00
Michael Nebel
a29446a566
C#/Java: Address review comments.
2024-06-14 10:46:19 +02:00
Cornelius Riemenschneider
58f69c9385
Make CodeQLPackInfo provider public.
2024-06-13 21:57:46 +02:00
Cornelius Riemenschneider
02100e58d9
Address review.
2024-06-13 21:55:56 +02:00
Cornelius Riemenschneider
ede0b5bdf4
Merge remote-tracking branch 'origin/main' into criemen/codeql-pack-group
2024-06-13 21:53:31 +02:00
Paolo Tranquilli
f9db7864e1
Change note: reword
2024-06-13 18:04:23 +02:00
Paolo Tranquilli
0198806658
Merge branch 'main' into redsun82/kotlin
2024-06-13 16:29:13 +02:00
am0o0
bb03a9faba
format the query file
2024-06-13 14:54:29 +02:00
am0o0
f0a467e80b
update tests
2024-06-13 14:52:22 +02:00
am0o0
84b9d4d1ac
fix qlhelp errors
2024-06-13 14:32:41 +02:00
Mathias Vorreiter Pedersen
3d037e73f0
Merge pull request #16749 from MathiasVP/fix-fps-on-double-free
...
C++: Fix `ArrayExpr` FPs in `cpp/double-free`
2024-06-13 12:58:41 +01:00
Paolo Tranquilli
b8de2ea03b
Merge pull request #16731 from github/redsun82/kotlin-fix-version-picker
...
Kotlin: expose kotlin version picker for internal packaging
2024-06-13 13:57:38 +02:00
Anders Schack-Mulligen
b47831af14
Java: Calculate 2nd level scopes for implicit instance accesses.
2024-06-13 13:57:18 +02:00
Michael B. Gale
1834a399d2
Merge pull request #16738 from github/mbg/go/remove-go-work
...
Go: Remove `go.work` file
2024-06-13 12:20:12 +01:00
Mathias Vorreiter Pedersen
4bbeda08d6
C++: Fix change note naming.
2024-06-13 11:10:00 +01:00
Mathias Vorreiter Pedersen
83108e3e25
C++: Add change note.
2024-06-13 11:03:52 +01:00
Mathias Vorreiter Pedersen
bcabc88649
C++: Accept test changes.
2024-06-13 10:59:46 +01:00
Mathias Vorreiter Pedersen
4079de125f
C++: Fix FP by also excluding indirections of array expressions.
2024-06-13 10:59:39 +01:00
Mathias Vorreiter Pedersen
eec259279a
C++: Add another FP test. We already have tests for this, but it doesn't hurt to have another one, I guess.
2024-06-13 10:57:49 +01:00
Mathias Vorreiter Pedersen
e244eef3b5
Merge pull request #16748 from MathiasVP/rc-3.14-mergeback-2
...
Mergeback from `rc/3.14`
2024-06-13 10:44:46 +01:00
Michael Nebel
7f7c5d7c94
Java: Update model generator expected test output.
2024-06-13 10:57:15 +02:00
Michael Nebel
e247d5b316
Java: Sync files and make dummy language specific implementation.
2024-06-13 10:55:17 +02:00
Michael Nebel
e56c185f32
Java: Add some model generator sink examples.
2024-06-13 10:49:57 +02:00
Mathias Vorreiter Pedersen
0150269503
Merge branch 'rc/3.14' into rc-3.14-mergeback-2
2024-06-13 09:14:40 +01:00
Mathias Vorreiter Pedersen
9384f6189e
Merge pull request #16740 from MathiasVP/fix-join-in-ssa
...
SSA: Fix bad join in `lastRefRedefExt`
2024-06-13 09:06:20 +01:00
Paolo Tranquilli
11c37734c3
Kotlin: add change note for having fixed kotlin QL tests in release
2024-06-13 09:49:39 +02:00
Michael Nebel
854c6fa813
C#: Update expected test output after .NET 8 models update.
2024-06-13 09:24:13 +02:00
Michael Nebel
9ea2b463f0
C#: Update .NET 8 Runtime models.
2024-06-13 08:36:23 +02:00
Michael Nebel
78d23ee044
C#/Java: Allow the model generator to use 32GB of ram.
2024-06-13 08:35:52 +02:00
Rasmus Wriedt Larsen
ec18786488
JS: Provide better model for Array.splice
2024-06-12 16:29:21 +02:00
Mathias Vorreiter Pedersen
5b3403c4b1
C++: Fix bad join in 'lastRefRedefExt'.
2024-06-12 15:24:58 +01:00
Michael B. Gale
e10e2899bd
Go: Update comment in gen.py
2024-06-12 15:24:33 +01:00
Rasmus Wriedt Larsen
54a0e6dc45
JS: Add new test for Array.splice
2024-06-12 16:24:33 +02:00
Michael B. Gale
8629e00686
Go: Remove workspace from vendor/modules.txt
2024-06-12 15:22:56 +01:00
Rasmus Wriedt Larsen
9ed6da1072
JS: prepare to extend Array tests
...
Oh how I have enjoyed working with InlineExpectationTests for these sort
of things, not worrying about all the .expected files changing because
you add a few lines in the middle of your tests :D
2024-06-12 16:22:55 +02:00
Michael B. Gale
a90968d277
Go: Replace go work vendor with go mod vendor
2024-06-12 15:19:14 +01:00
Rasmus Wriedt Larsen
1027ca266d
JS: Allow many Array steps to be used in type-tracking
2024-06-12 16:14:13 +02:00
Joe Farebrother
90d6f2ece3
Factor out nameIndicatesRelevantSensitiveData
2024-06-12 15:11:47 +01:00
Tom Hvitved
605fe54a06
Ruby: Remove two Cartesian products
2024-06-12 15:11:43 +01:00
Joe Farebrother
5f08371f19
Add change note
2024-06-12 15:11:39 +01:00
Joe Farebrother
07f03be8cc
Add unit tests
2024-06-12 15:11:35 +01:00
Joe Farebrother
b0c03f6d68
Allow implicit read steps on sinks
2024-06-12 15:11:32 +01:00
Joe Farebrother
8b51ee8fe8
Use additional sensitive data heuristics in CleartextSources
2024-06-12 15:11:27 +01:00
Michael B. Gale
a04f08f026
Go: Remove go.work file
2024-06-12 15:10:28 +01:00
Tamás Vajk
a756f86847
Merge pull request #16732 from tamasvajk/refactor/extraction-states
...
C#: Refactor extractor state classes and simplify extraction code
2024-06-12 15:20:11 +02:00
Tamas Vajk
0df6a1c4b1
Fix quality issues
2024-06-12 14:48:16 +02:00
Michael Nebel
48739da565
C#: Update expected test output.
2024-06-12 14:16:31 +02:00
Michael Nebel
91ebeee429
C#: Perceive field and property reads as additional flow steps in sink extrapolation.
2024-06-12 14:16:26 +02:00
Michael Nebel
5aee35256d
C#: Add member flow example.
2024-06-12 14:16:22 +02:00
Michael Nebel
4b62cb64ed
C#: Update expected test output.
2024-06-12 14:16:17 +02:00
Michael Nebel
0bbf131fdb
C#: Add some compound sink examples.
2024-06-12 14:16:12 +02:00
Tamas Vajk
e3cbf1479a
Fix quality issue
2024-06-12 13:25:34 +02:00
Arthur Baars
4ee80653e2
Merge pull request #16471 from Sim4n6/ruby-UBV
...
Ruby: Add some method calls as a Source
2024-06-12 12:42:08 +02:00
Tamas Vajk
3551386a1a
Simplify standalone extractor
2024-06-12 12:30:08 +02:00
Owen Mansel-Chan
6af1ed9d75
Merge pull request #16730 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2024-06-12 11:22:29 +01:00
Tamas Vajk
cdca607828
Rename Extractor to ExtractionContext
2024-06-12 11:43:19 +02:00
Tamas Vajk
af2a78ea4d
Reduce references to Extract class
2024-06-12 11:13:05 +02:00
Paolo Tranquilli
183a825841
Kotlin: expose kotlin version picker for internal packaging
2024-06-12 09:29:57 +02:00
github-actions[bot]
bbeebfae73
Add changed framework coverage reports
2024-06-12 00:17:31 +00:00
Joe Farebrother
f441c68f7e
Merge pull request #16657 from joefarebrother/python-partial-ssrf-fp
...
Python: Add additional sanitizers to SSRF
2024-06-11 23:20:50 +01:00
Michael B. Gale
e9bd85e0ba
Merge pull request #16704 from github/mbg/go/fix/build-scripts-running-more-than-once
2024-06-11 22:23:15 +01:00
Michael B. Gale
202d77d94f
Merge pull request #16726 from github/mbg/go/log-one-line-for-stray-sources
...
Go: Only log one line for stray .go files
2024-06-11 22:16:21 +01:00
Owen Mansel-Chan
24c9062b35
Merge pull request #16671 from owen-mc/go/mad-builtin-taint-models-try-2
...
Go: Convert old-style models for built-ins to MaD
2024-06-11 19:45:34 +01:00
Michael B. Gale
d8d1ae632c
Merge branch 'mbg/go/fix/build-scripts-running-more-than-once' into mbg/go/fix/too-many-go-mod-files-initialised
2024-06-11 18:31:03 +01:00
Michael B. Gale
0f56e408f8
Merge branch 'main' into mbg/go/fix/build-scripts-running-more-than-once
2024-06-11 18:29:41 +01:00
Michael B. Gale
864d629a13
Go: Prevent go.mod files from being added to every directory with stray source files
2024-06-11 18:24:11 +01:00
Michael B. Gale
20b7def543
Go: Only log one line for stray .go files
2024-06-11 18:06:08 +01:00
Geoffrey White
cf4736c8f6
Merge pull request #16545 from geoffw0/salvage
...
Swift: Salvage
2024-06-11 17:51:17 +01:00
Mathias Vorreiter Pedersen
67b327a0f7
Merge pull request #16725 from MathiasVP/rc-3.14-mergeback
...
Mergeback from `rc/3.14`
2024-06-11 17:37:40 +01:00
Tony Torralba
a299afaf51
Merge pull request #16712 from mbaluda/main
...
Java: Add `FileUtils` sinks to path injection
2024-06-11 17:50:08 +02:00
Paolo Tranquilli
3d3652c63f
Merge branch 'main' into redsun82/kotlin
2024-06-11 17:25:10 +02:00
Cornelius Riemenschneider
92957a63ad
Add prefix feature to codeql_pack_group.
...
Turns out we need this for our production targets.
2024-06-11 17:22:35 +02:00
Mathias Vorreiter Pedersen
3351b9547d
Merge branch 'rc/3.14' into rc-3.14-mergeback
2024-06-11 16:21:08 +01:00
Owen Mansel-Chan
2ae7fa4897
Tests: accept expected changes
2024-06-11 16:20:06 +01:00
Owen Mansel-Chan
6fd2ab7cef
Tests: Accept model renumbering in edge provenance
2024-06-11 16:18:18 +01:00
Mathias Vorreiter Pedersen
b88a1b2d1e
Merge pull request #16724 from MathiasVP/cache-asexpr
...
C++: Cache `asExpr` (and `asIndirectExpr`) implementation predicates
2024-06-11 16:17:29 +01:00
Owen Mansel-Chan
700604a1c2
Convert old-style models for built-ins to MaD
...
These models are to cover the special cases where `append` can be used
with a second argument which is a string followed by `...`, and `copy`
can be used with a second argument which is a string. In this case the
taint is carried by the whole string, rather than in array elements.
2024-06-11 16:16:45 +01:00
Joe Farebrother
93f10fcf14
Add sanitizers for compiled regexes
2024-06-11 15:44:16 +01:00
Mathias Vorreiter Pedersen
6a6978398a
C++: Add file QLDoc.
2024-06-11 15:39:45 +01:00
Mathias Vorreiter Pedersen
333df03f64
C++: Cache more things.
2024-06-11 15:39:43 +01:00
Mauro Baluda
a464a8e48e
@mbaluda
...
Update provenance in test expectations
2024-06-11 15:15:50 +02:00
Tamas Vajk
11faf08ed0
Remove specific standalone/tracing extractor state classes
2024-06-11 14:16:35 +02:00
Geoffrey White
214db5c20d
Swift: Make CI more happy.
2024-06-11 12:49:58 +01:00
Cornelius Riemenschneider
3cf719cb39
pkg.bzl: Significantly restructure codeql_pack rule.
...
This PR introduces a `codeql_pack_rule` that does the heavy lifting
of extracting arch- and common zip files for production dist building.
It also factors out the installer targets for individual packs,
as well as pack groups.
This changes the contract between the internal build system and the pack
definition significantly, which is why an accompanying internal PR is required.
No backwards compatibility layer is provided, as the PR as complex enough as-is.
The individual `codeql_pack` rules are now much simpler,
as they mostly stuff their inputs into a new `_CodeQLPackInfo` provider,
and let the installer and `codeql_pack_group` rules do the heavy lifting.
For working in the external repo with self-contained packs,
the per-pack installer targets are still available.
Internally, we'll only use the new `codeql_pack_group` targets
going forward, both for defining intree-dists and for building
the production zip files.
2024-06-11 13:15:05 +02:00
Cornelius Riemenschneider
3574b9fd4f
Merge pull request #16716 from github/criemen/rust-bzlmod-new
...
Rust: Move to bzlmod.
2024-06-11 13:13:16 +02:00
Mauro Baluda
29e3816412
Apply suggestions from code review
...
Address reviewiew comments
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2024-06-11 12:05:14 +02:00
Paolo Tranquilli
01416838a1
Merge branch 'main' into redsun82/kotlin
2024-06-11 11:57:19 +02:00
Cornelius Riemenschneider
4226270ef9
Merge branch 'main' into criemen/rust-bzlmod-new
2024-06-11 11:40:40 +02:00
Anders Schack-Mulligen
73caa48302
Merge pull request #16721 from aschackmull/dataflow/remove-unused-import
...
Dataflow: Remove unused import.
2024-06-11 09:54:05 +02:00
Chris Smowton
3172054073
Merge pull request #16717 from github/post-release-prep/codeql-cli-2.17.5
...
Post-release preparation for codeql-cli-2.17.5
2024-06-11 07:56:55 +01:00
Anders Schack-Mulligen
939ae4a561
Dataflow: Remove unused import.
2024-06-11 08:55:44 +02:00
Paolo Tranquilli
90db894d01
Kotlin: remove obsolete scripts and reword comments
2024-06-11 08:52:26 +02:00
Anders Schack-Mulligen
87316784ad
Shared: Fix file-module qldoc.
2024-06-11 08:49:15 +02:00
Mauro Baluda
bb5ef3ccd9
Update provenance in test expectations
2024-06-10 19:57:37 +02:00
Mauro Baluda
e9dba59f11
Merge branch 'main' into main
2024-06-10 19:57:00 +02:00
Geoffrey White
ae0bf037ac
Swift: Make CI happy.
2024-06-10 18:54:16 +01:00
Geoffrey White
2f33b9422b
Merge branch 'main' into salvage
2024-06-10 18:31:46 +01:00
Geoffrey White
83860acdde
Swift: Test BuiltinLiteralExpr.
2024-06-10 18:20:25 +01:00
Geoffrey White
f2b1e09650
Swift: Add some conversion test cases.
2024-06-10 17:25:25 +01:00
Michael B. Gale
317790eac3
Merge pull request #16703 from github/mbg/go/improve-version-selection-v2
...
Go: Use toolchain directives for version selection if available, and add tests (v2)
2024-06-10 16:03:00 +00:00
Mathias Vorreiter Pedersen
ec34007a88
Merge pull request #16714 from MathiasVP/handle-unlikely-in-guards-2
...
C++: Support `__builtin_expect` in `IRGuards`
2024-06-10 16:54:01 +01:00
github-actions[bot]
8a25081a0e
Post-release preparation for codeql-cli-2.17.5
2024-06-10 15:33:08 +00:00
Tony Torralba
7336dd1ae5
Merge pull request #16482 from grakshith/rakshith/tune-java-crypto
...
Java: Add RSA/ECB/OEAP ciphers to the list of secure algorithms
2024-06-10 17:27:35 +02:00
Cornelius Riemenschneider
496fff4273
C#: Remove empty glob pattern.
2024-06-10 17:04:00 +02:00
Cornelius Riemenschneider
00319c5010
Upgrade bazel to 7.2.0.
...
This also bumps a bunch of external dependencies.
2024-06-10 17:03:59 +02:00
Cornelius Riemenschneider
092bc6445d
Rust/bazel: Port to bzlmod.
...
This gets rid of our last workspace dependency.
In particular, this change also gets rid of the checked-in extra
lock files that took forever to generate.
2024-06-10 17:03:58 +02:00
Michael B. Gale
d4adc373c6
Replace if with else if in RequiredGoVersion
2024-06-10 15:48:29 +01:00
Chris Smowton
a160b891c8
Merge pull request #16715 from github/release-prep/2.17.5
...
Release preparation for version 2.17.5
2024-06-10 14:46:30 +01:00
github-actions[bot]
877bfa2468
Release preparation for version 2.17.5
2024-06-10 13:40:39 +00:00
Mathias Vorreiter Pedersen
c3bba38950
C++: Fix QLDoc.
2024-06-10 13:39:34 +01:00
Cornelius Riemenschneider
7ecf1f9010
Merge pull request #16713 from github/criemen/csharp-version-fallback
...
C#: Add fallback for branch detection.
2024-06-10 14:24:37 +02:00
Mathias Vorreiter Pedersen
1aea120e89
C++: Add change note.
2024-06-10 13:01:01 +01:00
Mathias Vorreiter Pedersen
b0c4fcec57
C++: Cleanup.
2024-06-10 12:53:07 +01:00
Mathias Vorreiter Pedersen
9e088f3e4a
C++: Accept test changes.
2024-06-10 12:53:06 +01:00
Mathias Vorreiter Pedersen
84c1341b62
C++: Support builtin expect in IRGuards.
2024-06-10 12:53:04 +01:00
Mathias Vorreiter Pedersen
d76700497b
C++: Add testcases using the builtin expect operation.
2024-06-10 12:47:45 +01:00
Mathias Vorreiter Pedersen
9c98652116
C++: Handle 'unlikely' in IRGuards.
2024-06-10 12:47:44 +01:00
Jeroen Ketema
000a81fd29
Merge pull request #16690 from MathiasVP/better-guards
...
C++: Fix missing results for `comparesEq` in `IRGuardCondition`
2024-06-10 13:32:10 +02:00
Sim4n6
7c0ce6486b
Rerun the test learn
2024-06-10 12:21:10 +01:00
Cornelius Riemenschneider
027c7d0d43
C#: Add fallback for branch detection.
...
Apparently, when building a release build, we're getting `no-git`
as first part o the version string for the submodule.
If we do, fall back to the internal repo's branch name.
For releases, that's the same anyways.
Luckily, the commit SHA is correct.
2024-06-10 12:14:03 +02:00
Mauro Baluda
1d44f45be2
Update org.apache.commons.io.model.yml
2024-06-10 12:03:57 +02:00
Mathias Vorreiter Pedersen
7819cc1c36
C++: Add more QLDoc.
2024-06-10 10:58:52 +01:00
Mauro Baluda
71505f4003
Added more org.apache.commons.io.FileUtils-related sinks to the path injection query.
2024-06-10 11:29:51 +02:00
Tamás Vajk
06aa2664bf
Merge pull request #16705 from tamasvajk/build/fix-attributes
...
C#: Add assembly attributes to assemblies built with Bazel
2024-06-10 09:26:31 +02:00
am0o0
9db334d02f
update select statement, update test cases
2024-06-07 21:26:20 +02:00
am0o0
2c9340331d
update test cases expected results
2024-06-07 21:16:31 +02:00
am0o0
5e0a78c4c7
make predicate for env key and value nodes, use propertyRead/Write instead of API nodes to find env key and value assignments, fix a bug thanks to @erik-krogh
2024-06-07 21:15:30 +02:00
Michael B. Gale
e7a60b72f1
Go: Check dependencies per workspace
2024-06-07 16:22:41 +00:00
Michael B. Gale
b9586a81ef
Go: Add functions for constructing go list commands
2024-06-07 16:22:40 +00:00
Michael B. Gale
6c0c3365cf
Go: Fix vendor issues and go.sum files in separate loop
2024-06-07 16:22:39 +00:00
Michael B. Gale
d344f720aa
Go: Add methods to GoModule for the tidy and vendor commands
...
These ensure that the module path is used automatically
2024-06-07 16:22:37 +00:00
Tamas Vajk
5f98f2aec9
Add assembly attributes to bazel build script
2024-06-07 15:42:12 +02:00
Cornelius Riemenschneider
6731bccc92
C#: Provide skeleton to generate an assemblyInfo file.
...
Each unit gets a unique assemblyInfo file, on top
of the ones for entrypoints that also gets the git info embedded.
2024-06-07 15:24:53 +02:00
Tamas Vajk
16f8be4ba4
C#: Add product name to assemblies
2024-06-07 15:24:21 +02:00
Tamas Vajk
beffc2a49d
C#: Remove unneeded source folder from Bazel build scripts
2024-06-07 15:23:45 +02:00
Anders Schack-Mulligen
32260e2823
Merge pull request #16210 from aschackmull/dataflow/provenance-for-tests
...
Dataflow: Add support for pretty-printed alert provenance in tests
2024-06-07 14:53:56 +02:00
Michael B. Gale
881b2586e1
Go: Add tests for RequiredGoVersion
2024-06-07 12:20:44 +00:00
Michael B. Gale
504a233299
Go: Use Toolchain directives in go.mod files, if available
2024-06-07 12:20:43 +00:00
Michael B. Gale
1d6f09c750
Go: Refactor go.mod version retrieval into its own method
2024-06-07 12:20:42 +00:00
Michael B. Gale
44a16cef6c
Go: Use Toolchain directives in go.work files, if available
2024-06-07 12:20:41 +00:00
Michael B. Gale
ea3a3db847
Merge pull request #16460 from github/mbg/go/semver-type
...
Go: Use new type for all semantic versions
2024-06-07 12:19:12 +00:00
Michael B. Gale
9d1c2c6ba1
Merge branch 'main' into mbg/go/semver-type
2024-06-07 12:09:10 +00:00
Anders Schack-Mulligen
9b1e4d7895
Go: Fix test failure.
2024-06-07 13:16:20 +02:00
Pierre
0ab67d1790
Merge pull request #16684 from github/sitedocs/2.17.4
...
Add changelog for 2.17.4
2024-06-07 02:50:38 -07:00
Anders Schack-Mulligen
7e980d9524
Add a bit more qldoc.
2024-06-07 11:47:50 +02:00
Anders Schack-Mulligen
0c47203580
Javascript: Add support for pretty-printed provenace in tests.
2024-06-07 11:47:49 +02:00
Anders Schack-Mulligen
68ddae2918
Python: Add support for pretty-printed provenace in tests.
2024-06-07 11:47:48 +02:00
Anders Schack-Mulligen
5d51b5b97b
Ruby: Add support for pretty-printed provenace in tests. Convert one test.
2024-06-07 11:47:48 +02:00
Anders Schack-Mulligen
a26c01d7c7
Go: Add support for pretty-printed provenace in tests. Convert one test.
2024-06-07 11:47:45 +02:00
Anders Schack-Mulligen
0e8d72c126
C#: Add support for pretty-printed provenace in tests. Convert one test.
2024-06-07 11:45:16 +02:00
Anders Schack-Mulligen
4ec4da4c8c
Dataflow/Java: Add support for pretty-printed provenace in tests. Convert one test.
2024-06-07 11:45:13 +02:00
Tamás Vajk
68a78fa3ed
Merge pull request #16700 from tamasvajk/buildless/tsp-warning-config
...
C#: Add TSP warning if `buildless` option is used instead of `build-mode`
2024-06-07 11:07:16 +02:00
Michael Nebel
d5af71a6c9
Merge pull request #16647 from michaelnebel/csharp/idempotentsummarygeneration
...
C#: Make summary generation idempotent.
2024-06-07 10:38:25 +02:00
Tamas Vajk
9366eb8288
C#: Add TSP warning if buildless option is used instead of build-mode
2024-06-07 10:33:13 +02:00
Mathias Vorreiter Pedersen
7f62085be5
C++: Delete unused predicate.
2024-06-07 09:13:29 +01:00
Jeroen Ketema
456c046b09
Merge pull request #16693 from jketema/func-fix
...
C++: Correctly identify orphaned variables as static
2024-06-07 07:54:11 +02:00
am0o0
1033bf9c4c
remove unused imports from javascript test cases
2024-06-07 06:04:12 +02:00
am0o0
b9e3b3310e
update the remote flow based query thanks to @erik-krogh, update tests and separate the local and remote query tests
2024-06-07 06:01:49 +02:00
Ian Lynagh
97cb0c89c8
Kotlin: Remove unused PopulationSpecFile
2024-06-06 21:14:28 +01:00
Mathias Vorreiter Pedersen
ed525fce70
C++: Accept test changes.
2024-06-06 20:38:31 +01:00
Mathias Vorreiter Pedersen
b5a3575130
C++: Make proper use of barrier guards in test.
2024-06-06 20:38:17 +01:00
Jeroen Ketema
4488518838
C++: Update expected test results
2024-06-06 21:12:34 +02:00
Jeroen Ketema
5ae8fe502a
C++: Correctly identify orphaned variables as static
2024-06-06 20:35:26 +02:00
Jeroen Ketema
798357ffc6
C++: Add test case that shows that __func__ is not considered static
2024-06-06 20:31:45 +02:00
Mathias Vorreiter Pedersen
7b92554cf2
Merge branch 'main' into better-guards
2024-06-06 19:22:10 +01:00
Mathias Vorreiter Pedersen
9f4c1380e5
Merge pull request #16677 from MathiasVP/phi-input-nodes
...
C++: Extend barrier guards to handle phi inputs
2024-06-06 19:21:30 +01:00
Michael B. Gale
2662808629
Go: Output setup-go compatible pre-release identifiers
2024-06-06 17:14:45 +00:00
Mathias Vorreiter Pedersen
9564ae1ca4
C++: Accept more test changes.
2024-06-06 17:04:48 +01:00
Tom Hvitved
eae6406629
Merge pull request #16687 from hvitved/ruby/bump-ts-grammar
...
Ruby: Bump tree-sitter grammar
2024-06-06 17:44:18 +02:00
Mathias Vorreiter Pedersen
528afba919
C++: Accept test changes.
2024-06-06 16:32:29 +01:00
Mathias Vorreiter Pedersen
36aac3ffd8
C++: Get rid of 'relevantUnaryComparison' since it was excluding too much. The performance is most likely fine with that restriction.
2024-06-06 16:32:16 +01:00
Mathias Vorreiter Pedersen
703832f5a1
C++: Remove a column from a few predicates.
2024-06-06 16:30:32 +01:00
Mathias Vorreiter Pedersen
0298755975
C++: Add a test.
2024-06-06 16:22:23 +01:00
Mathias Vorreiter Pedersen
8aaa2a1079
C++: Improve comment.
2024-06-06 15:58:52 +01:00
Mathias Vorreiter Pedersen
f7b2d98c6e
C++: Add tests to demonstrate that it's not barrier guard that's buggy. Rather, it's the GuardCondition library.
2024-06-06 15:35:16 +01:00
Mathias Vorreiter Pedersen
fa09d21c32
C++: Simplify. No need for the 'PhiInputNodeExt' class.
2024-06-06 15:33:38 +01:00
Asger F
6e0f3df573
Merge pull request #14120 from asgerf/dynamic/typemodel-istypeused
...
Dynamic: add TypeModel.isTypeUsed
2024-06-06 15:31:16 +02:00
Mathias Vorreiter Pedersen
5deb9002bf
Merge pull request #16665 from geoffw0/yml
...
C++: Support for extension models (.yml)
2024-06-06 14:21:42 +01:00
Geoffrey White
8acb11924d
C++: Remove redundant import.
2024-06-06 13:39:10 +01:00
Mathias Vorreiter Pedersen
314eb5db72
Merge pull request #16688 from MathiasVP/flow-through-builtin-bit-cast
...
C++: Fix IR generation for builtins and add flow through `__builtin_bit_cast`
2024-06-06 13:28:41 +01:00
Geoffrey White
38acfcf42e
C++: Doc tweaks addressing review comments.
2024-06-06 13:11:57 +01:00
am0o0
12df7dee17
Merge branch 'amammad-js-JWT' of https://github.com/amammad/codeql into amammad-js-JWT
2024-06-06 14:04:46 +02:00
Am
af016f9416
Merge branch 'github:main' into amammad-js-JWT
2024-06-06 15:33:26 +03:30
am0o0
8258e377dd
use PascalCase for URLConstructorLabel
2024-06-06 14:00:56 +02:00
am0o0
d27a378008
change query-id to avoid duplicate ids
2024-06-06 13:59:58 +02:00
Geoffrey White
7aec488d8a
C++: Permit ':' in models-as-data namespaces.
2024-06-06 12:53:42 +01:00
Geoffrey White
894497218d
Shared: Recognize 'remote-sink' in ModelValidation.qll.
2024-06-06 12:49:13 +01:00
Geoffrey White
f9ef72eca6
C++: Fix typos.
2024-06-06 12:31:44 +01:00
Tom Hvitved
331f676832
Merge pull request #16523 from microsoft/jb1/chanely-insecure-sql-connection
...
Adding case to InsecureSQLConnection.ql when Encrypt set in initializer
2024-06-06 12:58:14 +02:00
Mathias Vorreiter Pedersen
31bc4263e7
C++: Fix QLDoc.
2024-06-06 10:52:37 +01:00
Paolo Tranquilli
ac6cc38b20
Merge pull request #16681 from github/redsun82/ripunzip
...
Ripunzip: provide installer
2024-06-06 11:52:04 +02:00
Paolo Tranquilli
2d42ea0f2f
Merge pull request #16668 from github/criemen/pkg-js-fixup
...
JS: Use `resources/tools` from external repo, not internal.
2024-06-06 11:50:54 +02:00
Mathias Vorreiter Pedersen
bd9ece0bd3
C++: Add dataflow through '__builtin_bit_cast'.
2024-06-06 10:00:18 +01:00
Mathias Vorreiter Pedersen
48f2fd0460
C++: Accept IR changes.
2024-06-06 09:52:35 +01:00
Mathias Vorreiter Pedersen
d6352b47a1
C++: Fix IR generation for builtin operations.
2024-06-06 09:52:20 +01:00
Mathias Vorreiter Pedersen
f58757ff9d
C++: Skip children we cannot translate when translating builtin operations.
2024-06-06 09:48:41 +01:00
Mathias Vorreiter Pedersen
af4d2f1ed3
C++: Add an IR test.
2024-06-06 09:48:03 +01:00
Tom Hvitved
523139259a
Ruby: Update cargo-bazel-lock.json
2024-06-06 10:46:01 +02:00
Tom Hvitved
7122db0c45
Ruby: Bump tree-sitter grammar
2024-06-06 10:31:16 +02:00
Tom Hvitved
421c68a263
Merge pull request #16663 from hvitved/ruby/extraction-error-consistency
...
Ruby: Add consistency query for extraction errors
2024-06-06 10:29:56 +02:00
Tamás Vajk
0f09198bcd
Merge pull request #16673 from tamasvajk/fix/logger-disposal
...
C#: Fix erroneous logger disposal
2024-06-06 09:13:27 +02:00
Sim4n6
dabc33bf66
simplify UnicodeBypassValidationQuery code
2024-06-05 22:45:49 +01:00
Erik Krogh Kristensen
2e5d9c34bf
Merge pull request #16675 from mbaluda/main
...
Extract .xsaccess files as JSON
2024-06-05 20:19:40 +02:00
Chanel
7b5297b882
Merge branch 'main' into jb1/chanely-insecure-sql-connection
2024-06-05 09:02:13 -07:00
Chanel Young
716e2737d1
formatting
2024-06-05 09:01:10 -07:00
Owen Mansel-Chan
ef2f01613c
Merge pull request #16676 from owen-mc/qldoc-external-flow
...
C/C#/Java/Swift: Cover all params in QLDoc of `modelCoverage`
2024-06-05 16:53:27 +01:00
Ian Lynagh
ac91a5167a
Merge pull request #16682 from igfoo/igfoo/integ
...
Java integration tests: accept new output
2024-06-05 16:48:18 +01:00
Chris Smowton
e704bf353b
Merge pull request #16685 from smowton/smowton/admin/ecj-change-note
...
Java: Add change note documenting ECJ improvements
2024-06-05 16:39:20 +01:00
Owen Mansel-Chan
3b51f1f722
Merge pull request #16683 from owen-mc/go/refactor-extractor
...
Go: Refactor findMethodWithGivenReceiver
2024-06-05 16:31:44 +01:00
Chris Smowton
79ae522349
Add change note documenting ECJ improvements
2024-06-05 15:12:33 +01:00
Michael B. Gale
c0142c1a91
Go: Add comment explaining why NewSemVer does not Canonicalise the result
2024-06-05 14:08:45 +00:00
Pierre
366fba8b33
Add changelog for 2.17.4
2024-06-05 16:03:50 +02:00
Michael B. Gale
f830dc6852
Merge branch 'main' into mbg/go/semver-type
2024-06-05 13:59:20 +00:00
Owen Mansel-Chan
fcf06c59aa
Refactor findMethodWithGivenReceiver
2024-06-05 14:52:31 +01:00
Chris Smowton
e267031f59
Merge pull request #16680 from smowton/smowton/admin/add-ecj-tests
...
Java: add basic ECJ integration tests
2024-06-05 14:33:36 +01:00
Ian Lynagh
13dd87f04c
Java integration tests: accept new output
...
This means the expected output is in the order that the new test driver
creates it in, which means future diffs will be smaller.
2024-06-05 14:14:44 +01:00
Paolo Tranquilli
61847bc58b
Ripunzip: provide installer
2024-06-05 14:46:59 +02:00
Michael B. Gale
5dd7e136e5
Merge branch 'main' into mbg/go/semver-type
2024-06-05 12:22:16 +00:00
Sim4n6
7dcbbbac91
Refactor UnicodeBypassValidationQuery to remove unnecessary code
2024-06-05 13:05:34 +01:00
Chris Smowton
54347c2642
Java: add basic ECJ integration tests
2024-06-05 12:49:25 +01:00
Owen Mansel-Chan
44a56c420f
Merge pull request #16558 from owen-mc/go/sync-external-flow
...
Go: sync ExternalFlow.qll
2024-06-05 11:31:34 +01:00
Jeroen Ketema
ff46e2c627
Merge pull request #16662 from jketema/gets
...
C++: Ignore `gets`'es with incorrect parameter counts
2024-06-05 11:50:04 +02:00
Mathias Vorreiter Pedersen
97f0c759c0
C++: Accept test changes.
2024-06-05 09:58:47 +01:00
Mathias Vorreiter Pedersen
44cc19cd6b
C++: Handle phi inputs in barrier guards logic.
2024-06-05 09:58:45 +01:00
Mathias Vorreiter Pedersen
05d46a6793
C++: Also ignore phi input edges in 'AllocaInLoop.ql'.
2024-06-05 09:58:44 +01:00
Mathias Vorreiter Pedersen
0149fb640d
C++: Simplify.
2024-06-05 09:58:43 +01:00
Mathias Vorreiter Pedersen
25179074c1
C++: Better toString on phi nodes.
2024-06-05 09:58:41 +01:00
Mathias Vorreiter Pedersen
85d0efcbed
C++: Make the last use of a node before entering the phi node map to a phi input dataflow node.
2024-06-05 09:58:40 +01:00
Jeroen Ketema
6f8449cf75
C++: Add change note
2024-06-05 10:05:13 +02:00
Owen Mansel-Chan
6b2e86afea
Accept review suggestion
2024-06-05 07:34:46 +01:00
Owen Mansel-Chan
63bec5ae3e
Merge pull request #16678 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2024-06-05 07:31:57 +01:00
github-actions[bot]
c2bd050e08
Add changed framework coverage reports
2024-06-05 00:17:01 +00:00
Mauro Baluda
cc0271715b
Merge branch 'main' into main
2024-06-04 23:27:10 +02:00
Mauro Baluda
0b9bafc9c3
Update AutoBuildTests.java
2024-06-04 21:07:57 +02:00
Mauro Baluda
168cba86c1
Add .xsaccess test data
2024-06-04 20:55:07 +02:00
Rakshith Gopalakrishna
798a736d16
fix: update changelog
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2024-06-04 11:20:05 -07:00
Rakshith Gopalakrishna
65af2556ed
fix: remove rsa/ecb/* from getASecureAlgorithmName
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2024-06-04 11:20:05 -07:00
Rakshith Gopala krishna
97f9a882c6
fix: address PR comments
2024-06-04 11:20:05 -07:00
Rakshith Gopala krishna
0f63f0dda2
docs: add changenote
2024-06-04 11:20:05 -07:00
Rakshith Gopala krishna
80bf7cdb52
fix: remove the pkcs1 scheme
2024-06-04 11:20:05 -07:00
Rakshith Gopala krishna
dd223ed704
feat: add rsa/ecb/... variants to the list of secure algorithms
2024-06-04 11:20:05 -07:00
Paolo Tranquilli
ad2eacfd2f
Merge pull request #16117 from github/redsun82/kotlin
...
Kotlin: build extractor with bazel
2024-06-04 20:13:00 +02:00
Mathias Vorreiter Pedersen
d020f93005
C++: This is never a definition.
2024-06-04 17:19:49 +01:00
Mathias Vorreiter Pedersen
3e53f3bd13
C++: Flow out of phi inputs to the phi node.
2024-06-04 17:19:47 +01:00
Mathias Vorreiter Pedersen
e04c75df24
C++: Introduce a new phi input dataflow node.
2024-06-04 17:19:46 +01:00
Mathias Vorreiter Pedersen
888a831a5c
C++: Use 'ssaDefReachesReadExt' instead of 'ssaDefReachesRead'.
2024-06-04 17:19:45 +01:00
Mathias Vorreiter Pedersen
556dc282d2
C++: Use 'phiHasInputFromBlockExt' instead of 'phiHasInputFromBlock'.
2024-06-04 17:19:43 +01:00
Mathias Vorreiter Pedersen
ceccc9294c
C++: Add a testcase that failed during development.
2024-06-04 17:19:41 +01:00
Mathias Vorreiter Pedersen
a9af28ede0
C++: Drive-by fix. This is not needed anymore after #16345
2024-06-04 17:19:40 +01:00
Mathias Vorreiter Pedersen
43c7ac36d9
C++: Add a test with spurious flow.
2024-06-04 17:19:36 +01:00
Owen Mansel-Chan
3fb5ad2a0d
Cover all params in QLDoc of modelCoverage
2024-06-04 17:06:00 +01:00
Paolo Tranquilli
b7e16ca55d
Kotlin: fix custom_plugin test
2024-06-04 17:59:13 +02:00
Paolo Tranquilli
e4653a80d4
Kotlin: remove kapt wrapper, probably unneeded
2024-06-04 17:55:19 +02:00
Mauro Baluda
8791e67789
Add .xsaccess test data
2024-06-04 17:50:08 +02:00
Mauro Baluda
576ee7892d
Add .xsaccess test data
2024-06-04 17:36:05 +02:00
Mauro Baluda
7b3e9b4ec1
Extract .xsaccess files as JSON
2024-06-04 16:28:08 +02:00
Mauro Baluda
73b18129d9
Extract .xsaccess files as JSON
2024-06-04 16:23:05 +02:00
Paolo Tranquilli
10584b3a7a
Kotlin: improve posix dev wrappers
2024-06-04 15:36:35 +02:00
Paolo Tranquilli
a48d71b42f
Merge branch 'main' into redsun82/kotlin
2024-06-04 15:32:59 +02:00
Tamas Vajk
b8bc014297
Fix erroneous logger disposal
2024-06-04 15:12:44 +02:00
Paolo Tranquilli
8205f86365
Kotlin: use tools/bazel in integration test
2024-06-04 15:12:23 +02:00
Paolo Tranquilli
be5c82cb88
Kotlin: add other tools to dev wrapper
2024-06-04 15:11:59 +02:00
Tom Hvitved
e42de3de6f
Ruby: Fix extraction errors
2024-06-04 14:54:02 +02:00
Paolo Tranquilli
c6039b345b
Kotlin: update default kotlinc version
2024-06-04 14:39:16 +02:00
Paolo Tranquilli
e693c2719d
Kotlin: remove unneeded patch
2024-06-04 14:39:02 +02:00
Paolo Tranquilli
e7cec01a81
Kotlin: make current_kotlin_version.py executable
2024-06-04 14:31:59 +02:00
Paolo Tranquilli
4c91bdce48
Kotlin: tgt -> target
2024-06-04 14:27:33 +02:00
Paolo Tranquilli
2fe0718e49
Explain .lfsconfig choice in the comment
2024-06-04 14:27:08 +02:00
Am
e3e59e02e5
Merge branch 'github:main' into amammad-js-CodeInjection_dynamic_import
2024-06-04 16:22:06 +04:00
Paolo Tranquilli
6a9cb90a57
Kotlin: rework header comment
2024-06-04 14:21:58 +02:00
Paolo Tranquilli
fcd326eb11
CI: reword comment
2024-06-04 14:14:23 +02:00
Owen Mansel-Chan
60970ff015
Merge pull request #16571 from owen-mc/go/remove-step-duplication-in-config
...
Go: remove flow step duplication in configs
2024-06-04 12:57:26 +01:00
Cornelius Riemenschneider
e8c1e50276
JS: Use resources/tools from external repo, not internal.
...
This was missing in https://github.com/github/codeql/pull/16656 , so we couldn't actually
delete the resources in the internal repo.
2024-06-04 13:54:41 +02:00
Cornelius Riemenschneider
c8202341bb
Merge pull request #16666 from tamasvajk/buildless/fix/quote-nuget-path
...
C#: Quote `nuget.exe` path
2024-06-04 13:29:05 +02:00
Tom Hvitved
ad99158838
Ruby: Fix/accept extraction errors
2024-06-04 12:55:44 +02:00
Tom Hvitved
858c7cead2
Ruby: Add consistency query for extraction errors
2024-06-04 12:55:42 +02:00
Tamas Vajk
c608675212
C#: Quote nuget.exe path
2024-06-04 12:49:32 +02:00
Owen Mansel-Chan
cbbdd01d5a
Reinstate more descriptive QLDoc
2024-06-04 11:46:05 +01:00
Owen Mansel-Chan
7356e747e4
Add change note
2024-06-04 11:46:04 +01:00
Owen Mansel-Chan
6e67e724b4
Update documentation for receiver instead of -1
2024-06-04 11:46:02 +01:00
Owen Mansel-Chan
5c5949ba5e
Add tests for neutral models
2024-06-04 11:46:01 +01:00
Owen Mansel-Chan
c964fc2dca
Update expected results (only empty predicate names added)
2024-06-04 11:46:00 +01:00
Owen Mansel-Chan
18fa454d33
Replace Argument[-1] with Argument[receiver]
2024-06-04 11:45:59 +01:00
Owen Mansel-Chan
0870946e05
Add model validation to more tests
2024-06-04 11:45:58 +01:00
Owen Mansel-Chan
a8112ec62e
Add neutralModel to empty.model.yml so it is defined somewhere
2024-06-04 11:45:57 +01:00
Owen Mansel-Chan
adfaae02e7
Cache interpretElement
2024-06-04 11:45:55 +01:00
Owen Mansel-Chan
479ea9f82c
Remove unused predicate hasExternalSpecification
2024-06-04 11:45:54 +01:00
Owen Mansel-Chan
174712a472
Delete unused predicate paramsString
...
This is needed for other languages, but in Go you cannot have two
functions which are distinguished only by their parameter types.
2024-06-04 11:45:52 +01:00
Owen Mansel-Chan
40127583fb
Make manual neutral summary models block generated summary models
2024-06-04 11:45:51 +01:00
Owen Mansel-Chan
5b04a71169
Non-trivial implementation of NeutralCallableAdapter
2024-06-04 11:45:49 +01:00
Owen Mansel-Chan
df8e04fcf9
Add predicate neutralElement matching summaryElement
2024-06-04 11:45:48 +01:00
Owen Mansel-Chan
209fe731a6
Change type of c to be more portable
2024-06-04 11:45:47 +01:00
Owen Mansel-Chan
e2008e14e2
Move summaryElement to FlowSummyImpl.qll
2024-06-04 11:45:45 +01:00
Owen Mansel-Chan
7f0f2d3438
Rename interpretSummary to summaryElement
2024-06-04 11:45:44 +01:00
Owen Mansel-Chan
961b09d63c
Use methods of AccessPathToken more
2024-06-04 11:45:42 +01:00
Owen Mansel-Chan
9f7c47509a
Expect "receiver" instead of "-1"
2024-06-04 11:45:41 +01:00
Owen Mansel-Chan
557adaf6f2
Update invalid model predicates
2024-06-04 11:45:40 +01:00
Owen Mansel-Chan
8e2e32742c
Use neutralModel in various places
2024-06-04 11:45:38 +01:00
Owen Mansel-Chan
83672f545f
Add neutralModel extensible predicate
2024-06-04 11:45:36 +01:00
Owen Mansel-Chan
a71e678bb9
Change imports
2024-06-04 11:45:33 +01:00
Owen Mansel-Chan
c3e1592815
Use AccessPath and AccessPathToken more
2024-06-04 11:45:27 +01:00
Owen Mansel-Chan
54a0c03e5d
Rename canonicalPackageHasASubpackage to canonicalPkgLink
2024-06-04 11:45:25 +01:00
Owen Mansel-Chan
e81a98925a
Remove QLDoc
2024-06-04 11:45:20 +01:00
Owen Mansel-Chan
797e5d0c8a
Rename packageHasASubpackage to packageLink
2024-06-04 11:45:17 +01:00
Owen Mansel-Chan
7c94120eb7
Rename packageHasMaDCoverage to relevantPackage
2024-06-04 11:45:13 +01:00
Owen Mansel-Chan
89e7bab0b3
QLDoc
2024-06-04 11:45:06 +01:00
Tony Torralba
78552b8bca
Merge pull request #16600 from atorralba/atorralba/java/more-file-sinks
...
Java: Add more File-related sinks to the path-injection query
2024-06-04 11:59:05 +02:00
Cornelius Riemenschneider
63116d2779
Merge pull request #16656 from github/criemen/pkg-javascript
...
Javascript: use `codeql_pack` for javascript extractor
2024-06-04 11:58:45 +02:00
Tamás Vajk
a1415e2b6d
Merge pull request #16661 from tamasvajk/buildless/nuget-path-space
...
C#: Quote packages.config paths
2024-06-04 11:53:55 +02:00
Geoffrey White
38c47a4b11
C++: Add change notes.
2024-06-04 10:47:25 +01:00
Tamás Vajk
c06df5552b
Merge pull request #16660 from tamasvajk/buildless/nuget-exe
...
C#: Prefer downloading nuget.exe over local instances
2024-06-04 11:25:03 +02:00
Geoffrey White
9c2b4c9446
C++: Update the doc examples for C/C++.
2024-06-04 10:21:06 +01:00
Geoffrey White
79e9198b20
C++: An empty models-as-data namespace / type is not 'dubious' in CPP.
2024-06-04 10:21:06 +01:00
Geoffrey White
f479649727
C++: Add Boost::Asio models.
2024-06-04 10:21:05 +01:00
Geoffrey White
7e5b7346c0
C++: Add flow test cases for Boost::Asio.
2024-06-04 10:21:05 +01:00
Geoffrey White
8a5b5d220a
C++: Add source/sink test cases for Boost::Asio.
2024-06-04 10:21:05 +01:00
Geoffrey White
af6a08893a
C++: Update the doc text for C/C++.
2024-06-04 10:20:59 +01:00
Jeroen Ketema
66077dc38d
C++: Ignore gets'es with incorrect parameter counts
2024-06-04 11:15:07 +02:00
Joe Farebrother
6ff7fb2a70
Add change note
2024-06-04 09:52:57 +01:00
Michael Nebel
a83d50062e
Merge pull request #16658 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2024-06-04 10:52:03 +02:00
Tamas Vajk
9af6cb8e4b
Quote packages.config paths
2024-06-04 10:47:00 +02:00
Joe Farebrother
9331c2c33a
Add tests
2024-06-04 09:39:37 +01:00
Tony Torralba
292395b80e
Update test expectations
2024-06-04 10:35:16 +02:00
Tony Torralba
f16dd8c010
Apply code review suggestions.
2024-06-04 10:35:11 +02:00
Tony Torralba
f84c2a842d
Java: Add more File-related sinks for path-injection
2024-06-04 10:35:07 +02:00
Tamas Vajk
2a62bfd0c2
C#: Add integration test with space in packages.config path
2024-06-04 10:33:03 +02:00
Rasmus Wriedt Larsen
839171e557
Merge pull request #16646 from RasmusWL/url-redirect-qhelp
...
Python: Update url-redirect qhelp with `https:/example.com` handling
2024-06-04 10:17:37 +02:00
Rasmus Wriedt Larsen
dd8b65130e
Merge pull request #16598 from jorgectf/jorgectf/opml-models
...
Python: Add models for `opml`
2024-06-04 10:16:26 +02:00
Tamas Vajk
f4d3756894
C#: Prefer downloading nuget.exe over local instances
2024-06-04 09:58:04 +02:00
Tom Hvitved
16e9cede3c
Merge pull request #16637 from hvitved/csharp/xml-validation-perf
...
C#: Improve performance of `MissingXMLValidation` query
2024-06-04 09:28:37 +02:00
Paolo Tranquilli
99f70a64e9
Kotlin: address review comments
2024-06-04 09:00:35 +02:00
Paolo Tranquilli
d1a2c0fbe4
Merge branch 'main' into redsun82/kotlin
2024-06-04 08:48:52 +02:00
Tom Hvitved
48455ec3c9
C#: Improve performance of MissingXMLValidation query
2024-06-04 08:35:53 +02:00
Tom Hvitved
e6dc36b2c4
Merge pull request #16636 from hvitved/tree-sitter/verbosity-fix
...
Tree-sitter: Verbosity fixes
2024-06-04 08:33:28 +02:00
Owen Mansel-Chan
133983678c
Merge pull request #16619 from owen-mc/go/fix/response-writer-variadic
...
Go: Fix bug in ResponseWriter for variadic MaD
2024-06-04 05:36:58 +01:00
github-actions[bot]
922489c8e8
Add changed framework coverage reports
2024-06-04 00:17:08 +00:00
Joe Farebrother
6ac46b8436
Add additional sanitizers to SSRF for methods that restrict the contents of a string.
2024-06-03 23:23:25 +01:00
Paolo Tranquilli
7b8c11379d
Javascript: use codeql_pack for javascript extractor
2024-06-03 23:14:44 +02:00
yoff
fe8f13e8dd
Merge pull request #16654 from sidshank/sidshank/fix-incorrect-deprecation-comment
...
Python: Fixes an error in the deprecation notice for a taint tracking configuration
2024-06-03 21:46:35 +02:00
Cornelius Riemenschneider
5b6f38f821
Merge pull request #16623 from github/criemen/new-pkg
...
Bazel: Use new packaging rules
2024-06-03 20:15:56 +02:00
Sid Shankar
859e8db5f2
Fixes typo in deprecation notice
2024-06-03 16:31:29 +00:00
Cornelius Riemenschneider
8783dfbaac
Merge branch 'main' into criemen/new-pkg
2024-06-03 18:15:45 +02:00
Ian Lynagh
b0865c2218
Merge pull request #16554 from igfoo/igfoo/k2rel
...
Kotlin: Accept Kotlin 2 test output, and use 2.0.0 on CI
2024-06-03 17:14:21 +01:00
Cornelius Riemenschneider
1bd7aef1b2
Fix search paths.
...
It turns out we still need to supply this option, so `codeql` goes looking
for the extractor paths specified in the `codeql-workspace.yml` file.
2024-06-03 16:33:17 +02:00
Ian Lynagh
986babb912
Kotlin: Accept 2.0 output for integration tests, and run some in 1.9 mode
2024-06-03 15:26:53 +01:00
Ian Lynagh
2bcf292dd6
Kotlin: Fix custom_plugin test with Kotlin 2.0.0
2024-06-03 15:26:53 +01:00
Ian Lynagh
acdf7df6a4
Kotlin: Fix typo
2024-06-03 15:26:53 +01:00
Ian Lynagh
839258897a
Kotlin: Add test for generated throw statements
2024-06-03 15:26:52 +01:00
Ian Lynagh
f458ca9568
Kotlin: Bump supported version limit to 2.0.0x
2024-06-03 15:26:52 +01:00
Ian Lynagh
2d760c7cc7
Kotlin: Tweak comments test
...
The top comment now gets owned by the Compilation Unit. We could
explicitly stop this from happening instead, but I think it's
reasonable.
2024-06-03 15:26:52 +01:00
Ian Lynagh
6224670884
Kotlin: Accept 2.0.0's Kotlin 2 test output
2024-06-03 15:26:51 +01:00
Ian Lynagh
918bee07dd
Kotlin: Accept Kotlin 1 test changes 1.9.0 -> 2.0.0
2024-06-03 15:26:51 +01:00
Ian Lynagh
2550e113a0
Kotlin: Set CI to use 2.0.0 release
2024-06-03 15:26:51 +01:00
Cornelius Riemenschneider
c30cc0f665
Fix formatting.
2024-06-03 16:10:41 +02:00
Cornelius Riemenschneider
b67309299f
C#: Unified handling of in-tree extractor packs.
2024-06-03 16:07:13 +02:00
Cornelius Riemenschneider
dd267e126c
Ql-for-ql: Unified handling of in-tree extractor packs.
2024-06-03 16:06:58 +02:00
Cornelius Riemenschneider
57f7602126
Go: Unified handling of in-tree extractor packs.
2024-06-03 16:06:44 +02:00
Cornelius Riemenschneider
5c77b8708c
Ruby: Unified handling of in-tree extractor packs.
2024-06-03 16:06:24 +02:00
Cornelius Riemenschneider
7b72018e56
Swift: Unified handling of in-tree extractor packs.
2024-06-03 16:06:08 +02:00
Cornelius Riemenschneider
04f5f30489
Unified handling of in-tree extractor packs.
2024-06-03 16:05:46 +02:00
Cornelius Riemenschneider
b9da01a384
Merge remote-tracking branch 'origin/main' into criemen/new-pkg
2024-06-03 15:47:15 +02:00
Cornelius Riemenschneider
5875ec272d
Merge pull request #16627 from github/criemen/pkg-fix-install
...
`pkg.bzl`: Fix install targets.
2024-06-03 15:31:43 +02:00
Geoffrey White
e87593af75
C++: Add the doc (copy from csharp).
2024-06-03 13:49:38 +01:00
Geoffrey White
94413c8c2e
C++: Implement YML extension models.
2024-06-03 13:49:38 +01:00
Geoffrey White
34130d50d3
C++: Add library tests for YML extension models.
2024-06-03 13:49:26 +01:00
Paolo Tranquilli
51b000a424
Merge pull request #16649 from github/redsun82/bazel-lfs
...
Bazel: ignore non-default SSH endpoints in `git_lfs_probe.py`
2024-06-03 13:31:43 +02:00
Paolo Tranquilli
8479673419
Bazel: ignore non-default SSH endpoints in git_lfs_probe.py
2024-06-03 12:26:37 +02:00
Cornelius Riemenschneider
a42bdd9bb0
Update misc/bazel/pkg.bzl
...
Co-authored-by: Paolo Tranquilli <redsun82@github.com >
2024-06-03 10:53:08 +02:00
Cornelius Riemenschneider
0173cf56f5
Merge pull request #16645 from github/criemen/cmake
...
Cmake generator: Remove space in argument.
2024-06-03 10:46:42 +02:00
Michael Nebel
546b260330
C#: Update expected test output and remove spurious result.
2024-06-03 10:40:13 +02:00
Michael Nebel
46f5b13854
C#: Only dispatch to summarized callables with generated summaries in case there are no source dispatch possibilities.
2024-06-03 10:40:10 +02:00
Michael Nebel
eb0925be60
C#: There should at least be one manual summary for a non-source summarized callable.
2024-06-03 10:40:06 +02:00
Michael Nebel
213e3918df
C#: Add some more external flow testcases (one with a spurious result).
2024-06-03 10:40:02 +02:00
Michael Nebel
b08a0a303f
C#: Re-factor external models tests to use compiled code instead of emulating it.
2024-06-03 10:39:59 +02:00
Michael Nebel
88b978f0ec
Merge pull request #16574 from michaelnebel/csharp/updatenetruntimemodels
...
C#: Re-generate .NET 8 Runtime models.
2024-06-03 10:33:10 +02:00
Rasmus Wriedt Larsen
121ca129bc
Update qhelp with https:/example.com handling
2024-06-03 10:17:10 +02:00
Cornelius Riemenschneider
cff78cca5e
Cmake generator: Remove space in argument.
...
This space breaks when upgrading bazelisk on Windows.
Somehow, a space inside the argument messes up some argument-parsin
somewhere. Porbably due to Windows argument parsing
being not well-defined in how it splits a string into argv.
Removing the space works around the problem.
If the space is included, cmake suddenly can't find the bazelisk
binary anymore, despite happily executing `info output_base` earlier.
2024-06-02 23:56:31 +02:00
Tom Hvitved
58ce3e805e
Merge pull request #16633 from hvitved/dataflow/inline-pred
...
Data flow: Inline `isUnreachableInCall1`
2024-05-31 20:12:14 +02:00
Tom Hvitved
beeae69845
Tree-sitter: Verbosity fixes
2024-05-31 20:10:19 +02:00
Chuan-kai Lin
8d5bb21643
Merge pull request #16642 from github/post-release-prep/codeql-cli-2.17.4
...
Post-release preparation for codeql-cli-2.17.4
2024-05-31 09:08:03 -07:00
Alex Ford
1100b75a3c
Ruby: handle routes with path/action pairs
2024-05-31 15:54:57 +01:00
github-actions[bot]
a19149032f
Post-release preparation for codeql-cli-2.17.4
2024-05-31 14:49:11 +00:00
Paolo Tranquilli
58fb0270fb
Merge pull request #16641 from github/redsun82/legacy-integration-test-marker
...
Mark all integration tests as legacy
2024-05-31 16:18:00 +02:00
Alex Ford
0473655752
Ruby: actiondispatch add hash arg testcase
2024-05-31 15:08:35 +01:00
Alex Ford
22858249f9
Ruby: actiondispatch test whitespace changes
2024-05-31 15:07:39 +01:00
Paolo Tranquilli
096a31dbef
Mark all integration tests as legacy
...
This is in preparation for the new integration test framework. Tests
marked thus will be run by the current framework and ignored by the new
one.
2024-05-31 16:04:50 +02:00
Alex Ford
4644f08195
Ruby: Routing.qll - rename call as methodCall
2024-05-31 14:45:32 +01:00
Alex Ford
25f9449f53
Ruby: Routing.qll - rename method as httpMethod
2024-05-31 14:45:26 +01:00
Alex Ford
af9ed21c36
Ruby: Routing.qll - rename method as methodCall
2024-05-31 14:45:20 +01:00
Chuan-kai Lin
a7bbcf3eb8
Merge pull request #16640 from github/release-prep/2.17.4
...
Release preparation for version 2.17.4
2024-05-31 06:43:37 -07:00
github-actions[bot]
a22e70373a
Release preparation for version 2.17.4
2024-05-31 13:40:51 +00:00
Anders Schack-Mulligen
06ce40c687
Merge pull request #16561 from aschackmull/java/typeflow-effectively-private
...
Java: Improve dispatch through TypeFlow of effectively private calls.
2024-05-31 15:11:18 +02:00
Michael Nebel
e2758f2abb
C#: Update expected test output.
2024-05-31 15:06:16 +02:00
Owen Mansel-Chan
ca2faa7ef0
Merge pull request #16624 from owen-mc/go/append-taint-models
...
Go: Add back taint models for `append` and `copy`
2024-05-31 13:35:14 +01:00
Paolo Tranquilli
01c1acd43f
Merge pull request #16632 from github/redsun82/bazel-fix
...
Bazel: fix non-swift macOS builds
2024-05-31 14:33:55 +02:00
Michael Nebel
d38894a5e5
C#: Update .NET 8 runtime models.
2024-05-31 14:19:48 +02:00
Paolo Tranquilli
25ab1a934d
Merge branch 'main' into redsun82/bazel-fix
2024-05-31 14:03:20 +02:00
Paolo Tranquilli
67e2ea195f
Merge pull request #16634 from github/redsun82/swift-integration-tests
...
Swift: remove integration test running in CI
2024-05-31 13:55:14 +02:00
Cornelius Riemenschneider
f27d48d03d
Merge pull request #16622 from github/criemen/pkg-lib-nolang
...
`pkg.bzl`: Add features to support the nolang dist.
2024-05-31 13:15:23 +02:00
Paolo Tranquilli
959aa3515c
Swift: remove integration test running in CI
...
They are being triggered by QLucie now, so there's no need to also
trigger them in the `codeql` specific CI.
2024-05-31 12:59:38 +02:00
Michael Nebel
8b75bb2ba9
C#: The model generator should consider System.Type and System.DateTime as sanitizers.
2024-05-31 12:50:18 +02:00
Michael Nebel
02f9aec517
C#: Add some spurious summary generation examples.
2024-05-31 12:50:14 +02:00
Michael Nebel
b628c2e121
C#: Update flow summaries expected output.
2024-05-31 12:50:10 +02:00
Michael Nebel
5e1801f7be
C#: Update models based on review comments.
2024-05-31 12:50:06 +02:00
Michael Nebel
121378a262
C#: Add change-note.
2024-05-31 12:50:02 +02:00
Michael Nebel
0985a3a5f6
C#: Update expected test output.
2024-05-31 12:49:58 +02:00
Michael Nebel
9bb7575018
C#: Promote IDataRecord and IDbCommand to manual summaries such that they are used in conjunction with source code.
2024-05-31 12:49:53 +02:00
Michael Nebel
90538d4b4c
C#: Update expected test output.
2024-05-31 12:49:48 +02:00
Michael Nebel
cd5168b570
C#: Limit the defintion of database flow source and use summaries for better paths and reduced result multiplicity.
2024-05-31 12:49:44 +02:00
Michael Nebel
38d246a3bd
C#: Update flowsummaries expected output.
2024-05-31 12:49:40 +02:00
Michael Nebel
db0131d931
C#: Update .NET8 models.
2024-05-31 12:49:35 +02:00
Tom Hvitved
be4fce26c0
Merge pull request #16631 from hvitved/tree-sitter/multi-file-lists
...
Tree-sitter: Allow for multiple file lists in simple extractor
2024-05-31 12:47:11 +02:00
Paolo Tranquilli
bfc37fddff
Bazel: move --build_tests_only from swift action to .bazelrc
2024-05-31 12:35:52 +02:00
Cornelius Riemenschneider
14988002fa
Address review.
2024-05-31 12:35:03 +02:00
Tom Hvitved
42d87f6d19
Data flow: Inline isUnreachableInCall1
2024-05-31 12:25:11 +02:00
Paolo Tranquilli
3f19974bb6
Bazel: fix transition on non-macOS
2024-05-31 12:14:13 +02:00
Paolo Tranquilli
b3e29bd8b5
Bazel: add --build_tests_only in swift CI
2024-05-31 12:13:26 +02:00
Paolo Tranquilli
07f4288e1f
Fix zipmerge build and test
2024-05-31 12:12:58 +02:00
Paolo Tranquilli
8e26f64f89
Bazel: fix non-swift macOS builds
...
This is meant to be cleaned up in a later PR with respect to the TODOs.
2024-05-31 11:49:36 +02:00
Tom Hvitved
d6a3765597
Tree-sitter: Allow for multiple file lists in simple extractor
2024-05-31 11:15:21 +02:00
Tony Torralba
2d3d49f957
Merge pull request #16628 from mbaluda/main
...
Disable csrf for ServerHttpSecurity
2024-05-31 10:31:28 +02:00
Mauro Baluda
48fc44baff
Add release notes
2024-05-30 23:21:12 +02:00
Mauro Baluda
bbe888c2b3
Update SpringCsrfProtection.qll
2024-05-30 23:13:08 +02:00
Mauro Baluda
e2479a7ce2
Disable csrf for ServerHttpSecurity
2024-05-30 23:08:57 +02:00
Owen Mansel-Chan
d112073a13
Edit change note
2024-05-30 21:04:05 +01:00
Owen Mansel-Chan
ffc25add70
Accept test changes
2024-05-30 21:01:06 +01:00
Owen Mansel-Chan
a5c392ed4b
Add back taint models for append and copy
...
This is needed when they are used with string arguments.
2024-05-30 21:01:03 +01:00
Cornelius Riemenschneider
e2cb5631d9
pkg.bzl: Fix install targets.
...
First, the labels used in this file need to be wrapped in `Label`,
so that we can use the installer target from the internal repo.
Second, when unpacking zips, the path passed to `ripunzip` included a trailing
`\n`, which caused `ripunzip` to fail.
2024-05-30 21:06:46 +02:00
Chuan-kai Lin
0369f8f5df
Merge pull request #16625 from github/revert-16605-release-prep/2.17.4
...
Revert "Release preparation for version 2.17.4"
2024-05-30 10:08:31 -07:00
Chuan-kai Lin
b41835a7d9
Revert "Release preparation for version 2.17.4"
2024-05-30 09:25:15 -07:00
Cornelius Riemenschneider
e43b773d7c
Fix comment to indicate the correct order in the zip dict.
2024-05-30 17:58:22 +02:00
Cornelius Riemenschneider
60cb8e7e8e
Ruby: Move to new packaging rules.
2024-05-30 14:25:20 +02:00
Cornelius Riemenschneider
1158e92f12
Python: Move to the new packaging rules.
2024-05-30 14:25:18 +02:00
Cornelius Riemenschneider
dcd44859f5
Go: Move to new packaging rules.
2024-05-30 14:25:17 +02:00
Cornelius Riemenschneider
d66d7d8a3a
C#: Move to new packaging rules.
2024-05-30 14:25:16 +02:00
Cornelius Riemenschneider
60b5317c5f
C++: Move to new packaging rules.
2024-05-30 14:25:15 +02:00
Cornelius Riemenschneider
9f3310d3d2
pkg.bzl: Add features to support the nolang dist.
...
In order to build the language-independent parts of our dist with `pkg.bzl`,
we need two override features:
* A way to set the prefix in the zip files to the empty string, so that our top-level files
stay top-level.
* A way to put `codeql.exe` into the arch-specific zip, despite it not being under `CODEQL_PLATFORM`.
This PR implements both.
2024-05-30 13:03:57 +02:00
Owen Mansel-Chan
61593aed7d
Merge pull request #16617 from owen-mc/go/side-effects-on-global-variables
...
Go: Add tests (mostly failing) for writes to global variables
2024-05-30 08:02:45 +01:00
Cornelius Riemenschneider
2c4a216dd9
Merge pull request #16616 from github/redsun82/fix-pkg
...
Reinstate bazel packaging library with a backward compatibility fix
2024-05-29 23:02:30 +02:00
Owen Mansel-Chan
1d9a98614a
Fix bug in ResponseWriter for variadic MaD
...
`getSummaryInputOrOutputNode` was giving the summary component stack for
arguments corresponding to variadic parameters. This will be a problem
when the models for variadic functions are converted to models-as-data.
2024-05-29 21:15:49 +01:00
Owen Mansel-Chan
7ff1eabfc3
Add tests (mostly failing) for writes to global variables
...
This was based on the equivalent for java:
https://github.com/github/codeql/pull/16500
2024-05-29 16:07:16 +01:00
Paolo Tranquilli
655f079329
Swift: fix legacy extractor-pack-arch target
2024-05-29 16:17:59 +02:00
Paolo Tranquilli
2606d3f6d1
Reapply "Bazel: add codeql specific packaging library"
...
This reverts commit 31d6b9be4d .
2024-05-29 15:46:29 +02:00
Paolo Tranquilli
8509bcae58
Merge pull request #16615 from github/revert-16432-redsun82/pkg
...
Revert "Bazel: add codeql specific packaging library"
2024-05-29 15:39:23 +02:00
Paolo Tranquilli
31d6b9be4d
Revert "Bazel: add codeql specific packaging library"
2024-05-29 15:27:10 +02:00
Paolo Tranquilli
3b246b2422
Merge pull request #16432 from github/redsun82/pkg
...
Bazel: add codeql specific packaging library
2024-05-29 12:58:47 +02:00
Paolo Tranquilli
1e6820b6ed
Merge branch 'main' into redsun82/pkg
2024-05-29 12:02:31 +02:00
Paolo Tranquilli
336ec089cc
Bazel: use extend(...) instead of += list(...)
2024-05-29 12:02:02 +02:00
Paolo Tranquilli
e8061ecd38
Bazel: fix _zipmerge rule
2024-05-29 11:59:18 +02:00
Tom Hvitved
775625968a
Merge pull request #16602 from hvitved/dataflow/fix-bad-join
...
Data flow: Fix bad join
2024-05-29 09:53:56 +02:00
Paolo Tranquilli
5672ddf8f3
Fix bazel formatting
2024-05-29 09:53:31 +02:00
Anders Schack-Mulligen
2f95851537
Merge pull request #16603 from aschackmull/dataflow/location
...
Dataflow/Go: Add getLocation to DataFlowCall and DataFlowCallable for easier debugging.
2024-05-29 08:58:22 +02:00
Paolo Tranquilli
491e3a44be
Merge branch 'main' into redsun82/pkg
2024-05-29 08:55:48 +02:00
Paolo Tranquilli
fbe1b56f2d
Zipmerge: link test statically
2024-05-29 08:55:06 +02:00
Chuan-kai Lin
06fd16bbf5
Merge pull request #16607 from github/post-release-prep/codeql-cli-2.17.4
...
Post-release preparation for codeql-cli-2.17.4
2024-05-28 14:56:43 -07:00
github-actions[bot]
906b65d09c
Post-release preparation for codeql-cli-2.17.4
2024-05-28 18:02:25 +00:00
Tom Hvitved
059ce1ba15
Data flow: Fix bad join
...
Before
```
Evaluated relational algebra for predicate _DataFlowImpl::Impl<ExceptionInformationExposure::ExceptionInformationExposure::C>::AccessPathApprox__#count_range@9acc2d7t with tuple counts:
875 ~0% {3} r1 = SCAN `num#DataFlowImpl::Impl<ExceptionInformationExposure::ExceptionInformationExposure::C>::TCons1#055add5f` OUTPUT _, In.0, In.1
875 ~0% {3} | REWRITE WITH Tmp.0 := 1, Out.0 := (InOut.2 - Tmp.0)
113896125 ~1% {3} | JOIN WITH `DataFlowImpl::Impl<ExceptionInformationExposure::ExceptionInformationExposure::C>::AccessPathApprox.len/0#dispred#e932df4d_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
113896125 ~7% {4} | JOIN WITH `DataFlowImpl::Impl<ExceptionInformationExposure::ExceptionInformationExposure::C>::AccessPathApprox.getFront/0#dispred#5d402e21` ON FIRST 1 OUTPUT Lhs.1, Lhs.0, Lhs.2, Rhs.1
2404 ~9% {5} | JOIN WITH `DataFlowImpl::Impl<ExceptionInformationExposure::ExceptionInformationExposure::C>::Stage5::consCand/3#cd06ec82_021#join_rhs` ON FIRST 2 OUTPUT Lhs.2, Lhs.0, Rhs.2, Lhs.3, _
2404 ~14% {5} | REWRITE WITH Out.4 := 1
return r1
Evaluated relational algebra for predicate DataFlowImpl::Impl<ExceptionInformationExposure::ExceptionInformationExposure::C>::count1to2unfold/1#9ad56f09@c47f87cq with tuple counts:
365 ~0% {2} r1 = JOIN `num#DataFlowImpl::Impl<ExceptionInformationExposure::ExceptionInformationExposure::C>::TCons1#055add5f_102#join_rhs` WITH `__DataFlowImpl::Impl<ExceptionInformationExposure::ExceptionInformationExposure::C>::AccessPathAppro__#join_rhs` ON FIRST 2 OUTPUT Lhs.2, Rhs.2
return r1
```
After
```
Evaluated relational algebra for predicate DataFlowImpl::Impl<ExceptionInformationExposure::ExceptionInformationExposure::C>::stage5ConsCand/4#ce755854@46e7620j with tuple counts:
848899 ~5% {3} r1 = SCAN `DataFlowImpl::Impl<ExceptionInformationExposure::ExceptionInformationExposure::C>::AccessPathApprox.len/0#dispred#e932df4d` OUTPUT In.0, _, In.1
848899 ~0% {2} | REWRITE WITH Tmp.1 := 1, Out.1 := (Tmp.1 + In.2) KEEPING 2
848899 ~0% {3} | JOIN WITH `DataFlowImpl::Impl<ExceptionInformationExposure::ExceptionInformationExposure::C>::AccessPathApprox.getFront/0#dispred#5d402e21` ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Rhs.1
12961 ~14% {4} | JOIN WITH `DataFlowImpl::Impl<ExceptionInformationExposure::ExceptionInformationExposure::C>::Stage5::consCand/3#cd06ec82_201#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Rhs.2, Lhs.2, Lhs.1
return r1
Evaluated relational algebra for predicate DataFlowImpl::Impl<ExceptionInformationExposure::ExceptionInformationExposure::C>::stage5ConsCand/4#ce755854_0312_1#count_range@a0e570ci with tuple counts:
11548 ~1% {5} r1 = SCAN `DataFlowImpl::Impl<ExceptionInformationExposure::ExceptionInformationExposure::C>::stage5ConsCand/4#ce755854` OUTPUT In.0, In.3, In.1, In.2, _
11548 ~3% {5} | REWRITE WITH Out.4 := 1
return r1
Evaluated relational algebra for predicate DataFlowImpl::Impl<ExceptionInformationExposure::ExceptionInformationExposure::C>::count1to2unfold/1#9ad56f09@e0e6143p with tuple counts:
3981 ~0% {3} r1 = AGGREGATE `DataFlowImpl::Impl<ExceptionInformationExposure::ExceptionInformationExposure::C>::stage5ConsCand/4#ce755854_0312_1#count_range`, `DataFlowImpl::Impl<ExceptionInformationExposure::ExceptionInformationExposure::C>::stage5ConsCand/4#ce755854_0312_1#count_range` ON WITH COUNT OUTPUT In.0, In.1, Agg.0
365 ~0% {2} | JOIN WITH `num#DataFlowImpl::Impl<ExceptionInformationExposure::ExceptionInformationExposure::C>::TCons1#055add5f` ON FIRST 2 OUTPUT Rhs.2, Lhs.2
return r1
```
2024-05-28 19:59:30 +02:00
Chuan-kai Lin
dc0db9a6c6
Merge pull request #16605 from github/release-prep/2.17.4
...
Release preparation for version 2.17.4
2024-05-28 08:57:38 -07:00
github-actions[bot]
33b4ae8bbb
Release preparation for version 2.17.4
2024-05-28 15:44:32 +00:00
Paolo Tranquilli
332d178298
Zipmerge: allow test to be run from internal repo
2024-05-28 17:37:34 +02:00
Paolo Tranquilli
4094db40b8
Merge branch 'main' into redsun82/pkg
2024-05-28 17:28:24 +02:00
Paolo Tranquilli
45f1fdfaff
Bazel: extract pack filtering logic out of _zipmerge
2024-05-28 17:24:20 +02:00
Pierre
06d6671c55
Merge pull request #16569 from github/sitedocs/2.17.3
...
Add changelogs for 2.17.2 and 2.17.3
2024-05-28 08:15:04 -07:00
Paolo Tranquilli
de484773f0
Zipmerge: print test outputs on CI
2024-05-28 16:29:41 +02:00
Paolo Tranquilli
2a62455822
Merge branch 'main' into redsun82/pkg
2024-05-28 16:15:48 +02:00
Paolo Tranquilli
5eb12b8503
Zipmerge: substitute stripped down slf4j jars with dummy ones
2024-05-28 16:15:20 +02:00
Michael Nebel
195ccb0018
Merge pull request #16484 from michaelnebel/csharp/superimplmodelgen
...
C#: Lift models.
2024-05-28 15:49:35 +02:00
Paolo Tranquilli
c3ccf4d5a3
Zipmerge: substitute CPython archives with dummy ones
2024-05-28 15:47:24 +02:00
Paolo Tranquilli
67d622fa9d
Bazel: actually run the zipmerge tests
2024-05-28 15:44:53 +02:00
Paolo Tranquilli
9c1efb9f0e
Bazel: expose compression_level in codeql_pack
2024-05-28 15:09:15 +02:00
Paolo Tranquilli
00ed00e1e5
Bazel: avoid unneeded operations if no imported zips are present
2024-05-28 15:01:35 +02:00
Paolo Tranquilli
e2206e62d6
Bazel: restrict codeql_pack zips to .zip files
2024-05-28 14:39:20 +02:00
Paolo Tranquilli
6b971617e7
Bazel: rename _process_path to _expand_path, and make its use clearer
2024-05-28 14:17:05 +02:00
Paolo Tranquilli
76fbb522d2
Bazel: use pack name for zip file name
2024-05-28 14:10:31 +02:00
Anders Schack-Mulligen
3b12f69dd9
Dataflow/Go: Add getLocation to calls and callables for easier debugging.
2024-05-28 13:47:08 +02:00
Michael Nebel
5a25967019
C#: Address review comments.
2024-05-28 13:38:23 +02:00
Paolo Tranquilli
6d798410ce
Bazel: add --no-cleanup to installer script
2024-05-28 12:51:52 +02:00
Paolo Tranquilli
a8543d4a88
Zipmerge: port tests from internal repo
2024-05-28 12:01:57 +02:00
Paolo Tranquilli
afadc1f1eb
Merge branch 'main' into redsun82/pkg
2024-05-28 11:21:19 +02:00
Paolo Tranquilli
f7bfe435c8
Swift: fix windows build again
2024-05-28 11:20:32 +02:00
Joe Farebrother
4c97b0c785
Merge pull request #16529 from joefarebrother/python-flask-session-interface
...
Python: Model Flask SessionInterface request parameter
2024-05-28 10:03:13 +01:00
Paolo Tranquilli
fe9a153f44
Merge branch 'main' into redsun82/pkg
2024-05-28 10:07:28 +02:00
Jeroen Ketema
174f212d4e
Merge pull request #16589 from rvermeulen/rvermeulen/update-nospaceforzeroterminator-qlhelp
...
Rewrite recommendations for the query `cpp/no-space-for-terminator`
2024-05-28 09:52:20 +02:00
Paolo Tranquilli
fbf3b9ae7a
Merge branch 'main' into redsun82/pkg
2024-05-27 18:16:39 +02:00
Paolo Tranquilli
392ef09d19
Zipmerge: make lib public for internal testing
2024-05-27 17:28:33 +02:00
Paolo Tranquilli
cde71a915b
Bazel: address review comments
2024-05-27 17:00:39 +02:00
Paolo Tranquilli
2f95944244
Bazel: add documentation to install.py
2024-05-27 16:58:58 +02:00
Paolo Tranquilli
2f53c0e640
Bazel: fix codeql_pack installation on Windows
2024-05-27 16:09:42 +02:00
Paolo Tranquilli
6bbad22672
Codegen: make codegen work on windows
2024-05-27 16:05:38 +02:00
Jeroen Ketema
c936f964d3
Merge pull request #16599 from jketema/padding
...
C++: Make the padding test independent of the `predefined_macros` file
2024-05-27 15:36:06 +02:00
Tom Hvitved
69fb2bb97c
Merge pull request #16597 from hvitved/tree-sitter/empty-location
...
Tree-sitter: Emit `empty_location` relation to avoid scan
2024-05-27 15:19:15 +02:00
Jeroen Ketema
c57c027f70
C++: Make the padding test independent of the predefined_macros file
...
The padding test is the only test that currently depends on the contents
of the `predefined_macros` flile that we ship with CodeQL for use with the
CodeQL tests. Explicitly specifying `__x86_64` makes the test independent of
the contents of the file.
2024-05-27 14:21:10 +02:00
Anders Schack-Mulligen
d88c498d49
Merge pull request #16456 from aschackmull/dataflow/callcontext-grouping
...
Dataflow: Implement call context grouping to improve performance
2024-05-27 14:11:11 +02:00
Paolo Tranquilli
821bd1f27b
Merge branch 'main' into redsun82/kotlin
2024-05-27 13:17:06 +02:00
Paolo Tranquilli
2bec696114
Merge branch 'main' into redsun82/pkg
2024-05-27 13:13:12 +02:00
Cornelius Riemenschneider
bd6e233b66
Merge pull request #16519 from github/criemen/bazel-csharp
...
Bazel-build for C# language pack
2024-05-27 12:08:21 +02:00
Paolo Tranquilli
1e7b3d0f6f
Merge pull request #16588 from github/redsun82/ripunzip
...
Add ripunzip build workflow
2024-05-27 12:05:34 +02:00
Cornelius Riemenschneider
735bea624a
Place the C++ autobuilder in the correct path.
2024-05-27 11:55:14 +02:00
Jorge
b786ea7e5f
Add change note
2024-05-27 09:48:56 +00:00
Jorge
34230369bc
Add OPML module to frameworks imports
2024-05-27 09:48:49 +00:00
Jorge
e992d86d38
Add OPML models
2024-05-27 09:48:10 +00:00
Anders Schack-Mulligen
51c48c767e
Dataflow: Address review comments (take 2).
2024-05-27 11:01:52 +02:00
Anders Schack-Mulligen
4ff37cc7b6
Dataflow: Address review comments.
2024-05-27 11:01:52 +02:00
Anders Schack-Mulligen
8085460e4a
C++/Shared: Fix join order issues.
2024-05-27 11:01:52 +02:00
Anders Schack-Mulligen
5c635e982e
C++/C#/Java: Update expected output.
2024-05-27 11:01:52 +02:00
Anders Schack-Mulligen
1432519cc2
Dataflow: Add totalorder predicates to all languages.
2024-05-27 11:01:52 +02:00
Anders Schack-Mulligen
5a259843bb
Dataflow: Switch call context to a set representation.
2024-05-27 11:01:52 +02:00
Anders Schack-Mulligen
972b81bbd1
Util: Allow best-effort total orders with a reasonable fallback.
2024-05-27 11:01:52 +02:00
Anders Schack-Mulligen
b83416f3a1
Dataflow: Make two predicates private.
2024-05-27 11:01:52 +02:00
Anders Schack-Mulligen
52a232e91c
Dataflow: Make CallContext type private to DataFlowImplCommon.
2024-05-27 11:01:52 +02:00
Anders Schack-Mulligen
947c2bf722
Dataflow: Move two declarations.
2024-05-27 11:01:52 +02:00
Anders Schack-Mulligen
1dd1f12919
Dataflow: Move Level1CallContext to DataFlowImplCommon
2024-05-27 11:01:52 +02:00
Anders Schack-Mulligen
e1e6cd9b3d
Dataflow: Simplify: remove Level1CallContextInput module
2024-05-27 11:01:52 +02:00
Anders Schack-Mulligen
f6eb82ee15
Dataflow: Simplify.
2024-05-27 11:01:52 +02:00
Anders Schack-Mulligen
5ac96d009a
Dataflow: Move viableImplNotCallContextReducedReverse to DataFlowImplCommon::CallContextSensitivity.
2024-05-27 11:01:52 +02:00
Anders Schack-Mulligen
740bb84423
Dataflow: Rename prunedViableImplInCallContextReverse to viableImplCallContextReducedReverse.
2024-05-27 11:01:52 +02:00
Anders Schack-Mulligen
0561c65b61
Dataflow: Rename noPrunedViableImplInCallContext to viableImplNotCallContextReduced.
2024-05-27 11:01:52 +02:00
Anders Schack-Mulligen
aa87243e3a
Dataflow: Rename prunedViableImplInCallContext to viableImplCallContextReduced
2024-05-27 11:01:52 +02:00
Anders Schack-Mulligen
ace369faa8
Dataflow: Share getCallContextCall in DataFlowImplCommon::CallContextSensitivity.
2024-05-27 11:01:52 +02:00
Anders Schack-Mulligen
b2e3d784f6
Dataflow: Share getCallContextReturn in DataFlowImplCommon::CallContextSensitivity.
2024-05-27 11:01:52 +02:00
Anders Schack-Mulligen
79b1cd7d3d
Dataflow: Refactor getLocalCc to avoid reference to NodeEx.
2024-05-27 11:01:51 +02:00
Anders Schack-Mulligen
eb0b92350a
Dataflow: Switch column order in viableImplCallContextReducedReverse.
2024-05-27 11:01:51 +02:00
Anders Schack-Mulligen
86e6d0b1e1
Dataflow: Switch local call contexts to use canonical representative.
2024-05-27 11:01:51 +02:00
Anders Schack-Mulligen
012e1b498d
Dataflow: Remove duplicate definitions
2024-05-27 11:01:51 +02:00
Anders Schack-Mulligen
bc8ca1af86
Dataflow: Introduce NodeRegions for use in isUnreachableInCall.
2024-05-27 11:01:51 +02:00
Anders Schack-Mulligen
486eaad566
Shared: Add MakeSets module.
2024-05-27 11:01:51 +02:00
Paolo Tranquilli
f9674d1b3a
Update .github/workflows/build-ripunzip.yml
...
Co-authored-by: Cornelius Riemenschneider <cornelius@github.com >
2024-05-27 11:01:05 +02:00
Paolo Tranquilli
546d644765
Swift: do not use codeql_pkg_files needlessly
2024-05-27 10:46:50 +02:00
Tom Hvitved
686879a2a3
Ruby: Add up/downgrade scripts
2024-05-27 10:39:22 +02:00
Tom Hvitved
94d2e9591d
Tree-sitter: Emit empty_location relation to avoid scan
2024-05-27 10:39:21 +02:00
Cornelius Riemenschneider
44f666c90a
Merge pull request #16585 from github/criemen/ruby-codeql-extractor-hack
...
Ruby: Change how we pull in `shared/tree-sitter-extractor` dependency
2024-05-27 10:32:16 +02:00
Paolo Tranquilli
0b7a4257d7
Bazel: use {CODEQL_PLATFORM} as discriminant between arch and generic contents
2024-05-27 10:31:19 +02:00
am0o0
2b929c4d2d
remove old expected test file
2024-05-25 20:45:34 +02:00
am0o0
1fc481ce81
v2: it is basically the first stable version :))
2024-05-25 20:43:36 +02:00
am0o0
ea05b297a3
update expected test files
2024-05-25 19:40:37 +02:00
am0o0
14daf58767
update tests, add test cases for query with local sources
2024-05-25 18:17:56 +02:00
am0o0
8fde8c2db4
change test dir name
2024-05-25 13:54:31 +02:00
am0o0
b397f57357
change queries id according to new naming
2024-05-25 13:53:33 +02:00
am0o0
300c82a8ff
use Verification instead of validation in files name
2024-05-25 13:52:32 +02:00
am0o0
76beffb04a
change dir name
2024-05-25 13:49:34 +02:00
am0o0
f1533f40b6
change query files name
2024-05-25 13:49:01 +02:00
am0o0
d2d945c66d
merge all JWT pkgs into one
2024-05-25 13:47:43 +02:00
am0o0
4af4040bd6
change duplicate query IDs
2024-05-25 13:29:16 +02:00
am0o0
f905ac10c4
add jsonWebToken library file to remove duplicate predicate declrations
2024-05-25 13:28:13 +02:00
Remco Vermeulen
6df4c8964b
Rewrite recommendations
...
- Replace segmentation fault with crash that is platform agnostic (I think segmentation fault is not really a thing on Windows).
- Replace security vulnerability with malicious code execution. This provides a range of issues, because a crash (previously segmentation fault) could also be considered a security vulnerability. Namely a DOS.
- Removed the additional note on stack allocated arrays which seem confusing because we are always talking about buffers allocated on the heap.
2024-05-24 16:10:42 -07:00
Cornelius Riemenschneider
d30ed54bfd
Merge branch 'main' into criemen/bazel-csharp
2024-05-24 18:02:20 +02:00
Paolo Tranquilli
5d4b61c365
Bazel: replace prebuilt ripunzip from workflow
2024-05-24 17:44:39 +02:00
Paolo Tranquilli
8d5fa9583e
Add ripunzip build workflow
2024-05-24 17:37:59 +02:00
Cornelius Riemenschneider
b09f3c1c0d
Don't build with cross any longer.
...
We've removed cross from the internal build when converting to bazel,
mirror that here.
2024-05-24 16:17:37 +02:00
Paolo Tranquilli
b9064c5446
Bazel: fail install on ripunzip failing
2024-05-24 15:50:16 +02:00
Cornelius Riemenschneider
8c46b61e85
Ruby: Change how we pull in shared/tree-sitter-extractor dependency
...
Previously, we pulled in the shared tree-sitter extractor via a `git`
dependency in `Cargo.toml` to address a `rules_rust` limitation (no `path`
dependencies outside of the cargo workspace)). This was a problem,
as that means we're cloning `github/codeql` _again_ for the build, which is
quite slow.
I found another way that is faster, and still produces correct builds
for both `cargo`` and `rules_rust`:
* Cargo depends on a fake crate that has the same dependencies as the real crate (thanks to `sync-files.py`). Therefore, cargo pulls in the right dependencies into the lockfile, which bazel targets
* For local builds, we override the path to that dependency in a cargo config, so we're pulling in the correct code
* rules_rust only uses `path` dependencies for collecting transitive dependencies, it never pulls in the code from there. So far that, we manually provide a `BUILD.bazel` file for the shared extractor, and depend on that.
2024-05-24 15:37:35 +02:00
Cornelius Riemenschneider
5fa1b57aaa
Merge pull request #16586 from hvitved/rust-bump
...
Python: Use Rust 1.74
2024-05-24 15:30:15 +02:00
Paolo Tranquilli
f35f077c76
Swift: cleanup tools scripts in pack
2024-05-24 15:24:15 +02:00
Paolo Tranquilli
e990d75a8f
Bazel: use codeql platform as arch zip filename
2024-05-24 15:23:51 +02:00
Paolo Tranquilli
ea01ae6534
Swift: fix integration test log upload
2024-05-24 14:29:22 +02:00
Paolo Tranquilli
fa2c626e49
Bazel: add fat macOS ripunzip binary
2024-05-24 14:29:02 +02:00
Paolo Tranquilli
dcbf42d29c
Bazel: reorganize LFS files and add licensing information
2024-05-24 14:26:22 +02:00
Tom Hvitved
386bc1eb03
Bazel: repin
2024-05-24 13:53:55 +02:00
Tom Hvitved
7490472772
Update Python to use Rust 1.74
2024-05-24 13:05:39 +02:00
Michael Nebel
c59c7cf02a
C#: Use manual sink callables as exclusion for extrapolated sinks.
2024-05-24 12:50:48 +02:00
Michael Nebel
d272d6a9ca
C#: Assume that models should apply when a method is overridable except for the implicit methods on Object and ValueType.
2024-05-24 12:50:48 +02:00
Michael Nebel
ad55744877
C#: Add model generator test case for property.
2024-05-24 12:50:48 +02:00
Michael Nebel
057a420833
C#: Update expected test output.
2024-05-24 12:50:48 +02:00
Michael Nebel
a8feda2e2b
C#: Introduce lifting of callables in the model generator.
2024-05-24 12:50:48 +02:00
Michael Nebel
0d397cea9f
C#: Add some model generator tests related to lifting.
2024-05-24 12:50:48 +02:00
Michael Nebel
3ad29d843d
C#: Re-factor model generator specific to align with Java.
2024-05-24 12:50:48 +02:00
Michael Nebel
95473c06fc
Merge pull request #16520 from michaelnebel/csharp/fixsummarizedcallabledataflow
...
C#: Make the flow summary filtering in the adapter.
2024-05-24 12:48:03 +02:00
Paolo Tranquilli
e694968012
Fix change to .gitattributes done by mistake
2024-05-24 12:41:32 +02:00
Paolo Tranquilli
175f0dbb00
Swift: remove broken obsolete alias
2024-05-24 12:40:29 +02:00
Paolo Tranquilli
94d6feffed
Swift: fix module
2024-05-24 12:35:41 +02:00
Paolo Tranquilli
8e132e90cc
Bazel: add executable attribute to lfs_files
2024-05-24 12:35:17 +02:00
Paolo Tranquilli
1529b58089
Swift: add resource dir updater
2024-05-24 12:19:06 +02:00
Paolo Tranquilli
e8b857b79e
Bazel/Swift: add zip imports to packs
2024-05-24 12:18:42 +02:00
Tom Hvitved
0dbce3d077
Merge pull request #16451 from hvitved/treesitter/codeql-verbosity
...
Tree-sitter: Respect verbosity defined in `CODEQL_VERBOSITY`
2024-05-24 11:24:01 +02:00
Paolo Tranquilli
4d93e8a732
Bazel: move codeql packaging rules away from some macros
2024-05-24 10:27:45 +02:00
Paolo Tranquilli
60cf77be7e
Bazel: add codeql specific packaging library
...
This encapsulate arch specific logic, local installation and separation
of zip files into generic and arch-specific parts as required by the
internal build.
2024-05-24 10:27:44 +02:00
Tamás Vajk
8ae607cdce
Merge pull request #16577 from tamasvajk/fix/adjust-compiler-arg-test
...
C#: Adjust compiler argument integration test
2024-05-24 09:24:21 +02:00
Erik Krogh Kristensen
c743abad54
Merge pull request #14294 from am0o0/amammad-js-CodeInjection_execa
...
JS: provide command execution sinks for execa package
2024-05-24 09:20:19 +02:00
Anders Schack-Mulligen
5a7174dcbb
Merge pull request #16500 from aschackmull/java/static-field-side-effect
...
Java: Add support for flow through side-effects on static fields.
2024-05-24 09:19:31 +02:00
Michael Nebel
78d4745722
Merge pull request #16578 from michaelnebel/java/dontliftneutral
...
Java: Do not lift neutrals in Model generation.
2024-05-24 09:19:20 +02:00
Tamas Vajk
9aee2dc002
C#: Adjust compiler argument integration test
2024-05-24 08:39:08 +02:00
Michael Nebel
f5c654b669
Merge pull request #16579 from tamasvajk/fix/integration-test-2
...
C#: Fix integration test expected file
2024-05-24 08:16:37 +02:00
Dave Bartolomeo
6f67f9e887
Merge pull request #16564 from github/dbartol/v1
...
Update all pack versions to `1.0.0`
2024-05-23 17:32:27 -04:00
Dave Bartolomeo
f498e05099
Merge branch 'main' into dbartol/v1
2024-05-23 14:37:28 -04:00
Dave Bartolomeo
613ccaac1d
Add change note to all v1.0.0 packs
2024-05-23 13:01:22 -04:00
Tamas Vajk
5928ede324
C#: Fix integration test expected file
2024-05-23 16:47:35 +02:00
Michael Nebel
9cf0995720
Java: Update test expected output.
2024-05-23 16:33:04 +02:00
Michael Nebel
6f5bdfba65
Java: Do not lift neutrals and only generate for public endpoints.
2024-05-23 16:32:45 +02:00
Michael Nebel
1e54422662
Java: Add neutral implementations.
2024-05-23 15:00:23 +02:00
Tom Hvitved
e4cd9d86f6
Tree-sitter: Respect verbosity defined in CODEQL_VERBOSITY
2024-05-23 13:38:35 +02:00
Anders Schack-Mulligen
1bc3f6b0e7
Java: Add change note.
2024-05-23 13:03:06 +02:00
Tom Hvitved
a523be4d0a
Tree-sitter: Add set_tracing_level to shared extractor module
2024-05-23 12:58:53 +02:00
Anders Schack-Mulligen
bf3dbc24de
Java: Add support for flow through side-effects on static fields.
2024-05-23 12:57:57 +02:00
Owen Mansel-Chan
b2deea4606
Avoid duplicate additional flow steps in configs
...
`localTaintStep` includes a lot of steps which are already part of value
flow. Instead use `defaultAdditionalTaintStep`, which is just the extra
steps that are added for taint tracking.
2024-05-23 11:13:35 +01:00
Owen Mansel-Chan
7e5891b443
Remove unnecessary additional flow step
...
TaintTracking already adds taint steps for field reads
2024-05-23 11:08:29 +01:00
Owen Mansel-Chan
cf997fddf6
Trivial: improve parameter names
...
These names make more sense and match everywhere
else that this function signature is used.
2024-05-23 11:04:09 +01:00
Pierre
52a834dfa3
Add changelogs for 2.17.2 and 2.17.3
2024-05-23 11:26:16 +02:00
Anders Schack-Mulligen
70d3be0a3a
Java: Fix test.
2024-05-23 11:24:11 +02:00
Anders Schack-Mulligen
b519f13600
Java: Add change note.
2024-05-23 10:50:16 +02:00
Anders Schack-Mulligen
527dafa346
Java: Improve dispatch through TypeFlow of effectively private calls.
2024-05-23 10:50:16 +02:00
Cornelius Riemenschneider
303dc200c1
Add standalone dependency to autobuilder, following upstream changes.
2024-05-23 10:24:44 +02:00
Cornelius Riemenschneider
576ea325e8
Merge remote-tracking branch 'origin/main' into criemen/bazel-csharp
2024-05-23 10:21:19 +02:00
erik-krogh
c80f48b23a
Merge branch 'main' into amammad-js-CodeInjection_execa
2024-05-23 08:02:22 +02:00
Joe Farebrother
2db1fbc713
Merge branch 'main' into python-flask-session-interface
2024-05-22 21:48:01 +01:00
Dave Bartolomeo
ffe4c8c87b
Update all pack versions to 1.0.0
2024-05-22 13:39:08 -04:00
Joe Farebrother
8ff0cb614b
Apply review suggestion - Update change note
...
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com >
2024-05-22 14:26:41 +01:00
Michael Nebel
2449074f3d
C#: Remove the DataFlowSummarizedCallable as this narrowing is now handled in the adapter.
2024-05-22 15:11:41 +02:00
Paolo Tranquilli
eab940c45d
Merge branch 'main' into redsun82/kotlin
2024-05-22 13:30:23 +02:00
Michael Nebel
e4319db18d
C#: Filter out unwanted summaries at the root.
2024-05-22 12:53:55 +02:00
Cornelius Riemenschneider
24a14badbb
Bazel: Remove some kwargs.pop invocations.
2024-05-22 12:09:18 +02:00
Cornelius Riemenschneider
09f60e3e45
C#: Address C# code comments.
2024-05-22 12:09:12 +02:00
Paolo Tranquilli
b744f9fab9
Merge pull request #16544 from github/redsun82/bazel-csharp-2
...
Bazel/C#: avoid zipmerge
2024-05-22 08:18:30 +02:00
am0o0
0895f7d971
update qlref files
2024-05-21 22:48:17 +02:00
am0o0
c470c078dc
move to experimental
2024-05-21 22:42:16 +02:00
Paolo Tranquilli
3c52e3b7c5
Bazel/C#: adjust DefaultInfo in codeql_pkg_files_overlay
2024-05-21 16:32:24 +01:00
Geoffrey White
8dad622de2
Swift: Fix some inconsistencies.
2024-05-21 16:32:00 +01:00
Cornelius Riemenschneider
730d5425b3
C#: Add comment justifing turning off strict deps.
2024-05-21 17:30:27 +02:00
Cornelius Riemenschneider
767d427c1b
C#: Re-implement the git version logic using an attribute.
2024-05-21 17:28:31 +02:00
Paolo Tranquilli
b19bf2f37a
Bazel/C#: avoid zipmerge
2024-05-21 15:29:54 +01:00
Asger F
0b78d1d953
Python: add qldoc
2024-05-21 14:40:35 +02:00
Asger F
3b211089d6
JS: Remove redundant import
2024-05-21 14:40:17 +02:00
Asger F
13d01f1ec4
Ruby/Python: add recursion guard
2024-05-21 14:40:15 +02:00
Asger F
14c71a351e
Sync shared files
2024-05-21 14:38:55 +02:00
Asger F
6f19fc2fcd
JS: Add isTypeUsed to avoid overpruning
2024-05-21 14:38:52 +02:00
Asger F
632cce2c16
JS: Add failing test due to overpruning
2024-05-21 14:20:13 +02:00
Asger F
43abc72780
JS: Add TypeModel.isTypeUsed
...
f
2024-05-21 14:19:56 +02:00
Cornelius Riemenschneider
731b9412df
Fix integration test expectations.
2024-05-21 09:14:15 +02:00
Cornelius Riemenschneider
36922f2625
Remove GitInfo dependency.
...
GitInfo doesn't work with the bazel-based build.
Instead, we pull in the information from bazel,
which correctly works with the bazel cache.
2024-05-21 09:14:14 +02:00
Cornelius Riemenschneider
71372bc74c
C#: Add Bazel-based build system.
...
This commits a bazel-based build system for C#
using `rules_dotnet`. External dependencies are managed
via `paket`, and updates to the generated bazel files
are done via `./update-deps.sh`.
We're providing our own (minimal) test runner for `xunit`
tests.
2024-05-21 09:14:13 +02:00
erik-krogh
c166cb406a
Merge branch 'main' into amammad-js-CodeInjection_execa
2024-05-21 08:48:12 +02:00
Joe Farebrother
553500d9f2
Fix change note
2024-05-20 15:47:07 +01:00
Joe Farebrother
be573329d8
Add change note
2024-05-20 10:54:13 +01:00
Joe Farebrother
7727e465f4
Model Flask SessionInterface request parameter
2024-05-20 09:46:54 +01:00
Chanel Young
5ee7004a62
fp case if encrypt set in initializer
2024-05-16 17:59:17 -07:00
Paolo Tranquilli
75709bf1ec
Merge branch 'main' into redsun82/kotlin
2024-05-16 15:55:08 +01:00
Michael B. Gale
81297aad8c
Go: Use standard semver format in outputEnvironmentJson
2024-05-15 12:21:23 +01:00
Michael B. Gale
fabd7a9c51
Go: Better preserve original versions
2024-05-15 12:01:03 +01:00
Michael B. Gale
e0543d1d59
Go: Support all permutations of version prefixes and suffixes
2024-05-15 10:43:02 +01:00
Michael B. Gale
6652685f5a
Go: Restore toolchain.IsInstalled check
2024-05-15 10:07:44 +01:00
Michael B. Gale
898383ccff
Go: Fix comment in NewSemVer for empty string
2024-05-15 10:07:44 +01:00
Michael B. Gale
054efa648c
Go: Move version constants to shared location
2024-05-15 10:03:35 +01:00
Michael B. Gale
9e618b6961
Go: Use SemVer type in autobuilder package
2024-05-15 10:03:35 +01:00
Michael B. Gale
a6d2aa3913
Go: Use SemVer type in project package
2024-05-15 10:03:32 +01:00
Michael B. Gale
010df54657
Go: Use SemVer type in toolchain package
2024-05-15 10:03:01 +01:00
Michael B. Gale
d171750678
Go: Add SemVer type to track valid semantic versions
2024-05-15 10:02:10 +01:00
Sim4n6
7f153ed07b
Add some method calls as a Source
2024-05-12 09:46:36 +01:00
Paolo Tranquilli
e546560d7c
Kotlin: restore kotlin-compiler-embeddable-1.7.0.jar to the maven central version
2024-05-06 17:37:16 +02:00
Paolo Tranquilli
514e24ce62
Kotlin: bring back lazy LFS dependencies
...
This reverts commit d7ecaae245 .
Problems with lazy LFS rules were solved by
https://github.com/github/codeql/pull/16393 and
https://github.com/github/codeql/pull/16434 .
2024-05-06 17:31:50 +02:00
Paolo Tranquilli
239b6d8c8e
Merge branch 'main' into redsun82/kotlin
2024-05-06 17:24:53 +02:00
Paolo Tranquilli
52a015fb11
Bazel: remove further unneeded files
2024-04-30 09:07:11 +02:00
Paolo Tranquilli
d4e0a5629d
Kotlin: update wrapper location
2024-04-29 17:33:40 +02:00
Paolo Tranquilli
b83417301f
Merge branch 'main' into redsun82/kotlin
2024-04-29 17:26:59 +02:00
Paolo Tranquilli
450f6518e2
Bazel: remove generic lazy lfs files
2024-04-29 17:26:48 +02:00
Paolo Tranquilli
d7ecaae245
Kotlin: back off from lazy LFS rules
...
Those have shown to cause problems with too many concurrent downloads.
This changes kotlinc dependencies fetching to:
* use `resource/kotlinc-dependencies` if available (which is the case
for the internal repo)
* otherwise, download them from maven.
This means sha256 hashes need to be written down for bazel.
2024-04-29 17:26:25 +02:00
Paolo Tranquilli
a841a2b0a2
Merge branch 'main' into redsun82/kotlin
2024-04-26 10:38:28 +02:00
Paolo Tranquilli
8e1d77bcb2
Bazel: format file
2024-04-25 11:05:57 +02:00
Paolo Tranquilli
1e622e168c
Merge branch 'main' into redsun82/kotlin
2024-04-25 11:05:19 +02:00
Paolo Tranquilli
a23327c399
Merge branch 'main' into HEAD
2024-04-24 13:39:44 +02:00
Paolo Tranquilli
4aa0a8ebae
Kotlin: make wrapper more robust for windows
2024-04-24 13:39:32 +02:00
Paolo Tranquilli
c014cd84f4
Bazel: fix kotlin wrapper version dependency
2024-04-23 15:15:38 +02:00
Paolo Tranquilli
5b143cee96
Kotlin: make wrapper install quietly unless --select is explicit
...
This allows `kotlinc -version` to always produce something parseable.
2024-04-23 15:15:38 +02:00
Paolo Tranquilli
072e2edd34
Merge branch 'main' into redsun82/kotlin
2024-04-23 14:29:33 +02:00
Paolo Tranquilli
aaa29d8982
Remove unneeded slash in kotlinc.bat
2024-04-22 18:13:55 +02:00
Paolo Tranquilli
f685843a52
Merge branch 'main' into redsun82/kotlin
2024-04-22 16:47:56 +02:00
Paolo Tranquilli
7952f0e237
Merge branch 'main' into redsun82/kotlin
2024-04-22 08:30:22 +02:00
Paolo Tranquilli
3678e51f0b
Merge branch 'main' into redsun82/kotlin
2024-04-17 15:09:27 +02:00
Paolo Tranquilli
c5f6c65ff1
Merge branch 'main' into redsun82/kotlin
2024-04-16 18:23:33 +02:00
Paolo Tranquilli
a7411700ef
Merge branch 'main' into redsun82/kotlin
2024-04-16 16:13:31 +02:00
Paolo Tranquilli
306f0f172d
Kotlin: accept --select default in kotlinc wrapper to select the default version
2024-04-16 13:55:20 +02:00
Paolo Tranquilli
27ab4875fd
Kotlin: simplify kotlinc wrapper
2024-04-16 13:37:06 +02:00
Paolo Tranquilli
aee3c0d249
Add license and notice information to patched registry
2024-04-16 12:33:00 +02:00
Paolo Tranquilli
735b3410aa
Merge branch 'main' into redsun82/kotlin
2024-04-16 11:49:21 +02:00
Geoffrey White
fc7fef3dd8
Swift: Add dataflow tests for dictionaries.
2024-04-15 18:50:41 +01:00
Geoffrey White
0c88d05a65
Swift: QLDoc BuiltinLiteralExpr subclasses and add BuiltinLiteral.getValueString.
2024-04-15 18:23:32 +01:00
Paolo Tranquilli
8c705adbe9
Kotlin/Bazel: fix java release to 8 for java code
2024-04-15 15:38:06 +02:00
Paolo Tranquilli
bd631c5e00
Merge branch 'main' into redsun82/kotlin
2024-04-15 15:37:33 +02:00
Paolo Tranquilli
5bb2cba66c
Merge branch 'main' into redsun82/kotlin
2024-04-15 14:08:13 +02:00
Paolo Tranquilli
6a83bf9de5
Merge pull request #16208 from github/redsun82/kotlin-wrapper
...
Kotlin/Bazel: provide wrapper for managing versions of `kotlinc`
2024-04-15 13:33:10 +02:00
Paolo Tranquilli
1b5675eb21
Kotlin/Bazel: tweak wrapper
2024-04-15 13:31:29 +02:00
Paolo Tranquilli
e53ef4acd2
Kotlin/Bazel: fix wrapper on Windows
2024-04-15 13:13:31 +02:00
Paolo Tranquilli
b07fa70133
Kotlin/Bazel: provide wrapper for managing versions of kotlinc
...
By adding `java/kotlinc-extractor/deps/dev` to `PATH`, one gets a
`kotlinc` wrapper that takes care of downloading and extracting the
desired version of `kotlinc` on demand. The desired version can be
selected with `kotlinc --select x.y.z`, or left to the current default
of `1.9.0`.
Moreover, this default version is integrated with the Bazel build, so
that when using this wrapper, changes in the selected version will be
picked up to define the default single version kotlin extractor build,
without needing to do anything else (like `bazel fetch --force` or
similar).
Selected and installed version data is stored in `.gitignore`d files
in the same directory, and can be cleared with `kotlinc --clear`.
2024-04-15 10:48:57 +02:00
Paolo Tranquilli
9d1901c049
Merge branch 'main' into redsun82/kotlin
2024-04-15 08:27:34 +02:00
Paolo Tranquilli
bdc8a7f59d
Revert "Use fetchexclude=* in .lfsconfig rather than fetchinclude"
...
This reverts commit a834101d7e .
Using `fetchinclude` allows for easier local customization of what to
fetch, because fetchexlude has precedence over fetchinclude.
2024-04-15 08:26:19 +02:00
Paolo Tranquilli
b36cabb396
Anchor .gitattributes entries at root where it makes sense
2024-04-12 16:04:15 +02:00
Paolo Tranquilli
92a5f3da75
Merge branch 'main' into redsun82/kotlin
2024-04-12 16:02:39 +02:00
Paolo Tranquilli
a78124b2d5
Bazel/Kotlin: use a wrapper to get the current kotlin version
2024-04-12 14:47:21 +02:00
Paolo Tranquilli
5c2d9fe9a1
Merge branch 'main' into redsun82/kotlin
2024-04-12 14:01:04 +02:00
Paolo Tranquilli
24c7ad5d28
Bazel/Kotlin: use plain kotlinc instead of result of repository_ctx.which
2024-04-12 14:00:46 +02:00
Paolo Tranquilli
0ad8ed3822
Kotlin/Bazel: use kotlinc.bat instead of kotlinc.exe on Windows
2024-04-12 12:15:26 +02:00
Paolo Tranquilli
65df2bb16d
Bazel/Kotlin: add .exe to kotlinc on windows
2024-04-12 11:56:33 +02:00
Paolo Tranquilli
b8010f27e7
Merge branch 'main' into redsun82/kotlin
2024-04-12 11:56:16 +02:00
Paolo Tranquilli
9114131128
Bazel: add settings required by internal repo
2024-04-12 11:19:43 +02:00
Paolo Tranquilli
2d16192bab
CI: fix typo in kotlin-build.yml
2024-04-12 11:19:43 +02:00
Paolo Tranquilli
9c3a615794
CI: add non-blocking kotlin extractor build check
...
This is to check that the build from `codeql` works. The "official"
build will still be checked from the internal repo with QLucie, once
we integrate the bazel build there.
2024-04-12 10:59:17 +02:00
Paolo Tranquilli
bc89742979
Kotlin: fix space indentation in OdasaOutput.java
2024-04-12 10:50:02 +02:00
Paolo Tranquilli
c64d02d6df
Undo .gitattributes formatting, move LFS entry
2024-04-12 10:44:18 +02:00
Paolo Tranquilli
a834101d7e
Use fetchexclude=* in .lfsconfig rather than fetchinclude
2024-04-12 10:41:46 +02:00
Paolo Tranquilli
4822de3313
Kotlin/Bazel: add fail printouts to _default_version
2024-04-12 10:19:10 +02:00
Paolo Tranquilli
b8c063ed2a
Merge branch 'main' into redsun82/kotlin
2024-04-12 08:19:14 +02:00
Paolo Tranquilli
fc62ed5af0
Kotlin/Bazel: port custom_plugin test to use bazel
2024-04-12 08:18:53 +02:00
Paolo Tranquilli
3d1465439a
Bazel/Kotlin: tentatively fix version detection on Windows
2024-04-11 17:39:09 +02:00
Paolo Tranquilli
59fdbdbb20
Kotlin/Bazel: move defaults to separate bazel package
...
This makes calling specific targets in `java/kotlin-extractor` not
depend on `@kotlin_extractor_defaults`, avoiding its overhead.
2024-04-11 17:31:37 +02:00
Paolo Tranquilli
7f495b1851
Bazel/kotlin: make version detection more robust
2024-04-11 17:17:57 +02:00
Paolo Tranquilli
c18b556f3d
Kotlin/Bazel: remove 2.0.255-SNAPSHOT version
2024-04-11 16:50:09 +02:00
Paolo Tranquilli
3b75d63c18
Merge branch 'main' into redsun82/kotlin
2024-04-11 16:40:57 +02:00
Paolo Tranquilli
54156650d7
Bazel/Kotlin: make _embeddable_source more robust
2024-04-11 16:40:37 +02:00
Paolo Tranquilli
f0fc8110a0
Bazel/Kotlin: add 2.0.0-RC1, remove 2.0.0-Beta4
2024-04-11 16:39:23 +02:00
Paolo Tranquilli
02257eead0
Bazel: use triple slash in --registry
...
`file://%workspace%` works on POSIX systems, but not on Windows.
`file:///` works on both.
2024-04-11 16:28:49 +02:00
Paolo Tranquilli
fe35902222
Merge branch 'main' into redsun82/kotlin
2024-04-11 15:07:39 +02:00
Paolo Tranquilli
24ef424d04
Merge branch 'main' into redsun82/kotlin
2024-04-10 16:57:30 +02:00
Paolo Tranquilli
5df1abcd26
Bazel/Kotlin: use "all" for extension metadata direct dependencies
2024-04-10 15:41:27 +02:00
Paolo Tranquilli
1a7f25af35
Merge pull request #16167 from github/redsun82/kotlin-patched-registry
...
Bazel: move patching of `rules_kotlin` to a registry override
2024-04-10 15:30:40 +02:00
Paolo Tranquilli
35a2ed87b6
Bazel/Kotlin: patch jdep emission
2024-04-10 15:29:44 +02:00
Paolo Tranquilli
a15681a181
Bazel: ease update of local registry
2024-04-10 13:22:18 +02:00
Paolo Tranquilli
5bdd724221
Bazel: move patching of rules_kotlin to a registry override
2024-04-10 13:22:18 +02:00
Paolo Tranquilli
c9565b3657
Bazel/Kotlin: fix version comparison logic, add default version printing
2024-04-10 11:29:58 +02:00
Paolo Tranquilli
aca8d047ca
Bazel: fix .bazelrc
2024-04-10 10:24:15 +02:00
Paolo Tranquilli
3bdab70451
Bazel: rename exported.bazelrc to .bazelrc.exported
...
This makes the `.bazelrc` files be near each other in the directory
listing.
2024-04-10 10:18:10 +02:00
Paolo Tranquilli
e7c680e963
Kotlin: reuse generated dbscheme in embeddable, and tweak comments
2024-04-09 16:33:17 +02:00
Paolo Tranquilli
662fd5c04a
Add explanatory comment to .lfsconfig
2024-04-09 15:48:23 +02:00
Paolo Tranquilli
9c73a9a1db
Bazel: move shared bazelrc settings to a exported.bazelrc file
...
This will be `importe`d by the `semmle-code` `.bazelrc` file.
2024-04-09 15:48:23 +02:00
Paolo Tranquilli
4b205ff96d
Apply suggestions from code review
...
Co-authored-by: Cornelius Riemenschneider <cornelius@github.com >
2024-04-09 14:44:44 +02:00
Paolo Tranquilli
11729aaf6e
Kotlin: add licensing links about kotlin dependencies
2024-04-09 13:55:30 +02:00
Paolo Tranquilli
4a4bd16eab
Java/Kotlin: prepare for internal bazel packaging
2024-04-09 13:27:27 +02:00
Paolo Tranquilli
b71ffc658b
Bazel: properly fix lfs smudge script
2024-04-08 15:22:54 +02:00
Paolo Tranquilli
60febcdf1e
Revert "Bazel: fix lfs to do checkout rather than smudging"
...
This reverts commit fd77f1a7cb .
2024-04-08 14:54:15 +02:00
Paolo Tranquilli
a970c2d11c
Kotlin: move empty zip from git to internal bazel repo rule
2024-04-08 14:37:53 +02:00
Paolo Tranquilli
e963b84a5a
Kotlin: fix error in building extractor from internal repo
2024-04-08 14:03:15 +02:00
Paolo Tranquilli
fd77f1a7cb
Bazel: fix lfs to do checkout rather than smudging
...
On Windows `git lfs smudge` was not working as expected.
2024-04-08 10:57:24 +02:00
Paolo Tranquilli
38a7bc0580
Bazel: optimize LFS to use symlinks when the file is not an LFS pointer
2024-04-08 09:26:19 +02:00
Paolo Tranquilli
7aefd22e34
Kotlin: tweak BUILD.bazel file, add documentation
2024-04-04 17:32:23 +02:00
Paolo Tranquilli
44f3c0289a
Kotlin: revert accidental modification of kotlin_plugin_versions.py
2024-04-04 17:31:40 +02:00
Paolo Tranquilli
cbdb1ebb5a
Merge branch 'main' into redsun82/kotlin
2024-04-04 16:56:07 +02:00
Paolo Tranquilli
3a0a219ce7
Kotlin: remove obsolete 1.4.32 version
2024-04-04 15:49:37 +02:00
Paolo Tranquilli
5d6baea174
Kotlin: add aliases for default versions
2024-04-04 15:34:48 +02:00
Paolo Tranquilli
55ff7109fa
Kotlin: support embeddable build in bazel
2024-04-04 12:53:14 +02:00
Paolo Tranquilli
5313288b8e
LFS: do non-matching fetchinclude rather than explicit fetchexclude
2024-04-04 11:02:29 +02:00
Paolo Tranquilli
47ff1c1ee6
Kotlin: working standalone extractor built with bazel
2024-04-04 10:23:26 +02:00
Paolo Tranquilli
c242466d31
Kotlin: first support for Kotlin extractor build
2024-04-03 16:30:57 +02:00
Paolo Tranquilli
341816c280
Kotlin: add dependencies as lazy LFS files
2024-04-03 08:35:34 +02:00
Paolo Tranquilli
0da4130bb9
Bazel: add LFS rules
2024-04-03 08:35:19 +02:00
amammad
102f09aa23
extend tests
2023-12-10 20:33:00 +01:00
amammad
18d0b28024
v1
2023-12-10 20:27:21 +01:00
amammad
1547cd0546
added inline tests, move to experimental dir
2023-12-05 18:59:46 +01:00
amammad
2c4d2d3069
Merge branch 'main' into amammad-js-CodeInjection_execa
2023-12-05 18:38:09 +01:00
amammad
67fb802f29
fix conflict
2023-12-05 18:37:50 +01:00
amammad
48a9b107b9
add query to detect strapi CVe too
2023-11-24 10:47:17 +01:00
amammad
5cc4206e00
add a temporary Query file to demonstrate unsuccessful usage of two DataFlow configs
2023-11-22 08:30:59 +01:00
amammad
0652afced3
update tests, updated qldoc and examples, upgrade all libraries to path-problem, update jsonwebtoken source and sinks
2023-11-07 08:25:25 +01:00
amammad
a9c8bc082f
delete CWE-321
2023-11-02 16:27:31 +01:00
amammad
faa483a282
move to CWE-347, update comments of tests
2023-11-02 16:24:58 +01:00
amammad
9da815a5c0
move to new CWE-321 directory, make saparate query files for each JWT pkg, create a path query for jsonwebtoken package which is not work correctly
2023-11-02 14:13:52 +01:00
amammad
ee4d87bd96
remove hardcoded JWT secret-key query
2023-10-19 11:57:53 +02:00
amammad
7891e64d3e
add sanitizers to hardcoded query
2023-10-17 10:37:27 +02:00
amammad
3899f2cdf3
upgrade execa scripts
2023-10-12 10:44:57 +02:00
amammad
261cabde67
better comments
2023-10-11 17:44:12 +02:00
amammad
b24c6fd579
for demonstration
2023-10-11 17:34:33 +02:00
amammad
de2ee4d289
stash I can't especify the argument and command differences with new API
2023-10-11 14:36:56 +02:00
amammad
4cd3618dcd
Merge branch 'main' into amammad-js-CodeInjection_execa
2023-10-11 13:27:26 +02:00
amammad
3f41a42c38
remove unused classes
2023-10-08 11:08:05 +02:00
amammad
15671682c5
remove unused flowLable, update path query alert message
2023-10-08 11:06:13 +02:00
amammad
00b6e1f0b0
fix tests
2023-10-08 11:03:19 +02:00
amammad
41e7b91d78
fix flowLabels
2023-10-08 11:00:07 +02:00
amammad
5bc21a6178
delete old tests
2023-10-06 16:09:05 +02:00
amammad
7d961e1af2
do review improvements
2023-10-06 16:07:10 +02:00
amammad
f41bc1f631
revert nodeJSLib
2023-09-28 20:37:21 +10:00
amammad
75f0fc4a98
fix a mistake
2023-09-28 20:34:58 +10:00
amammad
921198ed30
add separate query for sinks that accepts data: URL
2023-09-28 20:33:38 +10:00
amammad
f6737b3d90
fix FP
2023-09-25 21:09:19 +10:00
amammad
2c74dc23c9
add second order command execution sinks to tests
2023-09-22 20:00:36 +10:00
amammad
344869f0d7
change commandExecution sink to CodeInjection sink
2023-09-22 19:37:17 +10:00
amammad
a20ca78599
V1
2023-09-22 19:23:34 +10:00
amammad
06114d91d8
V1
2023-09-22 19:19:52 +10:00
amammad
7a577ddd98
change Source to ConstantString, it seems that we have some duplicate results now, ConstantString is suggested as a better alternative for finding constant sources
2023-08-30 20:47:43 +10:00
amammad
3f64cc82eb
fix qhelps
2023-08-29 22:42:21 +10:00
amammad
4f04dc8f6e
add test cases
2023-08-29 21:34:02 +10:00
amammad
65b97745c2
V1
2023-08-29 21:23:02 +10:00