From 97f6ad47fecdc2382efa221fba1ac3ceffa9992c Mon Sep 17 00:00:00 2001 From: aaaaaa aaaaaaa Date: Wed, 27 Dec 2017 21:55:06 +0100 Subject: [PATCH] fix all_hooked --- tester/abstracthook.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tester/abstracthook.h b/tester/abstracthook.h index 79a2aef..60c5229 100644 --- a/tester/abstracthook.h +++ b/tester/abstracthook.h @@ -17,7 +17,16 @@ public: bool tail_recursion; }; public: - AbstractHookEngine(const char* name) : name_(name) { + AbstractHookEngine(const char* name) : + name_(name), + small_(false), + branch(false), + rip_relative(false), + avx(false), + rdrand(false), + loop(false), + tail_recursion(false) + { } @@ -25,7 +34,7 @@ public: virtual bool unhook_all() = 0; bool all_hooked() { - return small_ && branch && rip_relative; + return small_ && branch && rip_relative && avx && rdrand && loop && tail_recursion; } const char* name() {