gpg: Limit the nesting level of I/O filters.
authorWerner Koch <wk@gnupg.org>
Fri, 4 Oct 2013 06:20:49 +0000 (08:20 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 4 Oct 2013 18:45:49 +0000 (20:45 +0200)
commitf10b184e48015f30849d7611bd9654ed23b91211
tree63b381c9c80f221e33b9761bc74b28f048b96630
parentd90a1d23404f482cc4a5a2b2ee0f296d67ff2227
gpg: Limit the nesting level of I/O filters.

* until/iobuf.c (MAX_NESTING_FILTER): New.
(iobuf_push_filter2): Limit the nesting level.
--

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.

Signed-off-by: Werner Koch <wk@gnupg.org>
util/iobuf.c