Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tests/kernel/mem_protect/stackprot/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ void alternate_thread(void *p1, void *p2, void *p3)
ARG_UNUSED(p1);
ARG_UNUSED(p2);
ARG_UNUSED(p3);
/*
* Padding buffer to absorb the intentional overflow inside the thread stack.
* This prevents writes from crossing the thread stack boundary into the next
* MPU-protected region. Required to make the test independent of compiler-
* specific stack frame layouts.
*/
volatile char overflow_guard_area[32] = "Forcing Initialization!";

TC_PRINT("Starts %s\n", __func__);
check_input(__func__,
Expand Down
Loading