From 419d710c4ac9b0461df2b153c98ddc1f1ebfa38f Mon Sep 17 00:00:00 2001 From: mio Date: Sun, 14 Aug 2022 13:37:25 +0200 Subject: [PATCH] Return true when we handled the memory events --- tests/unit/test_x86.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/unit/test_x86.c b/tests/unit/test_x86.c index c91b733d..75fe1a8f 100644 --- a/tests/unit/test_x86.c +++ b/tests/unit/test_x86.c @@ -1189,11 +1189,14 @@ static void test_x86_unaligned_access(void) OK(uc_close(uc)); } -static void test_x86_lazy_mapping_mem_callback(uc_engine *uc, uc_mem_type type, +static bool test_x86_lazy_mapping_mem_callback(uc_engine *uc, uc_mem_type type, uint64_t address, int size, int64_t value, void *user_data) { OK(uc_mem_map(uc, 0x1000, 0x1000, UC_PROT_ALL)); OK(uc_mem_write(uc, 0x1000, "\x90\x90", 2)); // nop; nop + + // Handled! + return true; } static void test_x86_lazy_mapping_block_callback(uc_engine *uc,