Subject: RE: bug#18410: Use SAFE_ALLOCA etc. to avoid unbounded stack allocation.

From: "Demetrios Obenour" <[email-masked]>
Date: Sun, 7 Sep 2014 23:20:47 -0400

That would work also, and is probably the best approach.

-----Original Message-----
From: Daniel Colascione [mailto:[email-masked]] 
Sent: Sunday, September 7, 2014 11:20 PM
To: Demetrios Obenour; 'Paul Eggert'; 'Stefan Monnier'
Cc: [email-masked]
Subject: Re: bug#18410: Use SAFE_ALLOCA etc. to avoid unbounded stack allocation.

On 09/07/2014 08:17 PM, Demetrios Obenour wrote:
> This is crucial. Otherwise, a security vulnerability could result.
> 
> MAX_ALLOCA should not be larger than the page size for the target architecture.

You could just touch every page inside a large alloca.