From b63f1dff9dc736f7fa66f04976436f1f3fe2ac5d Mon Sep 17 00:00:00 2001 From: comex Date: Mon, 23 Feb 2015 00:41:29 -0500 Subject: Ban calls within transform regions in threadsafe mode. --- lib/hook-functions.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/hook-functions.c') diff --git a/lib/hook-functions.c b/lib/hook-functions.c index faadd82..6d53a0d 100644 --- a/lib/hook-functions.c +++ b/lib/hook-functions.c @@ -207,7 +207,8 @@ int substitute_hook_functions(const struct substitute_function_hook *hooks, * ending make_jump_patch call) */ if ((ret = transform_dis_main(code, &trampoline_ptr, pc_patch_start, &pc_patch_end, (uintptr_t) trampoline_ptr, - &arch, hi->offset_by_pcdiff))) + &arch, hi->offset_by_pcdiff, + thread_safe ? TRANSFORM_DIS_BAN_CALLS : 0))) goto end; uintptr_t dpc = pc_patch_end; -- cgit v1.2.3