aerc/lib/crypto/gpg/gpgbin
Moritz Poldrack 80f90c0d41 gpg: fix panic when signing an unparsable message
Fix the following error:

panic()
	runtime/panic.go:838
bytes.(*Buffer).ReadFrom()
	bytes/buffer.go:204
io.copyBuffer()
	io/io.go:412
io.Copy()
	io/io.go:385
git.sr.ht/~rjarry/aerc/lib/crypto/gpg/gpgbin.Sign()
	git.sr.ht/~rjarry/aerc/lib/crypto/gpg/gpgbin/sign.go:25
git.sr.ht/~rjarry/aerc/lib/crypto/gpg.(*Signer).Close()
	git.sr.ht/~rjarry/aerc/lib/crypto/gpg/writer.go:52
git.sr.ht/~rjarry/aerc/lib/crypto/gpg.multiCloser.Close()
	git.sr.ht/~rjarry/aerc/lib/crypto/gpg/writer.go:92
git.sr.ht/~rjarry/aerc/widgets.(*Composer).WriteMessage()
	git.sr.ht/~rjarry/aerc/widgets/compose.go:601
git.sr.ht/~rjarry/aerc/commands/compose.Send.Execute.func1()
	git.sr.ht/~rjarry/aerc/commands/compose/send.go:127

Fixes: https://todo.sr.ht/~rjarry/aerc/53
Signed-off-by: Moritz Poldrack <git@moritz.sh>
Acked-by: Tim Culverhouse <tim@timculverhouse.com>
2022-07-02 18:36:40 +02:00
..
decrypt.go gpg: fix error handling during decryption 2022-06-28 22:00:04 +02:00
encrypt.go gpg: don't send messages that failed encryption 2022-06-26 12:07:44 +02:00
gpgbin.go gpg: don't send messages that failed encryption 2022-06-26 12:07:44 +02:00
import.go feat: add gpg integration 2022-04-27 09:46:25 +02:00
keys.go pgp: add attach key command 2022-05-06 11:02:55 +02:00
sign.go gpg: fix panic when signing an unparsable message 2022-07-02 18:36:40 +02:00
verify.go feat: add gpg integration 2022-04-27 09:46:25 +02:00