File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
java/ql/lib/semmle/code/java/security Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -34,15 +34,6 @@ private predicate objectToString(MethodAccess ma) {
3434 )
3535}
3636
37- private class StringContainer extends RefType {
38- StringContainer ( ) {
39- this instanceof TypeString or
40- this instanceof StringBuildingType or
41- this .hasQualifiedName ( "java.util" , "StringTokenizer" ) or
42- this .( Array ) .getComponentType ( ) instanceof StringContainer
43- }
44- }
45-
4637/**
4738 * A taint-tracking configuration to reason about the use of potentially insecure cryptographic algorithms.
4839 */
@@ -53,7 +44,7 @@ module InsecureCryptoConfig implements DataFlow::ConfigSig {
5344
5445 predicate isBarrier ( DataFlow:: Node n ) {
5546 objectToString ( n .asExpr ( ) ) or
56- not n .getType ( ) .getErasure ( ) instanceof StringContainer
47+ n .getType ( ) .getErasure ( ) instanceof TypeObject
5748 }
5849}
5950
You can’t perform that action at this time.
0 commit comments