-----Original Message-----
From: Sebastian Huber <sebastian.hu...@embedded-brains.de> 
Sent: Wednesday, March 3, 2021 02:44
To: Kinsey Moore <kinsey.mo...@oarcorp.com>; devel@rtems.org
Subject: Re: [PATCH v2 1/3] score: Enforce stack and TLS alignment

> On 02/03/2021 23:35, Kinsey Moore wrote:
>> I don't see that _Stack_Extend_size() does any overflow handling. Should it? 
>> Mathematical overflow is a possibility, but I'd expect to see problems 
>> attempting the allocation long before that since it's just pulling from the 
>> workspace area of the heap.
>
> Yes, I added this recently:
>
> https://git.rtems.org/rtems/commit/?id=08cbd4ba201317d0f529cbdb48db9f4775804963
>
> The problem is that if there is an overflow, then you may allocate a 
> smallĀ  number.

Ah, sorry. My local copy was stale by a day and I didn't see that patch come 
through.

> Please have a look at this patch set:
>
> https://lists.rtems.org/pipermail/devel/2021-March/065012.html

Will do.

Kinsey
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to