Skip to content

Commit

Permalink
JS: Restrict AP length in prototype-polluting function
Browse files Browse the repository at this point in the history
  • Loading branch information
asgerf committed Jan 6, 2025
1 parent 7ccb476 commit 0cdda87
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,12 @@ module PropNameTrackingConfig implements DataFlow::StateConfigSig {
node instanceof DataFlow::VarAccessBarrier or
node = DataFlow::MakeBarrierGuard<BarrierGuard>::getABarrierNode()
}

int accessPathLimit() {
// Speed up the query. For the pattern we're looking for the value rarely
// flows through any contents, apart from a capture content.
result = 1
}
}

class FlowState = PropNameTrackingConfig::FlowState;
Expand Down

0 comments on commit 0cdda87

Please sign in to comment.