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: Wed, 28 Sep 2005 22:43:23 -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 1127961992 5601 80.91.229.2 (29 Sep 2005 02:46:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Sep 2005 02:46:32 +0000 (UTC) Cc: emacs-devel@gnu.org, goeran@uddeborg.se, storm@cua.dk Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 29 04:46:29 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EKoQA-0000Jl-Qo for ged-emacs-devel@m.gmane.org; Thu, 29 Sep 2005 04:45:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EKoQA-0007cx-6E for ged-emacs-devel@m.gmane.org; Wed, 28 Sep 2005 22:45:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EKoPr-0007bq-7F for emacs-devel@gnu.org; Wed, 28 Sep 2005 22:44:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EKoPo-0007an-Rf for emacs-devel@gnu.org; Wed, 28 Sep 2005 22:44:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EKoPo-0007ZC-G9 for emacs-devel@gnu.org; Wed, 28 Sep 2005 22:44:56 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EKoOK-0003sZ-Nf for emacs-devel@gnu.org; Wed, 28 Sep 2005 22:43:24 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1EKoOJ-0002kr-Jg; Wed, 28 Sep 2005 22:43:23 -0400 Original-To: Romain Francoise In-reply-to: <87achxy7hp.fsf@pacem.orebokech.com> (message from Romain Francoise on Wed, 28 Sep 2005 09:30:26 +0200) 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:43343 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. Would someone like to implement that and ack?