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-1.2.0@1385~889 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6c8fcaba7fabd07d447d90e1a31bf5ffe5062970;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/trunk/gpgmeplug/gpgmeplug.c b/trunk/gpgmeplug/gpgmeplug.c index 7622fda..4af5ffe 100644 --- a/trunk/gpgmeplug/gpgmeplug.c +++ b/trunk/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