mirror of
git://git.gnupg.org/gnupg.git
synced 2024-11-09 21:28:51 +01:00
b2572b0c38
Previously, iobuf_peek on a file smaller than 'buflen' would hang. * common/iobuf.c (underflow): Generalize by adding a target parameter. (iobuf_peek): Use this to prevent looping here. * tests/openpgp/Makefile.am (TESTS): Add new test. * tests/openpgp/setup.scm (dearmor): Move function... * tests/openpgp/defs.scm (dearmor): ... here. * tests/openpgp/issue2419.scm: New file. * tests/openpgp/samplemsgs/issue2419.asc: Likewise. GnuPG-bug-id: 2419 Signed-off-by: Justus Winter <justus@g10code.com>
8 lines
137 B
Plaintext
8 lines
137 B
Plaintext
-----BEGIN PGP ARMORED FILE-----
|
|
Version: GnuPG v2
|
|
Comment: Use "gpg --dearmor" for unpacking
|
|
|
|
AA==
|
|
=YWnT
|
|
-----END PGP ARMORED FILE-----
|