mirror of
https://github.com/urbit/ares.git
synced 2024-11-26 09:57:56 +03:00
2stackz: fix is_in_frame check for top frame
This commit is contained in:
parent
b841fe2f63
commit
046c435fa7
@ -160,9 +160,17 @@ impl NockStack {
|
||||
let ptr_u64 = ptr as *const u64;
|
||||
let prev = *self.prev_stack_pointer_pointer();
|
||||
if self.is_west() {
|
||||
ptr_u64 >= self.alloc_pointer && ptr_u64 < prev
|
||||
if prev.is_null() {
|
||||
ptr_u64 >= self.alloc_pointer && ptr_u64 < self.start.add(self.size)
|
||||
} else {
|
||||
ptr_u64 >= self.alloc_pointer && ptr_u64 < prev
|
||||
}
|
||||
} else {
|
||||
ptr_u64 >= prev && ptr_u64 < self.alloc_pointer
|
||||
if prev.is_null () {
|
||||
ptr_u64 >= self.start && ptr_u64 < self.alloc_pointer
|
||||
} else {
|
||||
ptr_u64 >= prev && ptr_u64 < self.alloc_pointer
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user