emacs-devel
[Top][All Lists]
Advanced

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

Re: Truncated fatal error messages


From: Paul Eggert
Subject: Re: Truncated fatal error messages
Date: Sat, 22 Sep 2012 01:24:19 -0700
User-agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120827 Thunderbird/15.0

On 09/22/2012 01:08 AM, Eli Zaretskii wrote:
> Isn't it better to allocate the buffer (with alloca)

If we're worried about arbitrarily long output of strsignal,
alloca won't work, since alloca can't go over a few
kilobytes.  And we can't use malloc here, since signal
handlers can't malloc.

In practice I expect the old code was fine, since signal
descriptions are never that long.  But since the issue has
been raised, I modified the code to avoid the need to allocate
an arbitrarily long buffer.



reply via email to

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