Add core XML resource accounting #11

Closed
opened 2026-10-16 10:12:24 +00:00 by mmacia · 0 comments
Owner

Objective

Enforce parser resource budgets in core code before format callbacks retain data.

Scope

Account for XML events, nesting depth, attributes, attribute bytes, feed metadata bytes, current-item bytes, and parse timeout boundaries. Establish stable resource-limit errors and shared accounting used by every format.

Acceptance Criteria

  • Limits are checked incrementally before state is appended.
  • Format implementations cannot bypass shared limits.
  • Depth, event, attribute, metadata, and item budgets are configurable.
  • Oversized and pathological XML inputs fail deterministically.
  • Shared contract tests cover all built-in formats.
## Objective Enforce parser resource budgets in core code before format callbacks retain data. ## Scope Account for XML events, nesting depth, attributes, attribute bytes, feed metadata bytes, current-item bytes, and parse timeout boundaries. Establish stable resource-limit errors and shared accounting used by every format. ## Acceptance Criteria - Limits are checked incrementally before state is appended. - Format implementations cannot bypass shared limits. - Depth, event, attribute, metadata, and item budgets are configurable. - Oversized and pathological XML inputs fail deterministically. - Shared contract tests cover all built-in formats.
mmacia self-assigned this 2026-10-16 10:12:24 +00:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mmacia/feed_reader#11