From 6c13b96a1dd639d1f90f1c5f9aa13eca2f8f405a Mon Sep 17 00:00:00 2001 From: David Shaw Date: Wed, 18 Feb 2004 23:09:27 +0000 Subject: * options.h, g10.c (main), plaintext.c (handle_plaintext): Add --max-output option to help people deal with decompression bombs. --- g10/g10.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'g10/g10.c') diff --git a/g10/g10.c b/g10/g10.c index 916934c4f..c15cea379 100644 --- a/g10/g10.c +++ b/g10/g10.c @@ -76,6 +76,7 @@ enum cmd_and_opt_values oCompress = 'z', oSetNotation = 'N', oBatch = 500, + oMaxOutput, oSigNotation, oCertNotation, oShowNotation, @@ -436,6 +437,7 @@ static ARGPARSE_OPTS opts[] = { { oAskCertExpire, "ask-cert-expire", 0, "@"}, { oNoAskCertExpire, "no-ask-cert-expire", 0, "@"}, { oOutput, "output", 2, N_("use as output file")}, + { oMaxOutput, "max-output", 16|4, "@" }, { oVerbose, "verbose", 0, N_("verbose") }, { oQuiet, "quiet", 0, "@"}, { oNoTTY, "no-tty", 0, "@"}, @@ -1697,6 +1699,7 @@ main( int argc, char **argv ) case oArmor: opt.armor = 1; opt.no_armor=0; break; case oOutput: opt.outfile = pargs.r.ret_str; break; + case oMaxOutput: opt.max_output = pargs.r.ret_ulong; break; case oQuiet: opt.quiet = 1; break; case oNoTTY: tty_no_terminal(1); break; case oDryRun: opt.dry_run = 1; break; -- cgit v1.2.3