Skip to content

readpass: reject overlong stdin and TTY passphrases - #445

Open
tokenjunkielabs wants to merge 2 commits into
Tarsnap:masterfrom
woahwhattheheck:zz-sol-2315/readpass-overlong-upstream-20260920
Open

tokenjunkielabs wants to merge 2 commits into
Tarsnap:masterfrom
woahwhattheheck:zz-sol-2315/readpass-overlong-upstream-20260920

Conversation

@tokenjunkielabs

@tokenjunkielabs tokenjunkielabs commented Sep 21, 2026

Copy link
Copy Markdown

Reject passphrases which exceed the terminal/stdin read buffer instead of silently accepting a truncated prefix. The reader distinguishes an exact maximum-length line from a genuinely overlong one, drains CR-terminated input through end-of-line before confirmation, and applies the same rule to the confirmation read.

Bounty attribution

The first report was emailed to Colin before source publication. Under this repository's AGENTS.md, any bounty is for the report rather than the patch. This pull request is not a separate bounty claim; it is the focused source carrier supporting the existing first-reporter submission.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants