From 986d928ce2a561b04fda7730de6a94f9b1e703d6 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 18 Sep 2000 14:35:34 +0000 Subject: See ChangeLog: Mon Sep 18 16:35:45 CEST 2000 Werner Koch --- g10/sign.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'g10/sign.c') diff --git a/g10/sign.c b/g10/sign.c index d52010a4c..b53444b7c 100644 --- a/g10/sign.c +++ b/g10/sign.c @@ -485,6 +485,10 @@ sign_file( STRLIST filenames, int detached, STRLIST locusr, if( fname ) { if( !(filesize = iobuf_get_filelength(inp)) ) log_info(_("WARNING: `%s' is an empty file\n"), fname ); + /* we can't yet encode the length of very large files, + * so we switch to partial length encoding in this case */ + if ( filesize >= IOBUF_FILELENGTH_LIMIT ) + filesize = 0; /* because the text_filter modifies the length of the * data, it is not possible to know the used length -- cgit v1.2.3