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

From: Andreas Schwab <[email-masked]>
Date: Fri, 05 Sep 2014 18:04:53 +0200

Stefan Monnier <[email-masked]> writes:

> BTW, AFAIK
>
>    Lisp_Object result = unbind_to (count, Fsome_func ());
>
> can always be written
>
>    Lisp_Object result = Fsome_func ();
>    unbind_to (count, Qnil);

Only if the result is already protected, since unbind_to can GC.

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."