Skip to content

Commit d82e821

Browse files
authored
Merge branch 'main' into feat/JLL/depricated_bintray_usage
2 parents 73fba3a + 28d5ef9 commit d82e821

File tree

245 files changed

+14799
-7383
lines changed

Some content is hidden

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

245 files changed

+14799
-7383
lines changed

.github/workflows/generate-query-help-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
uses: ammaraskar/sphinx-action@8b4f60114d7fd1faeba1a712269168508d4750d2 # v0.4
5151
with:
5252
docs-folder: "query-help/"
53-
pre-build-command: "python -m pip install --upgrade recommonmark"
53+
pre-build-command: "python -m pip install --upgrade recommonmark && python -m pip install --upgrade sphinx-markdown-tables"
5454
build-command: "sphinx-build -b dirhtml . _build"
5555
- name: Upload HTML artifacts
5656
uses: actions/upload-artifact@v2

cpp/ql/src/Security/CWE/CWE-020/ExternalAPIsSpecific.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class UntrustedDataToExternalAPIConfig extends TaintTracking::Configuration {
4646
UntrustedDataToExternalAPIConfig() { this = "UntrustedDataToExternalAPIConfig" }
4747

4848
override predicate isSource(DataFlow::Node source) {
49-
exists(RemoteFlowFunction remoteFlow |
49+
exists(RemoteFlowSourceFunction remoteFlow |
5050
remoteFlow = source.asExpr().(Call).getTarget() and
5151
remoteFlow.hasRemoteFlowSource(_, _)
5252
)

cpp/ql/src/semmle/code/cpp/commons/Printf.qll

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@ predicate primitiveVariadicFormatter(
5353
(
5454
if type = "" then outputParamIndex = -1 else outputParamIndex = 0 // Conveniently, these buffer parameters are all at index 0.
5555
) and
56-
not exists(f.getBlock()) // exclude functions with an implementation in the snapshot as they may not be standard implementations.
56+
not (
57+
// exclude functions with an implementation in the snapshot source
58+
// directory, as they may not be standard implementations.
59+
exists(f.getBlock()) and
60+
exists(f.getFile().getRelativePath())
61+
)
5762
}
5863

5964
private predicate callsVariadicFormatter(

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowImpl.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3598,6 +3598,7 @@ private module FlowExploration {
35983598
or
35993599
exists(PartialPathNodeRev mid |
36003600
revPartialPathStep(mid, node, sc1, sc2, ap, config) and
3601+
not clearsContent(node, ap.getHead()) and
36013602
not fullBarrier(node, config) and
36023603
distSink(node.getEnclosingCallable(), config) <= config.explorationLimit()
36033604
)
@@ -3611,6 +3612,7 @@ private module FlowExploration {
36113612
exists(PartialPathNodeFwd mid |
36123613
partialPathStep(mid, node, cc, sc1, sc2, ap, config) and
36133614
not fullBarrier(node, config) and
3615+
not clearsContent(node, ap.getHead().getContent()) and
36143616
if node instanceof CastingNode
36153617
then compatibleTypes(getNodeType(node), ap.getType())
36163618
else any()

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowImpl2.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3598,6 +3598,7 @@ private module FlowExploration {
35983598
or
35993599
exists(PartialPathNodeRev mid |
36003600
revPartialPathStep(mid, node, sc1, sc2, ap, config) and
3601+
not clearsContent(node, ap.getHead()) and
36013602
not fullBarrier(node, config) and
36023603
distSink(node.getEnclosingCallable(), config) <= config.explorationLimit()
36033604
)
@@ -3611,6 +3612,7 @@ private module FlowExploration {
36113612
exists(PartialPathNodeFwd mid |
36123613
partialPathStep(mid, node, cc, sc1, sc2, ap, config) and
36133614
not fullBarrier(node, config) and
3615+
not clearsContent(node, ap.getHead().getContent()) and
36143616
if node instanceof CastingNode
36153617
then compatibleTypes(getNodeType(node), ap.getType())
36163618
else any()

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowImpl3.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3598,6 +3598,7 @@ private module FlowExploration {
35983598
or
35993599
exists(PartialPathNodeRev mid |
36003600
revPartialPathStep(mid, node, sc1, sc2, ap, config) and
3601+
not clearsContent(node, ap.getHead()) and
36013602
not fullBarrier(node, config) and
36023603
distSink(node.getEnclosingCallable(), config) <= config.explorationLimit()
36033604
)
@@ -3611,6 +3612,7 @@ private module FlowExploration {
36113612
exists(PartialPathNodeFwd mid |
36123613
partialPathStep(mid, node, cc, sc1, sc2, ap, config) and
36133614
not fullBarrier(node, config) and
3615+
not clearsContent(node, ap.getHead().getContent()) and
36143616
if node instanceof CastingNode
36153617
then compatibleTypes(getNodeType(node), ap.getType())
36163618
else any()

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowImpl4.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3598,6 +3598,7 @@ private module FlowExploration {
35983598
or
35993599
exists(PartialPathNodeRev mid |
36003600
revPartialPathStep(mid, node, sc1, sc2, ap, config) and
3601+
not clearsContent(node, ap.getHead()) and
36013602
not fullBarrier(node, config) and
36023603
distSink(node.getEnclosingCallable(), config) <= config.explorationLimit()
36033604
)
@@ -3611,6 +3612,7 @@ private module FlowExploration {
36113612
exists(PartialPathNodeFwd mid |
36123613
partialPathStep(mid, node, cc, sc1, sc2, ap, config) and
36133614
not fullBarrier(node, config) and
3615+
not clearsContent(node, ap.getHead().getContent()) and
36143616
if node instanceof CastingNode
36153617
then compatibleTypes(getNodeType(node), ap.getType())
36163618
else any()

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowImplLocal.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3598,6 +3598,7 @@ private module FlowExploration {
35983598
or
35993599
exists(PartialPathNodeRev mid |
36003600
revPartialPathStep(mid, node, sc1, sc2, ap, config) and
3601+
not clearsContent(node, ap.getHead()) and
36013602
not fullBarrier(node, config) and
36023603
distSink(node.getEnclosingCallable(), config) <= config.explorationLimit()
36033604
)
@@ -3611,6 +3612,7 @@ private module FlowExploration {
36113612
exists(PartialPathNodeFwd mid |
36123613
partialPathStep(mid, node, cc, sc1, sc2, ap, config) and
36133614
not fullBarrier(node, config) and
3615+
not clearsContent(node, ap.getHead().getContent()) and
36143616
if node instanceof CastingNode
36153617
then compatibleTypes(getNodeType(node), ap.getType())
36163618
else any()

cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/DataFlowImpl.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3598,6 +3598,7 @@ private module FlowExploration {
35983598
or
35993599
exists(PartialPathNodeRev mid |
36003600
revPartialPathStep(mid, node, sc1, sc2, ap, config) and
3601+
not clearsContent(node, ap.getHead()) and
36013602
not fullBarrier(node, config) and
36023603
distSink(node.getEnclosingCallable(), config) <= config.explorationLimit()
36033604
)
@@ -3611,6 +3612,7 @@ private module FlowExploration {
36113612
exists(PartialPathNodeFwd mid |
36123613
partialPathStep(mid, node, cc, sc1, sc2, ap, config) and
36133614
not fullBarrier(node, config) and
3615+
not clearsContent(node, ap.getHead().getContent()) and
36143616
if node instanceof CastingNode
36153617
then compatibleTypes(getNodeType(node), ap.getType())
36163618
else any()

cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/DataFlowImpl2.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3598,6 +3598,7 @@ private module FlowExploration {
35983598
or
35993599
exists(PartialPathNodeRev mid |
36003600
revPartialPathStep(mid, node, sc1, sc2, ap, config) and
3601+
not clearsContent(node, ap.getHead()) and
36013602
not fullBarrier(node, config) and
36023603
distSink(node.getEnclosingCallable(), config) <= config.explorationLimit()
36033604
)
@@ -3611,6 +3612,7 @@ private module FlowExploration {
36113612
exists(PartialPathNodeFwd mid |
36123613
partialPathStep(mid, node, cc, sc1, sc2, ap, config) and
36133614
not fullBarrier(node, config) and
3615+
not clearsContent(node, ap.getHead().getContent()) and
36143616
if node instanceof CastingNode
36153617
then compatibleTypes(getNodeType(node), ap.getType())
36163618
else any()

0 commit comments

Comments
 (0)