Skip to content

Commit 84fce27

Browse files
authored
Merge branch 'main' into experimental-archive-api
2 parents ef9442d + 4941143 commit 84fce27

File tree

5 files changed

+32
-2
lines changed

5 files changed

+32
-2
lines changed

csharp/ql/src/utils/model-generator/CaptureSinkModels.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @name Capture sink models.
3-
* @description Finds public methods that act as sinks as they flow into a a known sink.
3+
* @description Finds public methods that act as sinks as they flow into a known sink.
44
* @kind diagnostic
55
* @id cs/utils/model-generator/sink-models
66
* @tags model-generator

java/ql/src/utils/model-generator/CaptureSinkModels.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @name Capture sink models.
3-
* @description Finds public methods that act as sinks as they flow into a a known sink.
3+
* @description Finds public methods that act as sinks as they flow into a known sink.
44
* @kind diagnostic
55
* @id java/utils/model-generator/sink-models
66
* @tags model-generator
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* @name Library inputs
3+
* @description An input coming from the client of a library
4+
* @kind problem
5+
* @problem.severity recommendation
6+
* @id js/meta/alerts/library-inputs
7+
* @tags meta
8+
* @precision very-low
9+
*/
10+
11+
import javascript
12+
import semmle.javascript.PackageExports
13+
14+
select getALibraryInputParameter(), "Library input"

swift/ql/lib/codeql/swift/dataflow/internal/TaintTrackingPublic.qll

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,10 @@ predicate localExprTaint(DataFlowExpr e1, DataFlowExpr e2) {
2020
}
2121

2222
predicate localTaintStep = localTaintStepCached/2;
23+
24+
/**
25+
* Holds if default `TaintTracking::Configuration`s should allow implicit reads
26+
* of `c` at sinks and inputs to additional taint steps.
27+
*/
28+
bindingset[node]
29+
predicate defaultImplicitTaintRead(DataFlow::Node node, DataFlow::Content c) { none() }

swift/ql/src/queries/placeholder.ql

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**
2+
* @kind problem
3+
* @id swift/placeholder
4+
*/
5+
6+
import swift
7+
8+
from IntegerLiteralExpr lit
9+
select lit, "A literal"

0 commit comments

Comments
 (0)