Skip to main content

GLOB_MATCH_MAX_STEPS

Constant GLOB_MATCH_MAX_STEPS 

Source
pub const GLOB_MATCH_MAX_STEPS: u32 = 10_000;
Expand description

Maximum recursive match steps for one glob evaluation.

Protects against exponential backtracking from pathological patterns such as many * / ** tokens against long paths (#1924). When the budget is exhausted the match fails closed (returns false) instead of hanging.