diff options
author | Wiktor Kwapisiewicz <wiktor@metacode.biz> | 2021-02-26 10:31:13 +0100 |
---|---|---|
committer | Wiktor Kwapisiewicz <wiktor@metacode.biz> | 2021-03-05 13:50:53 +0100 |
commit | 39539aa6105bc5e2173d211108be665495124aed (patch) | |
tree | 83f070334722168680c1306839913efe1cad1595 /openpgp/tests | |
parent | 945d75e15b99a440aff54e8be3fd16255da2dfbd (diff) |
openpgp: Fix panic when verifying signatures.
- Signatures with no layers generated panic at runtime as zeroth index
was not available.
- Make `Decryptor::from_buffered_reader` return Err when no layers are
available.
- Fixes #682.
Diffstat (limited to 'openpgp/tests')
-rw-r--r-- | openpgp/tests/data/messages/signature-with-broken-mpis.sig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/openpgp/tests/data/messages/signature-with-broken-mpis.sig b/openpgp/tests/data/messages/signature-with-broken-mpis.sig new file mode 100644 index 00000000..be4ab3c0 --- /dev/null +++ b/openpgp/tests/data/messages/signature-with-broken-mpis.sig @@ -0,0 +1,7 @@ +-----BEGIN PGP SIGNATURE----- + +iHUEARYIAB0WIQSHd0YfKgdOvEgNNZQZzByeCFsQegUCYDa9/wAKCRAZzByeCFsQ +eptbAP4r+RChXfvGaTNgG9iTUygu35EK+9FZX/5SeJ9GzMP+5gUAAG244XB4HazA +QQdXt6Lj55M7m0EeBbsKghZqnE6IgAY= +=SHhh +-----END PGP SIGNATURE-----
\ No newline at end of file |