Re: Nanokernel stack border protection


Boie, Andrew P
 

On Sat, 2016-09-24 at 14:39 +0800, tidyjiang(a)163.com wrote:
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 ?
How would you propose to implement such a border protection?

Andrew

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