Skip to content

Conversation

@sneurlax
Copy link

@sneurlax sneurlax commented Jul 9, 2025

This PR:

  1. Adds the bounds constant MAX_STANZAS_PER_PHASE = 1024 to limit the number of stanzas per phase.
  2. Modified the validate function to return io::Result<()> and check bounds before adding to vectors.
  3. Returns an error if the number of stanzas exceeds the limit.
  4. Updated all validate calls to propagate errors using ? while also preventing unbounded error vector growth.

Closes #578

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unbounded vector growth in stanza collection

1 participant