Skip to content

Commit 051da9d

Browse files
authored
Merge branch 'main' into rustanalyzerdoc
2 parents 32131cf + 59fc7aa commit 051da9d

File tree

108 files changed

+12927
-7624
lines changed

Some content is hidden

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

108 files changed

+12927
-7624
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Setup dotnet
3535
uses: actions/setup-dotnet@v4
3636
with:
37-
dotnet-version: 9.0.100
37+
dotnet-version: 9.0.300
3838

3939
- name: Checkout repository
4040
uses: actions/checkout@v5

.github/workflows/csharp-qltest.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ jobs:
4343
- name: Setup dotnet
4444
uses: actions/setup-dotnet@v4
4545
with:
46-
dotnet-version: 9.0.100
46+
dotnet-version: 9.0.300
4747
- name: Extractor unit tests
4848
run: |
4949
dotnet tool restore
50-
dotnet test -p:RuntimeFrameworkVersion=9.0.0 extractor/Semmle.Util.Tests
51-
dotnet test -p:RuntimeFrameworkVersion=9.0.0 extractor/Semmle.Extraction.Tests
52-
dotnet test -p:RuntimeFrameworkVersion=9.0.0 autobuilder/Semmle.Autobuild.CSharp.Tests
53-
dotnet test -p:RuntimeFrameworkVersion=9.0.0 autobuilder/Semmle.Autobuild.Cpp.Tests
50+
dotnet test -p:RuntimeFrameworkVersion=9.0.5 extractor/Semmle.Util.Tests
51+
dotnet test -p:RuntimeFrameworkVersion=9.0.5 extractor/Semmle.Extraction.Tests
52+
dotnet test -p:RuntimeFrameworkVersion=9.0.5 autobuilder/Semmle.Autobuild.CSharp.Tests
53+
dotnet test -p:RuntimeFrameworkVersion=9.0.5 autobuilder/Semmle.Autobuild.Cpp.Tests
5454
shell: bash
5555
stubgentest:
5656
runs-on: ubuntu-latest

MODULE.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ bazel_dep(name = "nlohmann_json", version = "3.11.3", repo_name = "json")
2626
bazel_dep(name = "fmt", version = "10.0.0")
2727
bazel_dep(name = "rules_kotlin", version = "2.1.3-codeql.1")
2828
bazel_dep(name = "gazelle", version = "0.40.0")
29-
bazel_dep(name = "rules_dotnet", version = "0.17.4")
29+
bazel_dep(name = "rules_dotnet", version = "0.19.2-codeql.1")
3030
bazel_dep(name = "googletest", version = "1.14.0.bcr.1")
3131
bazel_dep(name = "rules_rust", version = "0.63.0")
3232
bazel_dep(name = "zstd", version = "1.5.5.bcr.1")
@@ -172,7 +172,7 @@ http_archive(
172172
)
173173

174174
dotnet = use_extension("@rules_dotnet//dotnet:extensions.bzl", "dotnet")
175-
dotnet.toolchain(dotnet_version = "9.0.100")
175+
dotnet.toolchain(dotnet_version = "9.0.300")
176176
use_repo(dotnet, "dotnet_toolchains")
177177

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

cpp/ql/src/Critical/ScanfChecks.qll

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,9 @@ private import semmle.code.cpp.controlflow.IRGuards
44
private import semmle.code.cpp.ir.ValueNumbering
55

66
private predicate exprInBooleanContext(Expr e) {
7-
exists(IRGuardCondition gc |
8-
exists(Instruction i |
9-
i.getUnconvertedResultExpression() = e and
10-
gc.comparesEq(valueNumber(i).getAUse(), 0, _, _)
11-
)
12-
or
13-
gc.getUnconvertedResultExpression() = e
7+
exists(IRGuardCondition gc, Instruction i |
8+
i.getUnconvertedResultExpression() = e and
9+
gc.comparesEq(valueNumber(i).getAUse(), 0, _, _)
1410
)
1511
}
1612

@@ -36,20 +32,18 @@ private string getEofValue() {
3632
* Holds if the value of `call` has been checked to not equal `EOF`.
3733
*/
3834
private predicate checkedForEof(ScanfFunctionCall call) {
39-
exists(IRGuardCondition gc |
40-
exists(CallInstruction i | i.getUnconvertedResultExpression() = call |
41-
exists(int val | gc.comparesEq(valueNumber(i).getAUse(), val, _, _) |
42-
// call == EOF
43-
val = getEofValue().toInt()
44-
or
45-
// call == [any positive number]
46-
val > 0
47-
)
35+
exists(IRGuardCondition gc, CallInstruction i | i.getUnconvertedResultExpression() = call |
36+
exists(int val | gc.comparesEq(valueNumber(i).getAUse(), val, _, _) |
37+
// call == EOF
38+
val = getEofValue().toInt()
4839
or
49-
exists(int val | gc.comparesLt(valueNumber(i).getAUse(), val, true, _) |
50-
// call < [any non-negative number] (EOF is guaranteed to be negative)
51-
val >= 0
52-
)
40+
// call == [any positive number]
41+
val > 0
42+
)
43+
or
44+
exists(int val | gc.comparesLt(valueNumber(i).getAUse(), val, true, _) |
45+
// call < [any non-negative number] (EOF is guaranteed to be negative)
46+
val >= 0
5347
)
5448
)
5549
}

csharp/actions/create-extractor-pack/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ runs:
77
- name: Setup dotnet
88
uses: actions/setup-dotnet@v4
99
with:
10-
dotnet-version: 9.0.100
10+
dotnet-version: 9.0.300
1111
- name: Build Extractor
1212
shell: bash
1313
run: scripts/create-extractor-pack.sh

csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/DotNet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public IList<string> GetNugetFeedsFromFolder(string folderPath)
138138
}
139139

140140
// The version number should be kept in sync with the version .NET version used for building the application.
141-
public const string LatestDotNetSdkVersion = "9.0.100";
141+
public const string LatestDotNetSdkVersion = "9.0.300";
142142

143143
/// <summary>
144144
/// Returns a script for downloading relevant versions of the

csharp/paket.main_extension.bzl

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"sdk": {
3-
"version": "9.0.100"
3+
"version": "9.0.304"
44
}
5-
}
5+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"sdk": {
3-
"version": "9.0.100"
3+
"version": "9.0.304"
44
}
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"sdk": {
3-
"version": "9.0.100"
3+
"version": "9.0.304"
44
}
55
}

0 commit comments

Comments
 (0)