Skip to content

Bound input length and constraint count in Parse/ParseNative #53

Description

@andrew

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions