mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Dirty fix libgcrypt memleak
This commit is contained in:
parent
b7144d82fe
commit
c22df13d95
10
prof.supp
10
prof.supp
@ -1176,3 +1176,13 @@
|
|||||||
fun:SHA1_Update
|
fun:SHA1_Update
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# gcrypt initialization
|
||||||
|
{
|
||||||
|
gcry_rngcsprng_randomize
|
||||||
|
Memcheck:Leak
|
||||||
|
fun:malloc
|
||||||
|
...
|
||||||
|
fun:omemo_crypto_init
|
||||||
|
...
|
||||||
|
}
|
||||||
|
@ -55,6 +55,11 @@ omemo_crypto_init(void)
|
|||||||
|
|
||||||
gcry_control(GCRYCTL_INITIALIZATION_FINISHED, 0);
|
gcry_control(GCRYCTL_INITIALIZATION_FINISHED, 0);
|
||||||
|
|
||||||
|
/* Ask for a first random buffer to ensure CSPRNG is initialized.
|
||||||
|
* Thus we control the memleak produced by gcrypt initialization and we can
|
||||||
|
* suppress it without having false negatives */
|
||||||
|
gcry_free(gcry_random_bytes_secure(1, GCRY_VERY_STRONG_RANDOM));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user