1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-09 12:54:23 +01:00
Werner Koch e6175055fb 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>
(cherry picked from commit 35e40e2d514223c950c2f6d1214e02e92d87e997)

Resolved conflicts:
	common/iobuf.c
	g10/mainproc.c
2013-10-04 14:05:59 +02:00
..
2011-02-04 12:57:53 +01:00
2007-07-04 19:49:40 +00:00
2012-04-26 09:52:25 +02:00
2013-08-01 19:54:11 +02:00
2011-02-04 12:57:53 +01:00
2007-07-04 19:49:40 +00:00
2012-11-20 19:03:49 +01:00
2012-11-20 19:03:49 +01:00
2012-12-12 18:47:21 +01:00
2013-01-30 18:51:56 +01:00
2012-03-27 19:46:20 +02:00
2012-12-13 16:11:21 +01:00
2013-07-31 16:25:41 +02:00
2013-07-31 16:25:41 +02:00
2011-02-04 12:57:53 +01:00

Stuff used by several modules of GnuPG.

These directories use it:

gpg
sm
agent

These directories don't use it:

kbx