Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decrypting zero-byte files #293

Open
Budsy opened this issue Jul 9, 2024 · 2 comments
Open

Decrypting zero-byte files #293

Budsy opened this issue Jul 9, 2024 · 2 comments
Assignees
Labels
bug investigate awaiting investigation

Comments

@Budsy
Copy link

Budsy commented Jul 9, 2024

With version 6.3.1 attemptying to decrypt an empty file will cause an exception. I haven't checked versions later than this. I get outside parties sending me empty files from time to time. Maybe the decryptor could just write out an empty file when it encounters these.

@mattosaurus
Copy link
Owner

Hi, thanks for raising this issue. I'll take a look next week. Writing out an empty file sounds like a good solution.

@mattosaurus mattosaurus self-assigned this Jul 12, 2024
@mattosaurus mattosaurus added bug investigate awaiting investigation labels Jul 12, 2024
@mattosaurus
Copy link
Owner

So I've created a PR to add some tests for encrypting/decrypting empty messages and they work as expected.

#294

Just to clarify, your issue is that you have a .pgp file with no content at all, rather than an encrypted empty string?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug investigate awaiting investigation
Projects
None yet
Development

No branches or pull requests

2 participants