this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Better fix for xtrace page boundary problem (#446)

+2 -2
+2 -2
src/xtrace/xtracelib.c
··· 53 53 static void xtrace_setup_mach(void) 54 54 { 55 55 uintptr_t area = (uintptr_t)_darling_mach_syscall_entry; 56 - uintptr_t areaEnd = area + sizeof(struct hook); 56 + uintptr_t areaEnd = ((uintptr_t)_darling_mach_syscall_exit) + sizeof(struct hook); 57 57 58 58 // __asm__("int3"); 59 59 area &= ~(4096-1); ··· 72 72 static void xtrace_setup_bsd(void) 73 73 { 74 74 uintptr_t area = (uintptr_t)_darling_bsd_syscall_entry; 75 - uintptr_t areaEnd = area + sizeof(struct hook); 75 + uintptr_t areaEnd = ((uintptr_t)_darling_bsd_syscall_exit) + sizeof(struct hook); 76 76 77 77 // __asm__("int3"); 78 78 area &= ~(4096-1);