From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: [goeran@uddeborg.se: Crash when loading a particular gif image] Date: Thu, 29 Sep 2005 19:30:16 -0400 Message-ID: References: <87hdckypvy.fsf@pacem.orebokech.com> <17197.23914.769753.126859@mimmi.uddeborg.se> <87hdciy1qb.fsf@pacem.orebokech.com> <17209.42778.15409.679280@freddi.uddeborg.se> <87achxy7hp.fsf@pacem.orebokech.com> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1128037363 6477 80.91.229.2 (29 Sep 2005 23:42:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Sep 2005 23:42:43 +0000 (UTC) Cc: romain@orebokech.com, goeran@uddeborg.se, storm@cua.dk, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 30 01:42:42 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EL81u-00071S-6u for ged-emacs-devel@m.gmane.org; Fri, 30 Sep 2005 01:41:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EL81t-0004oa-KP for ged-emacs-devel@m.gmane.org; Thu, 29 Sep 2005 19:41:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EL7y1-0003Wd-H6 for emacs-devel@gnu.org; Thu, 29 Sep 2005 19:37:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EL7xt-0003Sp-OP for emacs-devel@gnu.org; Thu, 29 Sep 2005 19:37:26 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EL7xr-0003Gv-VJ for emacs-devel@gnu.org; Thu, 29 Sep 2005 19:37:24 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EL7r5-0003km-99 for emacs-devel@gnu.org; Thu, 29 Sep 2005 19:30:23 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1EL7qy-00045I-0p; Thu, 29 Sep 2005 19:30:16 -0400 Original-To: rms@gnu.org In-reply-to: (rms@gnu.org) 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: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:43374 Archived-At: This patch probably fixes the bug, but Emacs should really enforce limits on the dimensions given by the GIF library. What if it reports an image width of two million pixels? Do we really want to allocate such large images and pixmaps? I agree we should have limits--perhaps specified by a variable. It could specify a float which is interpreted by multiplying by the screen height or width. I meant the frame's height or width.