Skip to content

Commit 408a38d

Browse files
committed
Java: Address review comment, include addFirst,addLast.
1 parent 0d45f0e commit 408a38d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ private predicate collectionAddition(Variable v, VarAccess coll, Expr e) {
9191
m.hasQualifiedName("java.util", "List", ["add", "addAll"]) and
9292
m.getNumberOfParameters() = 2 and
9393
arg = 1
94+
or
95+
m.hasQualifiedName("java.util", "SequencedCollection", ["addFirst", "addLast"]) and
96+
m.getNumberOfParameters() = 1 and
97+
arg = 0
9498
)
9599
or
96100
v.getAnAccess() = coll and

0 commit comments

Comments
 (0)