From 3df21d6c8d6c978cedaac23dbbf4c106dee9120f Mon Sep 17 00:00:00 2001 From: spv420 Date: Wed, 13 Jul 2022 20:32:27 -0400 Subject: lol r3gister --- src/js/primitives/call.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/js/primitives/call.js') diff --git a/src/js/primitives/call.js b/src/js/primitives/call.js index 6eaa607..dfd3077 100644 --- a/src/js/primitives/call.js +++ b/src/js/primitives/call.js @@ -310,7 +310,7 @@ function callnarg() { /* * r9 */ - write_u32(thread_state + (11 << 2), 0x1337); +// write_u32(thread_state + (11 << 2), 0x1337); /* * stack @@ -356,7 +356,7 @@ function callnarg() { * if the pc is in (resolver, resolver + 8), suspend the thread * (to not spin endlessly), read r0 and return */ - if (((read_u32(thread_state + (15 << 2)) == (__stack_chk_fail_resolver + dyld_shc_slide)))) { + if (((read_u32(thread_state + (15 << 2)) >= (__stack_chk_fail_resolver + dyld_shc_slide))) && ((read_u32(thread_state + (15 << 2)) < (__stack_chk_fail_resolver + dyld_shc_slide + 8)))) { calls4arg("thread_suspend", rth, 0, 0, 0); return read_u32(thread_state); } @@ -416,7 +416,7 @@ function scall() { for (var i = 0; i < count_to_me; i++) { args_to_pass.push(0); } - return call4arg.apply(this, args_to_pass) + return call4arg.apply(this, args_to_pass); } } -- cgit v1.2.3