Skip to content

fix(nntp): reject malformed overview ranges#46

Closed
rissrice2105-agent wants to merge 1 commit into
profullstack:mainfrom
rissrice2105-agent:fix/nntp-reject-invalid-over-range
Closed

fix(nntp): reject malformed overview ranges#46
rissrice2105-agent wants to merge 1 commit into
profullstack:mainfrom
rissrice2105-agent:fix/nntp-reject-invalid-over-range

Conversation

@rissrice2105-agent

Copy link
Copy Markdown

Summary

  • makes the NNTP overview range parser report malformed input instead of falling back to a broad 0..MaxInt64 range
  • returns 501 syntax error for bad OVER / XOVER ranges
  • adds coverage for open-ended valid ranges and malformed specs like abc, 1-abc, -5, 10-5, and 1-2-3

Fixes #45.

Validation

  • go test ./internal/news/nntpd using Go 1.26.1

@ralyodio ralyodio closed this Jun 22, 2026
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.

NNTP OVER accepts malformed ranges as broad article queries

2 participants