Closed CodingDepot closed 2 months ago
Attention: Patch coverage is 88.09524%
with 5 lines
in your changes missing coverage. Please review.
Project coverage is 77.58%. Comparing base (
c14fbcd
) to head (736ce13
). Report is 1 commits behind head on main.
Files with missing lines | Patch % | Lines |
---|---|---|
.../backends/cpg/coko/evaluators/ArgumentEvaluator.kt | 86.84% | 1 Missing and 4 partials :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This PR adds an
ArgumentOrigin
evaluator to Coko that verifies the origin of an argument. It finds instances of the targetOp
and checks whether the argument at the specified position was produced by a call of the originOp
.It also makes sure that the value of the argument was not changed between the origin call and the target call.
This evaluator is useful when you have a trusted method whose return value should be used as input to another method in all cases. (e.g. always use SecureRandom.getInstanceStrong() as RNG source)