mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
shared: add locations to typetracking nodes
This commit is contained in:
@@ -4,7 +4,8 @@
|
||||
*/
|
||||
|
||||
private import internal.TypeTrackingImpl as Impl
|
||||
import Impl::Shared::TypeTracking<Impl::TypeTrackingInput>
|
||||
private import semmle.python.Files
|
||||
import Impl::Shared::TypeTracking<Location, Impl::TypeTrackingInput>
|
||||
private import semmle.python.dataflow.new.internal.DataFlowPublic as DataFlowPublic
|
||||
|
||||
/**
|
||||
|
||||
@@ -106,7 +106,7 @@ private module SummaryTypeTrackerInput implements SummaryTypeTracker::Input {
|
||||
|
||||
private module TypeTrackerSummaryFlow = SummaryTypeTracker::SummaryFlow<SummaryTypeTrackerInput>;
|
||||
|
||||
module TypeTrackingInput implements Shared::TypeTrackingInput {
|
||||
module TypeTrackingInput implements Shared::TypeTrackingInput<Location> {
|
||||
class Node = DataFlowPublic::Node;
|
||||
|
||||
class LocalSourceNode = DataFlowPublic::LocalSourceNode;
|
||||
@@ -318,9 +318,9 @@ module TypeTrackingInput implements Shared::TypeTrackingInput {
|
||||
capturedJumpStep(nodeFrom, nodeTo)
|
||||
}
|
||||
|
||||
predicate hasFeatureBacktrackStoreTarget() { any() }
|
||||
predicate hasFeatureBacktrackStoreTarget() { none() }
|
||||
|
||||
predicate nonStandardFlowsTo(LocalSourceNode localSource, Node dst) { localSource.flowsTo(dst) }
|
||||
}
|
||||
|
||||
import SharedImpl::TypeTracking<TypeTrackingInput>
|
||||
import SharedImpl::TypeTracking<Location, TypeTrackingInput>
|
||||
|
||||
Reference in New Issue
Block a user