Cleanup Windows linker errors, Added null check in get_mx25519_impl, Fixed coverage pages copy

This commit is contained in:
Matt Hess
2025-12-21 17:30:06 +00:00
parent 53026f9a53
commit 71b12b0004
4 changed files with 13 additions and 8 deletions
+7 -1
View File
@@ -59,7 +59,13 @@ static const mx25519_impl* get_mx25519_impl()
{
static std::once_flag of;
static const mx25519_impl *impl;
std::call_once(of, [&](){ impl = mx25519_select_impl(MX25519_TYPE_AUTO); });
std::call_once(of, [&](){
impl = mx25519_select_impl(MX25519_TYPE_AUTO);
if (!impl) {
LOGERR(0, "Failed to select mx25519 implementation - unsupported platform");
PANIC_STOP();
}
});
return impl;
}