Re: Nanokernel stack border protection

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

Hi Andrew,

Yeah, we can't really implement such function in fact, but we can and just return an error code to user. I think it's better than now.

Thx & Rgds.

At 2016-09-25 18:08:33, "Boie, Andrew P" <andrew.p.boie(a)> wrote:
On Sat, 2016-09-24 at 14:39 +0800, tidyjiang(a) 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

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?


Join to automatically receive all group messages.