gpg: Fix bug with deeply nested compressed packets.
authorWerner Koch <wk@gnupg.org>
Wed, 2 Oct 2013 07:11:43 +0000 (09:11 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 2 Oct 2013 07:11:43 +0000 (09:11 +0200)
commit0899f6d4be0406c9efbf9c3f342825804f359b5a
tree3900b2048d2ff142239c568c05f708a72eab8fe7
parentdaba481fe7d4aad730c3669c6d93c1bf03184fe2
gpg: Fix bug with deeply nested compressed packets.

* g10/mainproc.c (MAX_NESTING_DEPTH): New.
(proc_compressed): Return an error code.
(check_nesting): New.
(do_proc_packets): Check packet nesting depth.  Handle errors from
check_compressed.

Signed-off-by: Werner Koch <wk@gnupg.org>
NEWS
doc/DETAILS
g10/mainproc.c