MDC bug in GPG ?

disastry at saiknes.lv disastry at saiknes.lv
Tue Aug 13 14:10:03 CEST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

disastry wrote:
> 
> Seems there is something wrong in GPG in MDC packet parsing.
> 
> I'm adding MDC support to mpgp, but I made a mistake: instead of 0xD3, 0x20 I put 0xD3, 0x22,

err again, it should be 0xD3, 0x14 :)

> and GPG 1.0.7 and 1.1.91 decrypted it just fine and did not complained about error!
> with -v -v it said: "gpg: decryption okay".
> 
> in parse-packet.c parse_mdc() there is check:
>     if( !new_ctb || pktlen != 20 ) {
>         log_error("mdc_packet with invalid encoding\n");
> but obviously it didn't worked...
> 
> __
> Disastry

__
Disastry  http://disastry.dhs.org/
-----BEGIN PGP SIGNATURE-----
Version: Netscape PGP half-Plugin 0.15 by Disastry / PGPsdk v1.7.1

iQA/AwUBPVjDUjBaTVEuJQxkEQMpHQCeI+FUuBWRPTN0IirjHA0le12bXJkAoOoA
CGA+YgwbgxwhJB/xprQ6dhwd
=a6Z2
-----END PGP SIGNATURE-----




More information about the Gnupg-devel mailing list