Skip to content

Commit 23344a7

Browse files
committed
Merge branch 'main' into redsun82/swift-linkage-awareness
2 parents 57ec5db + ae2fa6c commit 23344a7

File tree

421 files changed

+198800
-10758
lines changed

Some content is hidden

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

421 files changed

+198800
-10758
lines changed

.github/actions/fetch-codeql/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@ runs:
1919
gh extension install github/gh-codeql
2020
gh codeql set-channel "$CHANNEL"
2121
gh codeql version
22+
printf "CODEQL_FETCHED_CODEQL_PATH=" >> "${GITHUB_ENV}"
23+
gh codeql version --format=json | jq -r .unpackedLocation >> "${GITHUB_ENV}"
2224
gh codeql version --format=json | jq -r .unpackedLocation >> "${GITHUB_PATH}"

.github/dependabot.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,7 @@
11
version: 2
22
updates:
33
- package-ecosystem: "cargo"
4-
directory: "ruby/node-types"
5-
schedule:
6-
interval: "daily"
7-
- package-ecosystem: "cargo"
8-
directory: "ruby/generator"
9-
schedule:
10-
interval: "daily"
11-
- package-ecosystem: "cargo"
12-
directory: "ruby/extractor"
13-
schedule:
14-
interval: "daily"
15-
- package-ecosystem: "cargo"
16-
directory: "ruby/autobuilder"
4+
directory: "ruby"
175
schedule:
186
interval: "daily"
197

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ There is [extensive documentation](https://codeql.github.com/docs/) on getting s
1010

1111
We welcome contributions to our standard library and standard checks. Do you have an idea for a new check, or how to improve an existing query? Then please go ahead and open a pull request! Before you do, though, please take the time to read our [contributing guidelines](CONTRIBUTING.md). You can also consult our [style guides](https://github.com/github/codeql/tree/main/docs) to learn how to format your code for consistency and clarity, how to write query metadata, and how to write query help documentation for your query.
1212

13+
For information on contributing to CodeQL documentation, see the "[contributing guide](docs/codeql/CONTRIBUTING.md)" for docs.
14+
1315
## License
1416

1517
The code in this repository is licensed under the [MIT License](LICENSE) by [GitHub](https://github.com).

config/identical-files.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"csharp/ql/lib/semmle/code/csharp/dataflow/internal/DataFlowImplForContentDataFlow.qll",
3030
"go/ql/lib/semmle/go/dataflow/internal/DataFlowImpl.qll",
3131
"go/ql/lib/semmle/go/dataflow/internal/DataFlowImpl2.qll",
32+
"go/ql/lib/semmle/go/dataflow/internal/DataFlowImplForStringsNewReplacer.qll",
3233
"python/ql/lib/semmle/python/dataflow/new/internal/DataFlowImpl.qll",
3334
"python/ql/lib/semmle/python/dataflow/new/internal/DataFlowImpl2.qll",
3435
"python/ql/lib/semmle/python/dataflow/new/internal/DataFlowImpl3.qll",

cpp/ql/lib/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.5.1
2+
3+
No user-facing changes.
4+
15
## 0.5.0
26

37
### Breaking Changes
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## 0.5.1
2+
3+
No user-facing changes.

cpp/ql/lib/codeql-pack.release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
lastReleaseVersion: 0.5.0
2+
lastReleaseVersion: 0.5.1

cpp/ql/lib/qlpack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: codeql/cpp-all
2-
version: 0.5.1-dev
2+
version: 0.5.2-dev
33
groups: cpp
44
dbscheme: semmlecode.cpp.dbscheme
55
extractor: cpp

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/TaintTrackingUtil.qll

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -169,19 +169,11 @@ predicate defaultTaintSanitizer(DataFlow::Node node) { none() }
169169
*/
170170
predicate modeledTaintStep(Operand nodeIn, Instruction nodeOut) {
171171
exists(CallInstruction call, TaintFunction func, FunctionInput modelIn, FunctionOutput modelOut |
172-
(
173-
nodeIn = callInput(call, modelIn)
174-
or
175-
exists(int n |
176-
modelIn.isParameterDerefOrQualifierObject(n) and
177-
if n = -1
178-
then nodeIn = callInput(call, any(InQualifierObject inQualifier))
179-
else nodeIn = callInput(call, any(InParameter inParam | inParam.getIndex() = n))
180-
)
181-
) and
182-
nodeOut = callOutput(call, modelOut) and
183172
call.getStaticCallTarget() = func and
184173
func.hasTaintFlow(modelIn, modelOut)
174+
|
175+
nodeIn = callInput(call, modelIn) and
176+
nodeOut = callOutput(call, modelOut)
185177
)
186178
or
187179
// Taint flow from one argument to another and data flow from an argument to a

cpp/ql/lib/semmle/code/cpp/models/implementations/Iterator.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ private class IteratorAssignArithmeticOperatorModel extends IteratorAssignArithm
206206
input.isReturnValueDeref() and
207207
output.isParameterDeref(0)
208208
or
209-
input.isParameterDeref(1) and
209+
(input.isParameter(1) or input.isParameterDeref(1)) and
210210
output.isParameterDeref(0)
211211
}
212212
}
@@ -305,7 +305,7 @@ private class IteratorAssignArithmeticMemberOperator extends MemberFunction, Dat
305305
input.isReturnValueDeref() and
306306
output.isQualifierObject()
307307
or
308-
input.isParameterDeref(0) and
308+
(input.isParameter(0) or input.isParameterDeref(0)) and
309309
output.isQualifierObject()
310310
}
311311
}

0 commit comments

Comments
 (0)