From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Yoichi NAKAYAMA Newsgroups: gmane.emacs.devel Subject: Re: Preventing stack overflows with alloca. Date: Tue, 26 Oct 2004 02:11:03 +0900 Organization: Geiin.org Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <874qki4taw.wl%yoichi@geiin.org> References: <200406181113.UAA03743@etlken.m17n.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (generated by EMIKO 1.14.1 - "Choanoflagellata") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1098724320 29846 80.91.229.6 (25 Oct 2004 17:12:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Oct 2004 17:12:00 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 25 19:11:52 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CM8Nr-0000s5-00 for ; Mon, 25 Oct 2004 19:11:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CM8VW-0006di-EO for ged-emacs-devel@m.gmane.org; Mon, 25 Oct 2004 13:19:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CM8Ut-0006Q5-Tl for emacs-devel@gnu.org; Mon, 25 Oct 2004 13:19:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CM8Ut-0006Pg-1G for emacs-devel@gnu.org; Mon, 25 Oct 2004 13:19:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CM8Us-0006Pd-Uj for emacs-devel@gnu.org; Mon, 25 Oct 2004 13:19:07 -0400 Original-Received: from [43.244.40.109] (helo=alcoholic.geiin.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CM8N8-0003Zi-13 for emacs-devel@gnu.org; Mon, 25 Oct 2004 13:11:06 -0400 Original-Received: from localhost.geiin.org (localhost [127.0.0.1]) by alcoholic.geiin.org (Postfix) with ESMTP id CC1AC14493A for ; Tue, 26 Oct 2004 02:11:04 +0900 (JST) Original-To: emacs-devel@gnu.org Original-Newsgroups: gmane.emacs.devel In-Reply-To: <200406181113.UAA03743@etlken.m17n.org> User-Agent: Wanderlust/2.11.32 (Wonderwall) EMIKO/1.14.1 (Choanoflagellata) IMITATION/1.14.6 (=?ISO-2022-JP?B?GyRCMGxIVjpxJGobKEI=?=) APEL/10.6 Emacs/21.3.50 (i686-pc-linux-gnu) MULE/5.0 (=?ISO-2022-JP?B?GyRCOC0bKEI=?= =?ISO-2022-JP?B?GyRCTFobKEI=?=) X-Face: wLZki+KbGjgKe0,<&3g*rA|R**vj[a8L%[v]ecJh1L(Uqm|LBx; v7Nq7n%?0d.aS]F#[~C\!{m?m,C&#U5}$_pZvBR>5VmX1Ol0`P\M-U8`sUF<5Quj'z&zzW8r|Zl9#W7Wut3duYzpKrP{n+AbarKtJ!i"Al7]P; -?[=iBZa*]r=>C':0~JECx]IH+RXq=/hUX}MB9e]oQKBxsDd/ X-SKK: Daredevil SKK/12.2.1 (Sone) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:28930 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28930 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 > To: emacs-devel@gnu.org > Subject: dangerous alloca calls > Sender: emacs-devel-bounces+handa=m17n.org@gnu.org > > 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. Regards, -- Yoichi NAKAYAMA