leak-detective: Whitelist some Botan functions
Due to the mangled C++ function names it's tricky to be more specific. The "leaked" allocations are from a static hashtable containing EC groups. There is another leak caused by the locking allocator singleton (triggered by the first function that uses it, usually initialization of a cipher, but could be a hasher in other test runners), but we can avoid that with a Botan config option.
This commit is contained in:
@@ -609,6 +609,11 @@ static char *whitelist[] = {
|
|||||||
/* FHH IMCs and IMVs */
|
/* FHH IMCs and IMVs */
|
||||||
"TNC_IMC_NotifyConnectionChange",
|
"TNC_IMC_NotifyConnectionChange",
|
||||||
"TNC_IMV_NotifyConnectionChange",
|
"TNC_IMV_NotifyConnectionChange",
|
||||||
|
/* Botan */
|
||||||
|
"botan_public_key_load",
|
||||||
|
"botan_privkey_create_ecdsa",
|
||||||
|
"botan_privkey_create_ecdh",
|
||||||
|
"botan_privkey_load_ecdh",
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user