Reject malformed pagination cursor lengths #92
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/issue-91-cursor-length"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #91
Summary
Require pagination cursors to have the exact decoded payload-and-HMAC size. Overlong cursors are rejected as malformed before signature verification; underlength cursors remain rejected. The API keeps the documented cursor_expired response.
Verification
Scope
Changed files: src/api/pagination.rs and tests/issue45_pagination_tests.rs. No project-wide suite, formatter, or linter is claimed here.