all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Truncated fatal error messages
Date: Sat, 22 Sep 2012 01:24:19 -0700	[thread overview]
Message-ID: <505D75B3.6020406@cs.ucla.edu> (raw)
In-Reply-To: <83mx0iwkcn.fsf@gnu.org>

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.



      parent reply	other threads:[~2012-09-22  8:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-22  8:08 Truncated fatal error messages Eli Zaretskii
2012-09-22  8:22 ` Andreas Schwab
2012-09-22  8:24 ` Paul Eggert [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=505D75B3.6020406@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.