Skip to content

Commit

Permalink
fix(unprotectedCall): Copy the in state properly
Browse files Browse the repository at this point in the history
  • Loading branch information
jubnzv committed Dec 27, 2024
1 parent 5613d39 commit 9efa828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/detectors/builtin/unprotectedCall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class UnprotectedCallTransfer implements Transfer<TaintState> {
stmt: AstStatement,
): TaintState {
const out = {
argTaints: inState.argTaints,
argTaints: [...inState.argTaints],
};
this.processStatement(out, stmt);
return out;
Expand Down

0 comments on commit 9efa828

Please sign in to comment.