25 bfelf_loader_ut::test_bfelf_file_get_stack_perm_invalid_ef()
27 bfelf64_xword perm = 0;
29 auto ret = bfelf_file_get_stack_perm(
nullptr, &perm);
34 bfelf_loader_ut::test_bfelf_file_get_stack_perm_invalid_addr()
39 auto &&
data = get_test();
40 auto &&buff = std::get<0>(
data);
43 ret = bfelf_file_init(buff.get(),
size, &ef);
46 ret = bfelf_file_get_stack_perm(&ef,
nullptr);
51 bfelf_loader_ut::test_bfelf_file_get_stack_perm_success()
54 bfelf64_xword perm = 0;
57 auto &&
data = get_test();
58 auto &&buff = std::get<0>(
data);
59 auto &&size = std::get<1>(
data);
61 ret = bfelf_file_init(buff.get(),
size, &ef);
64 ret = bfelf_file_get_stack_perm(&ef, &perm);
#define BFELF_ERROR_INVALID_ARG
int64_t unsigned long void * data
constexpr const auto size