File tree Expand file tree Collapse file tree
java/ql/src/utils/model-generator Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 * and sink models of the Standard or a 3rd party library.
44 */
55
6- private import CaptureSummaryModelsSpecific
7- private import CaptureSinkModelsSpecific
8- private import CaptureSourceModelsSpecific
6+ private import CaptureModelsSpecific
97private import ModelGeneratorUtils
108
119/**
Original file line number Diff line number Diff line change 1+ /**
2+ * Provides predicates related to capturing summary models of the Standard or a 3rd party library.
3+ */
4+
15import java
2- import semmle.code.java.dataflow.TaintTracking
36import semmle.code.java.dataflow.ExternalFlow
7+ import semmle.code.java.dataflow.TaintTracking
8+ import semmle.code.java.dataflow.internal.DataFlowImplCommon
9+ import semmle.code.java.dataflow.internal.DataFlowNodes
10+ import semmle.code.java.dataflow.internal.DataFlowPrivate
11+ import semmle.code.java.dataflow.InstanceAccess
412import ModelGeneratorUtils
513
14+ /**
15+ * Gets the enclosing callable of `ret`.
16+ */
17+ Callable returnNodeEnclosingCallable ( ReturnNodeExt ret ) {
18+ result = getNodeEnclosingCallable ( ret ) .asCallable ( )
19+ }
20+
21+ /**
22+ * Holds if `node` is an own instance access.
23+ */
24+ predicate isOwnInstanceAccessNode ( ReturnNode node ) {
25+ node .asExpr ( ) .( ThisAccess ) .isOwnInstanceAccess ( )
26+ }
27+
28+ /**
29+ * Gets the CSV string representation of the qualifier.
30+ */
31+ string qualifierString ( ) { result = "Argument[-1]" }
32+
633class PropagateToSinkConfigurationSpecific extends TaintTracking:: Configuration {
734 PropagateToSinkConfigurationSpecific ( ) { this = "parameters or fields flowing into sinks" }
835
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments