From dd63c5ef1d55210cf9905295d9c33c622797fb72 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Mon, 2 Apr 2012 14:23:24 -0700 Subject: [PATCH] rt: Add an assert to rust_get_current_task --- src/rt/rust_task.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rt/rust_task.h b/src/rt/rust_task.h index 87aeca511e9f..f670704293ae 100644 --- a/src/rt/rust_task.h +++ b/src/rt/rust_task.h @@ -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; }