1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-01 11:26:52 +03:00

tests: Try to make the gcrypt valgrind less noisy

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Sahana Prasad <sahana@redhat.com>
Reviewed-by: Eshan Kelkar <eshankelkar@galorithm.com>
This commit is contained in:
Jakub Jelen
2024-07-04 18:44:03 +02:00
committed by Sahana Prasad
parent 5a2654c837
commit 11b792a076
2 changed files with 19 additions and 16 deletions

View File

@ -163,9 +163,7 @@
fun:ssh_crypto_init
fun:_ssh_init
fun:libssh_constructor
fun:call_init
fun:__libc_start_main@@GLIBC_2.34
fun:(below main)
...
}
{
randomize in libgcrypt keeps some memory around
@ -173,10 +171,6 @@
match-leak-kinds: reachable
fun:malloc
...
fun:_gcry_xmalloc
fun:_gcry_xcalloc
fun:initialize.lto_priv.0
fun:_gcry_rngcsprng_randomize
fun:ssh_get_random
...
}
@ -186,14 +180,24 @@
match-leak-kinds: reachable
fun:malloc
...
fun:_gcry_xmalloc
fun:_gcry_mpi_alloc
fun:_gcry_mpi_scan
fun:ec_p_init.lto_priv.0
...
fun:_gcry_mpi_ec_internal_new
fun:ecc_sign.lto_priv.0
fun:_gcry_pk_sign
fun:gcry_pk_sign
...
}
{
EC key operation allocs some reachable memory
Memcheck:Leak
match-leak-kinds: reachable
fun:malloc
...
fun:gcry_pk_verify
...
}
{
EC key generation allocs some reachable memory
Memcheck:Leak
match-leak-kinds: reachable
fun:malloc
...
fun:gcry_pk_genkey
...
}