Skip to content

Commit 9b6e610

Browse files
committed
Merge remote-tracking branch 'origin/main' into nickrolfe/incomplete_sanitization
2 parents 08f6fbb + 3d109a4 commit 9b6e610

File tree

84 files changed

+3698
-1442
lines changed

Some content is hidden

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

84 files changed

+3698
-1442
lines changed

config/identical-files.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,8 @@
383383
"csharp/ql/test/TestUtilities/InlineExpectationsTest.qll",
384384
"java/ql/test/TestUtilities/InlineExpectationsTest.qll",
385385
"python/ql/test/TestUtilities/InlineExpectationsTest.qll",
386-
"ruby/ql/test/TestUtilities/InlineExpectationsTest.qll"
386+
"ruby/ql/test/TestUtilities/InlineExpectationsTest.qll",
387+
"ql/ql/test/TestUtilities/InlineExpectationsTest.qll"
387388
],
388389
"C++ ExternalAPIs": [
389390
"cpp/ql/src/Security/CWE/CWE-020/ExternalAPIs.qll",

cpp/ql/lib/semmle/code/cpp/AutogeneratedFile.qll

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ private int fileHeaderLimit(File f) {
8484
fc = fileFirstComment(f) and
8585
result =
8686
min(int line |
87+
// code ending the initial comments
8788
exists(DeclarationEntry de, Location l |
8889
l = de.getLocation() and
8990
l.getFile() = f and
@@ -105,7 +106,13 @@ private int fileHeaderLimit(File f) {
105106
line > fc
106107
)
107108
or
109+
// end of the file
108110
line = f.getMetrics().getNumberOfLines()
111+
or
112+
// rarely, we've seen extremely long sequences of initial comments
113+
// (and/or limitations in the above constraints) cause an overflow of
114+
// the maximum string length. So don't look past 1000 lines regardless.
115+
line = 1000
109116
)
110117
)
111118
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5047,6 +5047,7 @@ private module FlowExploration {
50475047
)
50485048
}
50495049

5050+
pragma[nomagic]
50505051
private predicate revPartialPathStep(
50515052
PartialPathNodeRev mid, NodeEx node, FlowState state, TRevSummaryCtx1 sc1, TRevSummaryCtx2 sc2,
50525053
TRevSummaryCtx3 sc3, RevPartialAccessPath ap, Configuration config

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5047,6 +5047,7 @@ private module FlowExploration {
50475047
)
50485048
}
50495049

5050+
pragma[nomagic]
50505051
private predicate revPartialPathStep(
50515052
PartialPathNodeRev mid, NodeEx node, FlowState state, TRevSummaryCtx1 sc1, TRevSummaryCtx2 sc2,
50525053
TRevSummaryCtx3 sc3, RevPartialAccessPath ap, Configuration config

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5047,6 +5047,7 @@ private module FlowExploration {
50475047
)
50485048
}
50495049

5050+
pragma[nomagic]
50505051
private predicate revPartialPathStep(
50515052
PartialPathNodeRev mid, NodeEx node, FlowState state, TRevSummaryCtx1 sc1, TRevSummaryCtx2 sc2,
50525053
TRevSummaryCtx3 sc3, RevPartialAccessPath ap, Configuration config

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5047,6 +5047,7 @@ private module FlowExploration {
50475047
)
50485048
}
50495049

5050+
pragma[nomagic]
50505051
private predicate revPartialPathStep(
50515052
PartialPathNodeRev mid, NodeEx node, FlowState state, TRevSummaryCtx1 sc1, TRevSummaryCtx2 sc2,
50525053
TRevSummaryCtx3 sc3, RevPartialAccessPath ap, Configuration config

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5047,6 +5047,7 @@ private module FlowExploration {
50475047
)
50485048
}
50495049

5050+
pragma[nomagic]
50505051
private predicate revPartialPathStep(
50515052
PartialPathNodeRev mid, NodeEx node, FlowState state, TRevSummaryCtx1 sc1, TRevSummaryCtx2 sc2,
50525053
TRevSummaryCtx3 sc3, RevPartialAccessPath ap, Configuration config

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5047,6 +5047,7 @@ private module FlowExploration {
50475047
)
50485048
}
50495049

5050+
pragma[nomagic]
50505051
private predicate revPartialPathStep(
50515052
PartialPathNodeRev mid, NodeEx node, FlowState state, TRevSummaryCtx1 sc1, TRevSummaryCtx2 sc2,
50525053
TRevSummaryCtx3 sc3, RevPartialAccessPath ap, Configuration config

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5047,6 +5047,7 @@ private module FlowExploration {
50475047
)
50485048
}
50495049

5050+
pragma[nomagic]
50505051
private predicate revPartialPathStep(
50515052
PartialPathNodeRev mid, NodeEx node, FlowState state, TRevSummaryCtx1 sc1, TRevSummaryCtx2 sc2,
50525053
TRevSummaryCtx3 sc3, RevPartialAccessPath ap, Configuration config

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5047,6 +5047,7 @@ private module FlowExploration {
50475047
)
50485048
}
50495049

5050+
pragma[nomagic]
50505051
private predicate revPartialPathStep(
50515052
PartialPathNodeRev mid, NodeEx node, FlowState state, TRevSummaryCtx1 sc1, TRevSummaryCtx2 sc2,
50525053
TRevSummaryCtx3 sc3, RevPartialAccessPath ap, Configuration config

0 commit comments

Comments
 (0)