Skip to content

Sandbox: cap the output size of the format helper #772

Open

Description

@JuroOravec

Cap the size of the string the expression sandbox's format helper can produce (crates/citry_safe_eval). Today a format spec can ask for a very wide field, and the helper builds the whole string. The cap should sit far above anything a real template writes, and raise a clear error when hit.

Note: the helper cannot see "%d" % x-style formatting, so check that path separately.

Versioning: this refuses an expression citry-core 2.1.x runs, so the changelog must say so. Needs a citry-core release.

🤖 Generated with Claude Code

Activity

  1. added this to the 1.1.0 milestone on Nov 18, 2026
  2. added
    next-sprint
    on Nov 18, 2026
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

    next-sprint

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions