gpg --verify hangs on malformed signature

Werner Koch wk at isil.d.shuttle.de
Tue Jul 21 16:15:26 CEST 1998


Steffen Ullrich <ccrlphr at xensei.com> writes:

> 	gpg: CRC error; d8b879 - 826da9
> 	gpg: onepass_sig with unknown version 20

Here is a patch for this; apply this to g10/parse-packet.c:

diff -u -r1.40 parse-packet.c
--- parse-packet.c      1998/07/09 13:37:10     1.40
+++ parse-packet.c      1998/07/21 13:08:59
@@ -434,7 +434,8 @@
     }
     else {
        for( ; pktlen; pktlen-- )
-           iobuf_get(inp);
+           if( iobuf_get(inp) == -1 )
+               break;
     }
 }
 

Thanks,
  
    Werner







More information about the Gnupg-devel mailing list