Skip to content

Commit 84b69de

Browse files
authored
Merge branch 'main' into jcogs33/update-externalapi-charpredicate
2 parents 123fe5e + 636d5e3 commit 84b69de

File tree

329 files changed

+5777
-3455
lines changed

Some content is hidden

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

329 files changed

+5777
-3455
lines changed

.github/workflows/check-query-ids.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Check query IDs
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "**/src/**/*.ql"
7+
- misc/scripts/check-query-ids.py
8+
- .github/workflows/check-query-ids.yml
9+
branches:
10+
- main
11+
- "rc/*"
12+
workflow_dispatch:
13+
14+
jobs:
15+
check:
16+
name: Check query IDs
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Check for duplicate query IDs
21+
run: python3 misc/scripts/check-query-ids.py

.github/workflows/swift.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ jobs:
6565
if : ${{ github.event_name == 'pull_request' }}
6666
needs: build-and-test-macos
6767
runs-on: macos-12-xl
68+
timeout-minutes: 60
6869
steps:
6970
- uses: actions/checkout@v3
7071
- uses: ./swift/actions/run-integration-tests

config/identical-files.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,10 @@
470470
"javascript/ql/src/Comments/CommentedOutCodeReferences.inc.qhelp",
471471
"python/ql/src/Lexical/CommentedOutCodeReferences.inc.qhelp"
472472
],
473+
"ThreadResourceAbuse qhelp": [
474+
"java/ql/src/experimental/Security/CWE/CWE-400/LocalThreadResourceAbuse.qhelp",
475+
"java/ql/src/experimental/Security/CWE/CWE-400/ThreadResourceAbuse.qhelp"
476+
],
473477
"IDE Contextual Queries": [
474478
"cpp/ql/lib/IDEContextual.qll",
475479
"csharp/ql/lib/IDEContextual.qll",
@@ -537,6 +541,11 @@
537541
"ruby/ql/lib/codeql/ruby/frameworks/data/internal/ApiGraphModels.qll",
538542
"python/ql/lib/semmle/python/frameworks/data/internal/ApiGraphModels.qll"
539543
],
544+
"ApiGraphModelsExtensions": [
545+
"javascript/ql/lib/semmle/javascript/frameworks/data/internal/ApiGraphModelsExtensions.qll",
546+
"ruby/ql/lib/codeql/ruby/frameworks/data/internal/ApiGraphModelsExtensions.qll",
547+
"python/ql/lib/semmle/python/frameworks/data/internal/ApiGraphModelsExtensions.qll"
548+
],
540549
"TaintedFormatStringQuery Ruby/JS": [
541550
"javascript/ql/lib/semmle/javascript/security/dataflow/TaintedFormatStringQuery.qll",
542551
"ruby/ql/lib/codeql/ruby/security/TaintedFormatStringQuery.qll"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: minorAnalysis
3+
---
4+
* The `getaddrinfo` function is now recognized as a flow source.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: minorAnalysis
3+
---
4+
* The `scanf` and `fscanf` functions and their variants are now recognized as flow sources.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: minorAnalysis
3+
---
4+
* The `ArgvSource` flow source has been generalized to handle cases where the argument vector of `main` is not named `argv`.

cpp/ql/lib/semmle/code/cpp/models/Models.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ private import implementations.StdString
2727
private import implementations.Swap
2828
private import implementations.GetDelim
2929
private import implementations.SmartPointer
30-
private import implementations.Sscanf
30+
private import implementations.Scanf
3131
private import implementations.Send
3232
private import implementations.Recv
3333
private import implementations.Accept

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ private class Fread extends AliasFunction, RemoteFlowSourceFunction {
1515

1616
override predicate hasRemoteFlowSource(FunctionOutput output, string description) {
1717
output.isParameterDeref(0) and
18-
description = "String read by " + this.getName()
18+
description = "string read by " + this.getName()
1919
}
2020
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ private class GetDelimFunction extends TaintFunction, AliasFunction, SideEffectF
3636

3737
override predicate hasRemoteFlowSource(FunctionOutput output, string description) {
3838
output.isParameterDeref(0) and
39-
description = "String read by " + this.getName()
39+
description = "string read by " + this.getName()
4040
}
4141
}

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ private class FgetsFunction extends DataFlowFunction, TaintFunction, ArrayFuncti
4949

5050
override predicate hasRemoteFlowSource(FunctionOutput output, string description) {
5151
output.isParameterDeref(0) and
52-
description = "String read by " + this.getName()
52+
description = "string read by " + this.getName()
5353
or
5454
output.isReturnValue() and
55-
description = "String read by " + this.getName()
55+
description = "string read by " + this.getName()
5656
}
5757

5858
override predicate hasArrayWithVariableSize(int bufParam, int countParam) {
@@ -98,10 +98,10 @@ private class GetsFunction extends DataFlowFunction, ArrayFunction, AliasFunctio
9898

9999
override predicate hasLocalFlowSource(FunctionOutput output, string description) {
100100
output.isParameterDeref(0) and
101-
description = "String read by " + this.getName()
101+
description = "string read by " + this.getName()
102102
or
103103
output.isReturnValue() and
104-
description = "String read by " + this.getName()
104+
description = "string read by " + this.getName()
105105
}
106106

107107
override predicate hasArrayWithUnknownSize(int bufParam) { bufParam = 0 }

0 commit comments

Comments
 (0)