Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 15089c4

Browse files
committed
Merge branch 'main' into modelclasses
2 parents 7012bc0 + 4bc287e commit 15089c4

6 files changed

Lines changed: 7 additions & 12 deletions

File tree

cpp/ql/src/Architecture/General Class-Level Information/ClassHierarchies.ql

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
* @kind graph
55
* @id cpp/architecture/class-hierarchies
66
* @graph.layout organic
7-
* @workingset jhotdraw
8-
* @result succeed 48
9-
* @result_ondemand succeed 48
107
* @tags maintainability
118
*/
129

cpp/ql/src/Architecture/General Class-Level Information/InheritanceDepthDistribution.ql

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
* @kind chart
55
* @id cpp/architecture/inheritance-depth-distribution
66
* @chart.type line
7-
* @workingset jhotdraw
8-
* @result succeed 48
9-
* @result_ondemand succeed 48
107
* @tags maintainability
118
*/
129

cpp/ql/src/Architecture/General Namespace-Level Information/GlobalNamespaceClasses.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/**
22
* @name Global namespace classes
33
* @description Finds classes that belong to no namespace.
4-
* @kind table
4+
* @kind problem
5+
* @problem.severity recommendation
56
* @id cpp/architecture/global-namespace-classes
67
* @tags maintainability
78
* modularity

cpp/ql/src/Architecture/Refactoring Opportunities/ClassesWithManyDependencies.ql

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
* @kind problem
55
* @id cpp/architecture/classes-with-many-dependencies
66
* @problem.severity recommendation
7-
* @workingset jhotdraw
8-
* @result succeed 20
9-
* @result_ondemand succeed 20
107
* @tags maintainability
118
* statistical
129
* non-attributable

docs/codeql/ql-language-reference/predicates.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,14 +226,16 @@ Here are a few examples of infinite predicates:
226226
Compilation errors:
227227
ERROR: "i" is not bound to a value.
228228
ERROR: "result" is not bound to a value.
229+
ERROR: expression "i * 4" is not bound to a value.
229230
*/
230231
int multiplyBy4(int i) {
231232
result = i * 4
232233
}
233234
234235
/*
235-
Compilation error:
236+
Compilation errors:
236237
ERROR: "str" is not bound to a value.
238+
ERROR: expression "str.length()" is not bound to a value.
237239
*/
238240
predicate shortString(string str) {
239241
str.length() < 10

java/ql/src/semmle/code/java/security/ExternalAPIs.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,9 @@ class ExternalAPIDataNode extends DataFlow::Node {
7575
m.getASourceOverriddenMethod() = call.getCallee().getSourceDeclaration() and
7676
m.fromSource()
7777
) and
78-
// Not already modeled as a taint step
78+
// Not already modeled as a taint step (we need both of these to handle `AdditionalTaintStep` subclasses as well)
7979
not exists(DataFlow::Node next | TaintTracking::localTaintStep(this, next)) and
80+
not exists(DataFlow::Node next | TaintTracking::defaultAdditionalTaintStep(this, next)) and
8081
// Not a call to a known safe external API
8182
not call.getCallee() instanceof SafeExternalAPIMethod
8283
}

0 commit comments

Comments
 (0)