CRASH prevention fix: Memory was overwritten if there were more than 1 email address in a signature certificate found in checkMessageSignature() function.
This commit is contained in:
parent
e3e127d4a8
commit
07f4264a5e
@ -2671,7 +2671,7 @@ bool checkMessageSignature( char** cleartext,
|
|||||||
++UID_idx ){
|
++UID_idx ){
|
||||||
if (*attr_string) {
|
if (*attr_string) {
|
||||||
fprintf( stderr, "gpgmeplug checkMessageSignature found email: %s\n", 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 =
|
alloc_return =
|
||||||
malloc( sizeof( char*) );
|
malloc( sizeof( char*) );
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user