From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Preventing stack overflows with alloca. Date: Tue, 26 Oct 2004 16:04:46 +0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: <200406181113.UAA03743@etlken.m17n.org> <874qki4taw.wl%yoichi@geiin.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1098799543 21361 80.91.229.6 (26 Oct 2004 14:05:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Oct 2004 14:05:43 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 26 16:05:27 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 1CMRx1-0007PD-00 for ; Tue, 26 Oct 2004 16:05:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CMS4i-0002TS-Ej for ged-emacs-devel@m.gmane.org; Tue, 26 Oct 2004 10:13:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CMS4a-0002T8-2Y for emacs-devel@gnu.org; Tue, 26 Oct 2004 10:13:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CMS4Z-0002SR-DM for emacs-devel@gnu.org; Tue, 26 Oct 2004 10:13:15 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CMS4Z-0002S6-1o for emacs-devel@gnu.org; Tue, 26 Oct 2004 10:13:15 -0400 Original-Received: from [212.88.64.25] (helo=mail-relay.sonofon.dk) by monty-python.gnu.org with smtp (Exim 4.34) id 1CMRwH-0004gK-Nf for emacs-devel@gnu.org; Tue, 26 Oct 2004 10:04:42 -0400 Original-Received: (qmail 45466 invoked from network); 26 Oct 2004 14:04:40 -0000 Original-Received: from unknown (HELO kfs-l.imdomain.dk.cua.dk) (213.83.150.2) by 0 with SMTP; 26 Oct 2004 14:04:40 -0000 Original-To: Yoichi NAKAYAMA In-Reply-To: <874qki4taw.wl%yoichi@geiin.org> (Yoichi NAKAYAMA's message of "Tue, 26 Oct 2004 02:11:03 +0900") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) 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:28974 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28974 Yoichi NAKAYAMA 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 >> 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. Calling format with a 16M format string is not a normal thing to do, but I will fix this. -- Kim F. Storm http://www.cua.dk