Parse and ParseNative accept arbitrarily long input and arbitrarily many constraints. The Ruby vers gem caps at 2048 characters and 64 constraints; this library has no equivalent bound, so a pathological range string allocates unbounded intervals.
Add limits (configurable on Parser, with the same defaults as the Ruby gem) and return an error when exceeded.
Split from #36.
ParseandParseNativeaccept arbitrarily long input and arbitrarily many constraints. The Rubyversgem caps at 2048 characters and 64 constraints; this library has no equivalent bound, so a pathological range string allocates unbounded intervals.Add limits (configurable on
Parser, with the same defaults as the Ruby gem) and return an error when exceeded.Split from #36.