1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00
Justus Winter b2572b0c38 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 <justus@g10code.com>
2016-07-26 18:37:37 +02:00
..
2015-11-17 12:50:22 +01:00
2015-11-17 12:50:22 +01:00
2015-12-21 11:37:21 +01:00
2016-06-28 18:21:50 +02:00
2015-10-28 10:20:17 +01:00
2015-11-17 12:50:22 +01:00
2016-06-28 15:01:57 +02:00
2016-07-26 14:49:02 +02:00
2015-12-21 11:37:21 +01:00
2016-06-28 15:53:59 +02:00
2016-06-28 15:53:59 +02:00
2013-11-18 14:09:47 +01:00
2015-11-17 12:50:22 +01:00
2016-06-08 15:14:06 +02:00
2015-11-17 12:50:22 +01:00
2016-07-26 18:37:37 +02:00
2015-11-17 12:50:22 +01:00
2016-04-29 11:04:04 +02:00
2015-03-17 09:18:23 +01:00
2016-03-02 14:27:30 +01:00
2016-07-02 16:18:50 +02:00
2015-11-17 12:50:22 +01:00
2015-11-17 12:50:22 +01:00
2016-06-30 18:50:16 +02:00
2016-05-31 15:51:18 +02:00
2016-06-28 18:21:50 +02:00
2016-06-28 18:21:50 +02:00
2016-06-28 18:21:50 +02:00
2016-06-28 18:21:50 +02:00
2016-06-28 18:21:50 +02:00
2015-11-17 12:50:22 +01:00
2016-06-28 18:21:50 +02:00
2016-06-28 18:21:50 +02:00
2014-11-11 15:14:31 +01:00
2015-11-17 12:50:22 +01:00
2015-02-03 09:12:45 +01:00
2015-10-30 12:33:40 +01:00

Common functionality used by all modules of GnuPG.