Skip to content

Commit

Permalink
Merge pull request #346 from lostsnow/fix/propagator-empty-target
Browse files Browse the repository at this point in the history
fixes propagator empty target taint range
  • Loading branch information
lostsnow authored Sep 5, 2022
2 parents 35597d6 + f2b2322 commit d9c2c0f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ private static void trackTaintRange(IastPropagatorModel propagator, MethodEvent
return;
}

if (!TaintPoolUtils.isNotEmpty(tgt)) {
return;
}

TaintRanges tr;
if (r != null && srcValue != null) {
tr = r.run(srcValue, tgtValue, event.argumentArray, oldTaintRanges, srcTaintRanges);
Expand Down

0 comments on commit d9c2c0f

Please sign in to comment.