Nanokernel stack border protection


Tidy(ChunHua) Jiang <tidyjiang@...>
 

Hi All,

The nanokernel uses an array as stack memory space, but there is no border protection when push data to the stack. When the array is already full, it will cause array overfow, leading to unpredictable behavior.

Why not add the border protection? When the array is full, it returns an error code to user.

Is it necessary ?

Thanks.


tidyjiang(a)163.com

Join devel@lists.zephyrproject.org to automatically receive all group messages.