Skip to content

fix: reject malformed NNTP OVER ranges instead of returning all articles#48

Merged
ralyodio merged 1 commit into
profullstack:mainfrom
threebeats:fix/nntp-malformed-range
Jun 22, 2026
Merged

fix: reject malformed NNTP OVER ranges instead of returning all articles#48
ralyodio merged 1 commit into
profullstack:mainfrom
threebeats:fix/nntp-malformed-range

Conversation

@threebeats

Copy link
Copy Markdown
Contributor

Fixes #45

parseRange(client input) returned most of the article space on malformed input. Empty range now.

Also fixed the same class of bug in the hyphenated range path where parts[0] parse error was silently ignored.

parseRange previously returned (0, MaxInt64) for unparseable input,
causing OVER/XOVER to deliver the full article overview instead of
returning an empty result. Now returns (0, 0) for any parse error.

Fixes profullstack#45
@ralyodio ralyodio merged commit 5f9d66e into profullstack:main Jun 22, 2026
5 checks passed
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

3 participants