Skip to content

Commit 5bb765d

Browse files
authored
Merge branch 'main' into brodes/seh_flow_phase1_throwing_models
2 parents 1c874d3 + e595151 commit 5bb765d

File tree

499 files changed

+9467
-3135
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

499 files changed

+9467
-3135
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Setup dotnet
3131
uses: actions/setup-dotnet@v4
3232
with:
33-
dotnet-version: 8.0.101
33+
dotnet-version: 9.0.100
3434

3535
- name: Checkout repository
3636
uses: actions/checkout@v4

.github/workflows/cpp-swift-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- name: "Build Swift extractor using Bazel"
4949
run: |
5050
bazel clean --expunge
51-
bazel run //swift:create-extractor-pack --nouse_action_cache --noremote_accept_cached --noremote_upload_local_results --spawn_strategy=local
51+
bazel run //swift:install --nouse_action_cache --noremote_accept_cached --noremote_upload_local_results --spawn_strategy=local
5252
bazel shutdown
5353
5454
- name: Perform CodeQL Analysis

.github/workflows/csharp-qltest.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ jobs:
3939
- name: Setup dotnet
4040
uses: actions/setup-dotnet@v4
4141
with:
42-
dotnet-version: 8.0.101
42+
dotnet-version: 9.0.100
4343
- name: Extractor unit tests
4444
run: |
4545
dotnet tool restore
46-
dotnet test -p:RuntimeFrameworkVersion=8.0.1 extractor/Semmle.Util.Tests
47-
dotnet test -p:RuntimeFrameworkVersion=8.0.1 extractor/Semmle.Extraction.Tests
48-
dotnet test -p:RuntimeFrameworkVersion=8.0.1 autobuilder/Semmle.Autobuild.CSharp.Tests
49-
dotnet test -p:RuntimeFrameworkVersion=8.0.1 autobuilder/Semmle.Autobuild.Cpp.Tests
46+
dotnet test -p:RuntimeFrameworkVersion=9.0.0 extractor/Semmle.Util.Tests
47+
dotnet test -p:RuntimeFrameworkVersion=9.0.0 extractor/Semmle.Extraction.Tests
48+
dotnet test -p:RuntimeFrameworkVersion=9.0.0 autobuilder/Semmle.Autobuild.CSharp.Tests
49+
dotnet test -p:RuntimeFrameworkVersion=9.0.0 autobuilder/Semmle.Autobuild.Cpp.Tests
5050
shell: bash
5151
stubgentest:
5252
runs-on: ubuntu-latest

Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

MODULE.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ bazel_dep(name = "nlohmann_json", version = "3.11.3", repo_name = "json")
2525
bazel_dep(name = "fmt", version = "10.0.0")
2626
bazel_dep(name = "rules_kotlin", version = "2.0.0-codeql.1")
2727
bazel_dep(name = "gazelle", version = "0.38.0")
28-
bazel_dep(name = "rules_dotnet", version = "0.16.1")
28+
bazel_dep(name = "rules_dotnet", version = "0.17.4")
2929
bazel_dep(name = "googletest", version = "1.14.0.bcr.1")
3030
bazel_dep(name = "rules_rust", version = "0.52.2")
3131

@@ -68,10 +68,10 @@ use_repo(py_deps, "vendor__anyhow-1.0.44", "vendor__cc-1.0.70", "vendor__clap-2.
6868
# deps for ruby+rust
6969
# keep in sync by running `misc/bazel/3rdparty/update_cargo_deps.sh`
7070
tree_sitter_extractors_deps = use_extension("//misc/bazel/3rdparty:tree_sitter_extractors_extension.bzl", "r")
71-
use_repo(tree_sitter_extractors_deps, "vendor__anyhow-1.0.93", "vendor__argfile-0.2.1", "vendor__chrono-0.4.38", "vendor__clap-4.5.20", "vendor__encoding-0.2.33", "vendor__figment-0.10.19", "vendor__flate2-1.0.34", "vendor__glob-0.3.1", "vendor__globset-0.4.15", "vendor__itertools-0.10.5", "vendor__itertools-0.13.0", "vendor__lazy_static-1.5.0", "vendor__log-0.4.22", "vendor__num-traits-0.2.19", "vendor__num_cpus-1.16.0", "vendor__proc-macro2-1.0.89", "vendor__quote-1.0.37", "vendor__ra_ap_base_db-0.0.232", "vendor__ra_ap_hir-0.0.232", "vendor__ra_ap_hir_def-0.0.232", "vendor__ra_ap_hir_expand-0.0.232", "vendor__ra_ap_ide_db-0.0.232", "vendor__ra_ap_load-cargo-0.0.232", "vendor__ra_ap_parser-0.0.232", "vendor__ra_ap_paths-0.0.232", "vendor__ra_ap_project_model-0.0.232", "vendor__ra_ap_span-0.0.232", "vendor__ra_ap_syntax-0.0.232", "vendor__ra_ap_vfs-0.0.232", "vendor__rand-0.8.5", "vendor__rayon-1.10.0", "vendor__regex-1.11.1", "vendor__serde-1.0.214", "vendor__serde_json-1.0.132", "vendor__serde_with-3.11.0", "vendor__stderrlog-0.6.0", "vendor__syn-2.0.87", "vendor__tracing-0.1.40", "vendor__tracing-subscriber-0.3.18", "vendor__tree-sitter-0.24.4", "vendor__tree-sitter-embedded-template-0.23.2", "vendor__tree-sitter-json-0.24.8", "vendor__tree-sitter-ql-0.23.1", "vendor__tree-sitter-ruby-0.23.1", "vendor__triomphe-0.1.14", "vendor__ungrammar-1.16.1")
71+
use_repo(tree_sitter_extractors_deps, "vendor__anyhow-1.0.93", "vendor__argfile-0.2.1", "vendor__chrono-0.4.38", "vendor__clap-4.5.20", "vendor__encoding-0.2.33", "vendor__figment-0.10.19", "vendor__flate2-1.0.34", "vendor__glob-0.3.1", "vendor__globset-0.4.15", "vendor__itertools-0.10.5", "vendor__itertools-0.13.0", "vendor__lazy_static-1.5.0", "vendor__log-0.4.22", "vendor__num-traits-0.2.19", "vendor__num_cpus-1.16.0", "vendor__proc-macro2-1.0.89", "vendor__quote-1.0.37", "vendor__ra_ap_base_db-0.0.232", "vendor__ra_ap_cfg-0.0.232", "vendor__ra_ap_hir-0.0.232", "vendor__ra_ap_hir_def-0.0.232", "vendor__ra_ap_hir_expand-0.0.232", "vendor__ra_ap_ide_db-0.0.232", "vendor__ra_ap_intern-0.0.232", "vendor__ra_ap_load-cargo-0.0.232", "vendor__ra_ap_parser-0.0.232", "vendor__ra_ap_paths-0.0.232", "vendor__ra_ap_project_model-0.0.232", "vendor__ra_ap_span-0.0.232", "vendor__ra_ap_syntax-0.0.232", "vendor__ra_ap_vfs-0.0.232", "vendor__rand-0.8.5", "vendor__rayon-1.10.0", "vendor__regex-1.11.1", "vendor__serde-1.0.214", "vendor__serde_json-1.0.132", "vendor__serde_with-3.11.0", "vendor__stderrlog-0.6.0", "vendor__syn-2.0.87", "vendor__tracing-0.1.40", "vendor__tracing-subscriber-0.3.18", "vendor__tree-sitter-0.24.4", "vendor__tree-sitter-embedded-template-0.23.2", "vendor__tree-sitter-json-0.24.8", "vendor__tree-sitter-ql-0.23.1", "vendor__tree-sitter-ruby-0.23.1", "vendor__triomphe-0.1.14", "vendor__ungrammar-1.16.1")
7272

7373
dotnet = use_extension("@rules_dotnet//dotnet:extensions.bzl", "dotnet")
74-
dotnet.toolchain(dotnet_version = "8.0.101")
74+
dotnet.toolchain(dotnet_version = "9.0.100")
7575
use_repo(dotnet, "dotnet_toolchains")
7676

7777
register_toolchains("@dotnet_toolchains//:all")

actions/BUILD.bazel

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,8 @@ load("//misc/bazel:pkg.bzl", "codeql_pack")
22

33
package(default_visibility = ["//visibility:public"])
44

5-
[
6-
codeql_pack(
7-
name = "-".join(parts),
8-
srcs = [
9-
"//actions/extractor",
10-
],
11-
pack_prefix = "/".join(parts),
12-
)
13-
for parts in (
14-
[
15-
"experimental",
16-
"actions",
17-
],
18-
["actions"],
19-
)
20-
]
5+
codeql_pack(
6+
name = "actions",
7+
srcs = ["//actions/extractor"],
8+
experimental = True,
9+
)

cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedElement.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ private predicate isInvalidFunction(Function func) {
196196
expr.getEnclosingFunction() = func and
197197
not exists(expr.getType())
198198
)
199+
or
200+
count(func.getEntryPoint().getLocation()) > 1
199201
}
200202

201203
/**
Lines changed: 0 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +0,0 @@
1-
test1.cpp:
2-
# 3| int foo(int)
3-
# 3| Block 0
4-
# 3| v3_1(void) = EnterFunction :
5-
test2.cpp:
6-
# 1| v3_1(void) = EnterFunction :
7-
test1.cpp:
8-
# 3| mu3_2(unknown) = AliasedDefinition :
9-
test2.cpp:
10-
# 1| mu3_2(unknown) = AliasedDefinition :
11-
test1.cpp:
12-
# 3| mu3_3(unknown) = InitializeNonLocal :
13-
test2.cpp:
14-
# 1| mu3_3(unknown) = InitializeNonLocal :
15-
test1.cpp:
16-
# 3| r3_4(glval<int>) = VariableAddress[i] :
17-
test2.cpp:
18-
# 1| r3_4(glval<int>) = VariableAddress[i] :
19-
test1.cpp:
20-
# 3| mu3_5(int) = InitializeParameter[i] : &:r1_4, &:r3_4
21-
test2.cpp:
22-
# 1| mu3_5(int) = InitializeParameter[i] : &:r1_4, &:r3_4
23-
#-----| Goto -> Block 2
24-
#-----| Goto -> Block 2
25-
26-
# 1| Block 0
27-
#-----| Goto -> Block 2
28-
#-----| Goto -> Block 2
29-
30-
test1.cpp:
31-
# 3| Block 1
32-
# 3| r3_6(glval<int>) = VariableAddress[#return] :
33-
test2.cpp:
34-
# 1| r3_6(glval<int>) = VariableAddress[#return] :
35-
test1.cpp:
36-
# 3| v3_7(void) = ReturnValue : &:r1_6, &:r3_6, ~m?
37-
test2.cpp:
38-
# 1| v3_7(void) = ReturnValue : &:r1_6, &:r3_6, ~m?
39-
test1.cpp:
40-
# 3| v3_8(void) = AliasedUse : ~m?
41-
test2.cpp:
42-
# 1| v3_8(void) = AliasedUse : ~m?
43-
test1.cpp:
44-
# 3| v3_9(void) = ExitFunction :
45-
test2.cpp:
46-
# 1| v3_9(void) = ExitFunction :
47-
48-
# 1| Block 1
49-
50-
test1.cpp:
51-
# 4| Block 2
52-
# 4| r4_1(glval<int>) = VariableAddress[#return] :
53-
# 4| r4_2(int) = Constant[42] :
54-
# 4| mu4_3(int) = Store[#return] : &:r4_1, r4_2
55-
#-----| Goto -> Block 1
56-
#-----| Goto -> Block 1
57-
58-
test2.cpp:
59-
# 2| Block 2
60-
# 2| r2_1(glval<int>) = VariableAddress[#return] :
61-
# 2| r2_2(glval<int>) = VariableAddress[i] :
62-
# 2| r2_3(int) = Load[i] : &:r2_2, ~m?
63-
# 2| mu2_4(int) = Store[#return] : &:r2_1, r2_3
64-
#-----| Goto -> Block 1
65-
#-----| Goto -> Block 1
66-
67-
# 1| int foo(int)

csharp/.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"isRoot": true,
44
"tools": {
55
"paket": {
6-
"version": "8.0.3",
6+
"version": "9.0.1",
77
"commands": [
88
"paket"
99
]

csharp/.paket/Paket.Restore.targets

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)