@@ -277,8 +277,8 @@ static void test_uc_hook_cached_uaf(void)
277277
278278 uc_common_setup (& uc , UC_ARCH_X86 , UC_MODE_32 , code , sizeof (code ) - 1 );
279279
280- OK (uc_hook_add (uc , & h , UC_HOOK_CODE , (void * )test_uc_hook_cached_cb , ( void * ) & count , 1 ,
281- 0 ));
280+ OK (uc_hook_add (uc , & h , UC_HOOK_CODE , (void * )test_uc_hook_cached_cb ,
281+ ( void * ) & count , 1 , 0 ));
282282
283283 OK (uc_emu_start (uc , code_start , code_start + sizeof (code ) - 1 , 0 , 0 ));
284284
@@ -288,9 +288,10 @@ static void test_uc_hook_cached_uaf(void)
288288 // This will clear deleted hooks and SHOULD clear cache.
289289 OK (uc_emu_start (uc , code_start , code_start + sizeof (code ) - 1 , 0 , 0 ));
290290
291- // Now hooks are deleted and thus this _should not_ call test_uc_hook_cached_cb anymore.
292- // If the hook is allocated like from malloc, and the code region is free-ed, this call _shall not_
293- // call the hook anymore to avoid UAF.
291+ // Now hooks are deleted and thus this _should not_ call
292+ // test_uc_hook_cached_cb anymore. If the hook is allocated like from
293+ // malloc, and the code region is free-ed, this call _shall not_ call the
294+ // hook anymore to avoid UAF.
294295 OK (uc_emu_start (uc , code_start , code_start + sizeof (code ) - 1 , 0 , 0 ));
295296
296297 // Only 4 calls
0 commit comments