tags 869891 upstream,patch thanks Jakub Wilk wrote...
> This command seems to hang forever:
>
> $ printf -- '-----BEGIN PGP\n\njAE00000IM0D' | pgpdump
Appearently it's a bad idea to call BZ2_bzDecompress with avail_in set
to zero. The patch below catches that situation but still should
probably see more testing.
Christoph
--- a/buffer.c
+++ b/buffer.c
@@ -276,6 +276,8 @@
while (bz.avail_out != 0) {
if (bz.avail_in == 0) {
size = (*d_func2)(d_buf2, sizeof(d_buf2));
+ if (size == 0)
+ warn_exit("bzip2 no data for BZ2_bzDecompress");
bz.next_in = (cast_t)d_buf2;
bz.avail_in = size;
}
signature.asc
Description: Digital signature

