1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +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-03-03 12:40:54 +01:00
2011-03-08 12:23:59 +01:00
2011-02-04 12:57:53 +01:00
2013-01-08 09:43:21 +01:00
2011-04-28 10:51:14 +02:00
2007-07-04 19:49:40 +00:00
2013-01-08 09:43:21 +01:00
2011-09-20 19:24:52 +02:00
2011-02-04 12:57:53 +01:00
2013-01-08 14:46:06 +01:00
2011-03-03 13:01:03 +01:00
2013-01-08 09:43:21 +01:00
2013-01-30 12:00:29 +01:00
2011-06-13 14:54:40 +02:00
2013-01-08 09:43:21 +01:00
2008-12-12 08:54:50 +00:00
2012-08-24 09:44:33 +02:00
2011-08-10 14:11:30 +02:00
2013-02-07 20:37:58 +01:00
2011-09-20 19:24:52 +02:00
2013-01-08 09:43:21 +01:00