large file decryption error (zlib)

Petr Koloros silk at silk.sh.cvut.cz
Wed Oct 15 19:38:19 CEST 2003


Hi Werner,

> > Hi all,
> > I've encrypted quite a large file (15 gigs) with gpg 1.2.1 and decryption
> > causes this error:
> There used to be a bug in gpg 1.2.1, I fixed 4 days after the
> release.  I assume you ran
> 
>   gpg -e largefile

Exactly. But I've found the solution already:

--- ../gpg-1.2.1/gnupg-1.2.1/g10/parse-packet.c	2002-10-04 08:00:49.000000000 +0200
+++ g10/parse-packet.c	2003-10-13 17:36:44.000000000 +0200
@@ -2048,7 +2048,9 @@
 		pt->name[i] = c;
     }
     pt->timestamp = read_32(inp); if( pktlen) pktlen -= 4;
-    pt->len = pktlen;
+    //pt->len = pktlen;
+    pt->len = 0;
+    pt->is_partial = 1;
     pt->buf = inp;
     pktlen = 0;

Thank you very much for the explanation of the problem. I have all my data
decrypted successfuly now.

With best regards, 

Petr Koloros




More information about the Gnupg-users mailing list