emacs-devel
[Top][All Lists]
Advanced

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

Re: Preventing stack overflows with alloca.


From: Kim F. Storm
Subject: Re: Preventing stack overflows with alloca.
Date: Tue, 26 Oct 2004 16:04:46 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

Yoichi NAKAYAMA <address@hidden> writes:

> At Fri, 18 Jun 2004 20:13:24 +0900 (JST),
> Kenichi Handa wrote:
>> Date: Thu, 20 Nov 2003 22:01:20 +0900 (JST)
>> From: Kenichi Handa <address@hidden>
>> To: address@hidden
>> Subject: dangerous alloca calls
>> Sender: address@hidden
>> 
>> With CVS HEAD emacs on GNU/Linux,
>>    (mapcar 'car (make-list #x400000 nil))
>> causes segfault.
>> 
>> The attached patch fixes it.  But, I found such dangerous
>> alloca calls in several other places.
>> 
>> E.g. (format (make-string #x1000000 32))
>>      (apply 'car (make-list #x100000 nil))
>
> With CVS HEAD emacs on GNU/Linux,
>    (format (make-string #x1000000 32))
> still causes segfault.


Calling format with a 16M format string is not a normal
thing to do, but I will fix this.

-- 
Kim F. Storm <address@hidden> http://www.cua.dk





reply via email to

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