func-malloc: expand CHERI tests to check no-VMEM
This commit is contained in:
committed by
Nathaniel Filardo
parent
3fce61eafb
commit
095e8f13db
@@ -55,6 +55,14 @@ void check_result(size_t size, size_t align, void* p, int err, bool null)
|
||||
INFO("Cheri size is {}, but required to be {}.", cheri_size, alloc_size);
|
||||
failed = true;
|
||||
}
|
||||
# if defined(CHERI_PERM_SW_VMEM)
|
||||
const auto cheri_perms = __builtin_cheri_perms_get(p);
|
||||
if (cheri_perms & CHERI_PERM_SW_VMEM)
|
||||
{
|
||||
INFO("Cheri permissions include VMEM authority");
|
||||
failed = true;
|
||||
}
|
||||
# endif
|
||||
if (p != nullptr)
|
||||
{
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user