Skip to content

Commit ec0bd44

Browse files
committed
Java: Add overrides to the interpretation of neutral MaD models.
1 parent cc63abf commit ec0bd44

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

java/ql/lib/semmle/code/java/dataflow/ExternalFlow.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ private predicate elementSpec(
416416
or
417417
summaryModel(package, type, subtypes, name, signature, ext, _, _, _, _, _)
418418
or
419-
neutralModel(package, type, name, signature, _, _) and ext = "" and subtypes = false
419+
neutralModel(package, type, name, signature, _, _) and ext = "" and subtypes = true
420420
}
421421

422422
private string getNestedName(Type t) {

java/ql/lib/semmle/code/java/dataflow/internal/FlowSummaryImpl.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module Input implements InputSig<Location, DataFlowImplSpecific::JavaDataFlow> {
3434
) {
3535
exists(string namespace, string type, string name, string signature |
3636
neutralModel(namespace, type, name, signature, kind, provenance) and
37-
c.asCallable() = interpretElement(namespace, type, false, name, signature, "", isExact)
37+
c.asCallable() = interpretElement(namespace, type, true, name, signature, "", isExact)
3838
)
3939
}
4040

java/ql/src/utils/modeleditor/ModelEditor.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class Endpoint extends Callable {
7777
predicate isNeutral() {
7878
exists(string namespace, string type, string name, string signature |
7979
neutralModel(namespace, type, name, signature, _, _) and
80-
this = interpretElement(namespace, type, false, name, signature, "", _)
80+
this = interpretElement(namespace, type, true, name, signature, "", _)
8181
)
8282
}
8383

0 commit comments

Comments
 (0)