Ticket #56 (defect)

Opened 4 years ago

openpgp --decrypt appears to enter a loop if given wrong passphrase

Status: new

Reported by: sion Assigned to: sion
Priority: normal Milestone:
Component: library Version:
Severity: normal Keywords:
Cc:

I made a key with a passphrase, and I encrypted a simple test file to that key.

then i use openpgp to try to decrypt it, and deliberately fed it the wrong passphrase.

It appears to enter into an infinite loop, gradually (slowly) increasing the amount of memory it consumes.

specifically, i ran:

openpgp --decrypt --file=test.gpg --homedir=testring --armour

where test.gpg contains an ascii-armored block of encrypted data.

when i supply the correct passphrase, openpgp completes as expected.

--dkg