-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -591,7 +591,7 @@ kern_return_t catch_exception_raise(mach_port_t exception_port, | |
ret = thread_get_state(thread,x86_EXCEPTION_STATE64,(thread_state_t)&exc_state,&exc_count); | ||
HANDLE_MACH_ERROR("thread_get_state(1)",ret); | ||
uint64_t fault_addr = exc_state.__faultvaddr; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
JeffBezanson
Member
|
||
if (is_addr_on_stack(fault_addr)) { | ||
if (is_addr_on_stack((void*) fault_addr)) { | ||
ret = thread_get_state(thread,x86_THREAD_STATE64,(thread_state_t)&state,&count); | ||
HANDLE_MACH_ERROR("thread_get_state(2)",ret); | ||
old_state = state; | ||
|
@JeffBezanson, if you want to store
fault_addr
as an integer rather than a pointer, shouldn't it beuintptr_t
?