str4d / rage

A simple, secure and modern file encryption tool (and Rust library) with small explicit keys, no config options, and UNIX-style composability.
https://age-encryption.org/v1
Apache License 2.0
2.68k stars 104 forks source link

age: Don't exit peeking state if entire identity file fits in the buffer #519

Closed str4d closed 2 months ago

str4d commented 2 months ago

This ensures we can call PeekableReader::reset when the file is a single line without a trailing newline character, which rage-keygen does not generate but users can.

Closes str4d/rage#484.

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 50.64%. Comparing base (d76c85d) to head (5a57e12). Report is 3 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #519 +/- ## ========================================== + Coverage 50.57% 50.64% +0.07% ========================================== Files 42 42 Lines 4117 4121 +4 ========================================== + Hits 2082 2087 +5 + Misses 2035 2034 -1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.