Skip to content

Commit 77d4af1

Browse files
author
Alex Eyers-Taylor
committed
Java: Make some query libraries local.
1 parent 18e33b1 commit 77d4af1

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

java/ql/lib/semmle/code/java/security/BrokenCryptoAlgorithmQuery.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ private class ShortStringLiteral extends StringLiteral {
1212
/**
1313
* A string literal that may refer to a broken or risky cryptographic algorithm.
1414
*/
15+
overlay[local?]
1516
class BrokenAlgoLiteral extends ShortStringLiteral {
1617
BrokenAlgoLiteral() {
1718
this.getValue().regexpMatch(getInsecureAlgorithmRegex()) and

java/ql/lib/semmle/code/java/security/StaticInitializationVectorQuery.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ private class StaticByteArrayCreation extends ArrayCreationExpr {
3333
}
3434

3535
/** An expression that updates `array`. */
36+
overlay[local?]
3637
private class ArrayUpdate extends Expr {
3738
Expr array;
3839

java/ql/lib/semmle/code/java/security/UrlForwardQuery.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ private class FollowsBarrierPrefix extends UrlForwardBarrier {
6969
FollowsBarrierPrefix() { this.asExpr() = any(BarrierPrefix fp).getAnAppendedExpression() }
7070
}
7171

72+
overlay[local?]
7273
private class BarrierPrefix extends InterestingPrefix {
7374
int offset;
7475

0 commit comments

Comments
 (0)