Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e22a67e

Browse files
committed
Remove unnecessary methods
1 parent a3a4c31 commit e22a67e

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,9 @@ private predicate esapiIsValidData(Guard g, Expr e, boolean branch) {
5555
module TrustBoundaryConfig implements DataFlow::ConfigSig {
5656
predicate isSource(DataFlow::Node source) { source instanceof TrustBoundaryViolationSource }
5757

58-
predicate isAdditionalFlowStep(DataFlow::Node n1, DataFlow::Node n2) {
59-
n2.asExpr().(MethodAccess).getQualifier() = n1.asExpr()
60-
}
61-
6258
predicate isBarrier(DataFlow::Node node) {
6359
node instanceof TrustBoundaryValidationSanitizer or
64-
node.getType() instanceof HttpServletSession or
65-
node.asExpr()
66-
.(MethodAccess)
67-
.getMethod()
68-
.hasQualifiedName("javax.servlet.http", "HttpServletRequest", "getMethod")
60+
node.getType() instanceof HttpServletSession
6961
}
7062

7163
predicate isSink(DataFlow::Node sink) { sink instanceof TrustBoundaryViolationSink }

0 commit comments

Comments
 (0)