diff options
author | Justus Winter <[email protected]> | 2016-07-26 16:29:01 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-07-26 16:37:37 +0000 |
commit | b2572b0c386fd12ac6581fcce72f8d48cbfd27c7 (patch) | |
tree | 562942c29a59deae8c35a79079562d8d9022ca9c /dirmngr/ldap-wrapper.c | |
parent | gpgscm: Do not shadow common function name in catch macro. (diff) | |
download | gnupg-b2572b0c386fd12ac6581fcce72f8d48cbfd27c7.tar.gz gnupg-b2572b0c386fd12ac6581fcce72f8d48cbfd27c7.zip |
common: Fix iobuf_peek corner case.
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 <[email protected]>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions