Using wrong offset for base_pointer
robert-w-gries opened this issue · comments
process
.context
.set_base_pointer(stack.as_ptr() as usize + stack.len());
We need to multiply stack.len()
by mem::size_of::<usize>()
to get the proper offset.