Skip to content

Commit 6ba903b

Browse files
authored
Merge pull request #490 from lostsnow/fix/ignore-same-propagator-with-taint-range-change
fixes ignore same propagator taint when taint range was changed
2 parents 83cb1d9 + 4698a83 commit 6ba903b

File tree

1 file changed

+2
-1
lines changed
  • dongtai-core/src/main/java/io/dongtai/iast/core/handler/hookpoint/controller/impl

1 file changed

+2
-1
lines changed

dongtai-core/src/main/java/io/dongtai/iast/core/handler/hookpoint/controller/impl/PropagatorImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@ private static void addPropagator(PropagatorNode propagatorNode, MethodEvent eve
4545
Set<TaintPosition> sources = propagatorNode.getSources();
4646
Set<TaintPosition> targets = propagatorNode.getTargets();
4747

48-
// O => O || O => R, source equals target
48+
// O => O || O => R, source equals target and no change in taint range
4949
if (event.getSourceHashes().equals(event.getTargetHashes())
5050
&& sources.size() == 1 && targets.size() == 1
5151
&& TaintPosition.hasObject(sources)
52+
&& TaintCommandRunner.getCommandRunner(event.signature) == null
5253
) {
5354
if (TaintPosition.hasObject(targets) || TaintPosition.hasReturn(targets)) {
5455
return;

0 commit comments

Comments
 (0)