rt: Add an assert to rust_get_current_task
This commit is contained in:
parent
fa88d15d63
commit
dd63c5ef1d
@ -463,6 +463,7 @@ inline rust_task* rust_get_current_task() {
|
||||
|
||||
// Make sure we've calculated the right address
|
||||
::check_stack_canary(stk);
|
||||
assert(stk->task != NULL && "task pointer not in stack structure");
|
||||
return stk->task;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user