Skip to content

Commit ffe6768

Browse files
authored
Merge branch 'main' into atorralba/java/command-injection-mad-sinks
2 parents 29d4b6f + 798f388 commit ffe6768

File tree

564 files changed

+6259
-8678
lines changed

Some content is hidden

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

564 files changed

+6259
-8678
lines changed

.github/labeler.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Go:
1111
- change-notes/**/*go.*
1212

1313
Java:
14-
- any: [ 'java/**/*', '!java/kotlin-extractor/**/*', '!java/kotlin-explorer/**/*', '!java/ql/test/kotlin/**/*' ]
14+
- any: [ 'java/**/*', '!java/kotlin-extractor/**/*', '!java/ql/test/kotlin/**/*' ]
1515
- change-notes/**/*java.*
1616

1717
JS:
@@ -20,7 +20,6 @@ JS:
2020

2121
Kotlin:
2222
- java/kotlin-extractor/**/*
23-
- java/kotlin-explorer/**/*
2423
- java/ql/test/kotlin/**/*
2524

2625
Python:

.github/workflows/csv-coverage-pr-artifacts.yml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
- "*/ql/src/**/*.qll"
1111
- "*/ql/lib/**/*.ql"
1212
- "*/ql/lib/**/*.qll"
13+
- "*/ql/lib/ext/**/*.yml"
1314
- "misc/scripts/library-coverage/*.py"
1415
# input data files
1516
- "*/documentation/library-coverage/cwe-sink.csv"

CODEOWNERS

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
/swift/ @github/codeql-swift
99
/misc/codegen/ @github/codeql-swift
1010
/java/kotlin-extractor/ @github/codeql-kotlin
11-
/java/kotlin-explorer/ @github/codeql-kotlin
1211

1312
# ML-powered queries
1413
/javascript/ql/experimental/adaptivethreatmodeling/ @github/codeql-ml-powered-queries-reviewers

config/identical-files.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,8 @@
511511
"SensitiveDataHeuristics Python/JS": [
512512
"javascript/ql/lib/semmle/javascript/security/internal/SensitiveDataHeuristics.qll",
513513
"python/ql/lib/semmle/python/security/internal/SensitiveDataHeuristics.qll",
514-
"ruby/ql/lib/codeql/ruby/security/internal/SensitiveDataHeuristics.qll"
514+
"ruby/ql/lib/codeql/ruby/security/internal/SensitiveDataHeuristics.qll",
515+
"swift/ql/lib/codeql/swift/security/internal/SensitiveDataHeuristics.qll"
515516
],
516517
"CFG": [
517518
"csharp/ql/lib/semmle/code/csharp/controlflow/internal/ControlFlowGraphImplShared.qll",
@@ -598,4 +599,4 @@
598599
"python/ql/lib/semmle/python/security/internal/EncryptionKeySizes.qll",
599600
"java/ql/lib/semmle/code/java/security/internal/EncryptionKeySizes.qll"
600601
]
601-
}
602+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
category: minorAnalysis
3+
---
4+
* Deleted the deprecated `hasCopyConstructor` predicate from the `Class` class in `Class.qll`.
5+
* Deleted many deprecated predicates and classes with uppercase `AST`, `SSA`, `CFG`, `API`, etc. in their names. Use the PascalCased versions instead.
6+
* Deleted the deprecated `CodeDuplication.qll` file.

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

-14
Original file line numberDiff line numberDiff line change
@@ -176,20 +176,6 @@ class Class extends UserType {
176176
/** Holds if this class, struct or union has a constructor. */
177177
predicate hasConstructor() { exists(this.getAConstructor()) }
178178

179-
/**
180-
* Holds if this class has a copy constructor that is either explicitly
181-
* declared (though possibly `= delete`) or is auto-generated, non-trivial
182-
* and called from somewhere.
183-
*
184-
* DEPRECATED: There is more than one reasonable definition of what it means
185-
* to have a copy constructor, and we do not want to promote one particular
186-
* definition by naming it with this predicate. Having a copy constructor
187-
* could mean that such a member is declared or defined in the source or that
188-
* it is callable by a particular caller. For C++11, there's also a question
189-
* of whether to include members that are defaulted or deleted.
190-
*/
191-
deprecated predicate hasCopyConstructor() { this.getAMemberFunction() instanceof CopyConstructor }
192-
193179
/**
194180
* Like accessOfBaseMember but returns multiple results if there are multiple
195181
* paths to `base` through the inheritance graph.

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

-12
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ class PrintAstConfiguration extends TPrintAstConfiguration {
2727
predicate shouldPrintFunction(Function func) { any() }
2828
}
2929

30-
/** DEPRECATED: Alias for PrintAstConfiguration */
31-
deprecated class PrintASTConfiguration = PrintAstConfiguration;
32-
3330
private predicate shouldPrintFunction(Function func) {
3431
exists(PrintAstConfiguration config | config.shouldPrintFunction(func))
3532
}
@@ -239,9 +236,6 @@ class PrintAstNode extends TPrintAstNode {
239236
}
240237
}
241238

242-
/** DEPRECATED: Alias for PrintAstNode */
243-
deprecated class PrintASTNode = PrintAstNode;
244-
245239
/**
246240
* Class that restricts the elements that we compute `qlClass` for.
247241
*/
@@ -286,19 +280,13 @@ abstract class BaseAstNode extends PrintAstNode {
286280
deprecated Locatable getAST() { result = this.getAst() }
287281
}
288282

289-
/** DEPRECATED: Alias for BaseAstNode */
290-
deprecated class BaseASTNode = BaseAstNode;
291-
292283
/**
293284
* A node representing an AST node other than a `DeclarationEntry`.
294285
*/
295286
abstract class AstNode extends BaseAstNode, TAstNode {
296287
AstNode() { this = TAstNode(ast) }
297288
}
298289

299-
/** DEPRECATED: Alias for AstNode */
300-
deprecated class ASTNode = AstNode;
301-
302290
/**
303291
* A node representing an `Expr`.
304292
*/

cpp/ql/lib/semmle/code/cpp/controlflow/SSA.qll

-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ library class StandardSsa extends SsaHelper {
1414
StandardSsa() { this = 0 }
1515
}
1616

17-
/** DEPRECATED: Alias for StandardSsa */
18-
deprecated class StandardSSA = StandardSsa;
19-
2017
/**
2118
* A definition of one or more SSA variables, including phi node definitions.
2219
* An _SSA variable_, as defined in the literature, is effectively the pair of

cpp/ql/lib/semmle/code/cpp/controlflow/SSAUtils.qll

-3
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,3 @@ library class SsaHelper extends int {
312312
ssa_use(v, result, _, _)
313313
}
314314
}
315-
316-
/** DEPRECATED: Alias for SsaHelper */
317-
deprecated class SSAHelper = SsaHelper;

cpp/ql/lib/semmle/code/cpp/controlflow/internal/CFG.qll

-9
Original file line numberDiff line numberDiff line change
@@ -1385,9 +1385,6 @@ private module Cached {
13851385
conditionalSuccessor(n1, _, n2)
13861386
}
13871387

1388-
/** DEPRECATED: Alias for qlCfgSuccessor */
1389-
deprecated predicate qlCFGSuccessor = qlCfgSuccessor/2;
1390-
13911388
/**
13921389
* Holds if `n2` is a control-flow node such that the control-flow
13931390
* edge `(n1, n2)` may be taken when `n1` is an expression that is true.
@@ -1398,9 +1395,6 @@ private module Cached {
13981395
not conditionalSuccessor(n1, false, n2)
13991396
}
14001397

1401-
/** DEPRECATED: Alias for qlCfgTrueSuccessor */
1402-
deprecated predicate qlCFGTrueSuccessor = qlCfgTrueSuccessor/2;
1403-
14041398
/**
14051399
* Holds if `n2` is a control-flow node such that the control-flow
14061400
* edge `(n1, n2)` may be taken when `n1` is an expression that is false.
@@ -1410,7 +1404,4 @@ private module Cached {
14101404
conditionalSuccessor(n1, false, n2) and
14111405
not conditionalSuccessor(n1, true, n2)
14121406
}
1413-
1414-
/** DEPRECATED: Alias for qlCfgFalseSuccessor */
1415-
deprecated predicate qlCFGFalseSuccessor = qlCfgFalseSuccessor/2;
14161407
}

0 commit comments

Comments
 (0)