File tree Expand file tree Collapse file tree
csharp/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 csharp
2- import semmle.code.csharp.dataflow.TaintTracking
36import semmle.code.csharp.dataflow.ExternalFlow
7+ import semmle.code.csharp.dataflow.TaintTracking
8+ import semmle.code.csharp.dataflow.internal.DataFlowImplCommon
9+ import semmle.code.csharp.dataflow.internal.DataFlowPrivate
410import ModelGeneratorUtils
511
12+ /**
13+ * Gets the enclosing callable of `ret`.
14+ */
15+ Callable returnNodeEnclosingCallable ( ReturnNodeExt ret ) { result = getNodeEnclosingCallable ( ret ) }
16+
17+ /**
18+ * Holds if `node` is an own instance access.
19+ */
20+ predicate isOwnInstanceAccessNode ( ReturnNode node ) { node .asExpr ( ) instanceof ThisAccess }
21+
22+ /**
23+ * Gets the CSV string representation of the qualifier.
24+ */
25+ string qualifierString ( ) { result = "Argument[Qualifier]" }
26+
627class PropagateToSinkConfigurationSpecific extends TaintTracking:: Configuration {
728 PropagateToSinkConfigurationSpecific ( ) { this = "parameters or fields flowing into sinks" }
829
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments