bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Dmitry Antipov
Subject: bug#18410: Use SAFE_ALLOCA etc. to avoid unbounded stack allocation.
Date: Fri, 05 Sep 2014 12:59:27 +0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0

On 09/05/2014 10:08 AM, Paul Eggert wrote:

Attached is a patch to fix the unbounded alloca calls that I found when 
auditing the Emacs source.
I'm sending this to bug-gnu-emacs to give Eli a heads-up, as some of the fixes 
affect Windows code.
This patch is relative to Emacs trunk bzr 117822.

If __GNUC__, can't we use __attribute__ ((cleanup (freeing_function))) for 
implicit calls
to SAFE_FREE, similar to destructors in C++?

Dmitry






reply via email to

[Prev in Thread] Current Thread [Next in Thread]