Skip to content

Commit a526b79

Browse files
author
Stephan Brandauer
committed
Java: enable unexploitable is/exists characteristics also for source candidates
1 parent f55d950 commit a526b79

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

java/ql/automodel/src/AutomodelApplicationModeCharacteristics.qll

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,6 @@ private class UnexploitableIsCharacteristic extends CharacteristicsImpl::NotASin
295295
UnexploitableIsCharacteristic() { this = "unexploitable (is-style boolean method)" }
296296

297297
override predicate appliesToEndpoint(Endpoint e) {
298-
e.getExtensibleType() = "sinkModel" and
299298
not ApplicationCandidatesImpl::isSink(e, _, _) and
300299
ApplicationModeGetCallable::getCallable(e).getName().matches("is%") and
301300
ApplicationModeGetCallable::getCallable(e).getReturnType() instanceof BooleanType
@@ -314,7 +313,6 @@ private class UnexploitableExistsCharacteristic extends CharacteristicsImpl::Not
314313
UnexploitableExistsCharacteristic() { this = "unexploitable (existence-checking boolean method)" }
315314

316315
override predicate appliesToEndpoint(Endpoint e) {
317-
e.getExtensibleType() = "sinkModel" and
318316
not ApplicationCandidatesImpl::isSink(e, _, _) and
319317
exists(Callable callable |
320318
callable = ApplicationModeGetCallable::getCallable(e) and

0 commit comments

Comments
 (0)