Skip to content

Commit a1e9564

Browse files
committed
Add more sources
1 parent b8b2de2 commit a1e9564

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,9 @@ class ApacheCommonsRandomStringSource extends RandomDataSource {
160160
ApacheCommonsRandomStringSource() {
161161
exists(Method m | m = this.getMethod() |
162162
m.getName().matches("random%") and
163-
m.getDeclaringType().hasQualifiedName("org.apache.commons.lang3", "RandomStringUtils")
163+
m.getDeclaringType()
164+
.hasQualifiedName(["org.apache.commons.lang3", "org.apache.commons.lang"],
165+
"RandomStringUtils")
164166
)
165167
}
166168

0 commit comments

Comments
 (0)