From: Karl-Heinz Zimmer Date: Thu, 4 Jul 2002 00:02:19 +0000 (+0000) Subject: CRASH prevention fix: Memory was overwritten if there were more than 1 email address... X-Git-Tag: gpgme-0-3-9~39 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=07f4264a5e687ed0175780ecc8bf9636a0f1dbfd;p=gpgme.git CRASH prevention fix: Memory was overwritten if there were more than 1 email address in a signature certificate found in checkMessageSignature() function. --- diff --git a/gpgmeplug/gpgmeplug.c b/gpgmeplug/gpgmeplug.c index 7622fda..4af5ffe 100644 --- a/gpgmeplug/gpgmeplug.c +++ b/gpgmeplug/gpgmeplug.c @@ -2671,7 +2671,7 @@ bool checkMessageSignature( char** cleartext, ++UID_idx ){ if (*attr_string) { fprintf( stderr, "gpgmeplug checkMessageSignature found email: %s\n", attr_string ); - if( sigmeta->extended_info[sig_idx].emailCount ) + if( !sigmeta->extended_info[sig_idx].emailCount ) alloc_return = malloc( sizeof( char*) ); else