1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-23 10:29:58 +01:00
Werner Koch 35e40e2d51 gpg: Limit the nesting level of I/O filters.
* common/iobuf.c (MAX_NESTING_FILTER): New.
(iobuf_push_filter2): Limit the nesting level.

* g10/mainproc.c (mainproc_context): New field ANY.  Change HAVE_DATA
and ANY_SIG_SIGN to bit fields of ANY.  Add bit field
UNCOMPRESS_FAILED.
(proc_compressed): Avoid printing multiple Bad Data messages.
(check_nesting): Return GPG_ERR_BAD_DATA instead of UNEXPECTED_DATA.
--

This is a more general fix for the nested compression packet bug.  In
particular this helps g10/import.c:read_block to stop pushing
compression filters onto an iobuf stream.  This patch also reduces the
number of error messages for the non-import case.

Signed-off-by: Werner Koch <wk@gnupg.org>
2013-10-04 08:20:49 +02:00
..
2009-12-03 19:39:39 +00:00
2009-12-03 19:39:39 +00:00
2008-04-07 19:31:12 +00:00
2007-07-04 19:49:40 +00:00
2009-12-08 12:43:27 +00:00
2007-07-04 19:49:40 +00:00
2007-08-22 10:55:07 +00:00
2009-03-16 09:44:44 +00:00
2007-07-04 19:49:40 +00:00
2007-07-04 19:49:40 +00:00
2007-07-04 19:49:40 +00:00
2007-07-04 19:49:40 +00:00
2007-07-04 19:49:40 +00:00
2007-07-04 19:49:40 +00:00
2007-07-04 19:49:40 +00:00
2007-07-04 19:49:40 +00:00
2011-08-04 12:22:04 +02:00
2007-07-04 19:49:40 +00:00
2011-01-10 15:16:07 +01:00
2009-07-01 18:30:33 +00:00
2007-07-04 19:49:40 +00:00
2007-07-04 19:49:40 +00:00
2013-07-01 20:31:16 +02:00
2012-01-31 15:14:20 +01:00
2013-07-03 13:29:47 +02:00
2013-07-03 13:29:47 +02:00
2011-08-04 14:42:31 +02:00
2007-08-23 08:40:11 +00:00
2013-08-19 13:08:37 +02:00
2007-07-04 19:49:40 +00:00

Stuff used by several modules of GnuPG.

These directories use it:

gpg
sm
agent

These directories don't use it:

kbx