Skip to content
Commit 584f52d5 authored by David Leach's avatar David Leach Committed by Christopher Friedt
Browse files

tests: mem_protect: ensure allocated objects are initialized



K_OBJ_MSGQ, K_OBJ_PIPE, and K_OBJ_STACK objects have pointers
to additional memory that can be allocated. The k_obj_alloc()
returns these objects as uninitialized so when they are freed
there are random opportunities for freeing invalid memory
and causing random faults.

Signed-off-by: default avatarDavid Leach <david.leach@nxp.com>
(cherry picked from commit fdea2a62)
parent d05c3bdf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment