From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#18410: Use SAFE_ALLOCA etc. to avoid unbounded stack allocation. Date: Fri, 05 Sep 2014 18:04:53 +0200 Message-ID: <87egvqgije.fsf@linux-m68k.org> References: <5409536B.5090201@cs.ucla.edu> <54097827.1020508@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1409933737 24465 80.91.229.3 (5 Sep 2014 16:15:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Sep 2014 16:15:37 +0000 (UTC) Cc: Dmitry Antipov , 18410@debbugs.gnu.org, Paul Eggert To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 05 18:15:29 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XPw1i-0000FO-Ec for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Sep 2014 18:06:18 +0200 Original-Received: from localhost ([::1]:58794 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPw1h-0002Wz-Qh for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Sep 2014 12:06:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44371) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPw1Z-0002W2-GD for bug-gnu-emacs@gnu.org; Fri, 05 Sep 2014 12:06:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPw1S-0002gB-Ch for bug-gnu-emacs@gnu.org; Fri, 05 Sep 2014 12:06:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40189) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPw1S-0002g7-Ad for bug-gnu-emacs@gnu.org; Fri, 05 Sep 2014 12:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XPw1R-0001L1-S7 for bug-gnu-emacs@gnu.org; Fri, 05 Sep 2014 12:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 Sep 2014 16:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18410 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 18410-submit@debbugs.gnu.org id=B18410.14099331025061 (code B ref 18410); Fri, 05 Sep 2014 16:06:01 +0000 Original-Received: (at 18410) by debbugs.gnu.org; 5 Sep 2014 16:05:02 +0000 Original-Received: from localhost ([127.0.0.1]:59986 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XPw0S-0001JK-VU for submit@debbugs.gnu.org; Fri, 05 Sep 2014 12:05:01 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.10]:33322) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XPw0P-0001J8-QZ for 18410@debbugs.gnu.org; Fri, 05 Sep 2014 12:04:58 -0400 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3hqNxz5s8Fz3hj9w; Fri, 5 Sep 2014 18:04:55 +0200 (CEST) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3hqNxz19lgzvk7v; Fri, 5 Sep 2014 18:04:55 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id Wl2CMhIvzPKD; Fri, 5 Sep 2014 18:04:54 +0200 (CEST) X-Auth-Info: A8LZned1U1PCSF4VyJxShmfMunwTrFYgE358vgeMZaaubLiLN5UhMkG9uBp1FAY8 Original-Received: from igel.home (ppp-188-174-144-93.dynamic.mnet-online.de [188.174.144.93]) by mail.mnet-online.de (Postfix) with ESMTPA; Fri, 5 Sep 2014 18:04:53 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 1000) id A852D2C0C41; Fri, 5 Sep 2014 18:04:53 +0200 (CEST) X-Yow: World War Three can be averted by adherence to a strictly enforced dress code! In-Reply-To: (Stefan Monnier's message of "Fri, 05 Sep 2014 11:44:25 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.93 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:93070 Archived-At: Stefan Monnier writes: > BTW, AFAIK > > Lisp_Object result = unbind_to (count, Fsome_func ()); > > can always be written > > Lisp_Object result = Fsome_func (); > unbind_to (count, Qnil); Only if the result is already protected, since unbind_to can GC. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."