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: image size limit? Date: Sat, 15 Oct 2005 12:13:14 -0400 Message-ID: References: <87oe5v7q19.fsf@stupidchicken.com> <87k6giiqh3.fsf@pacem.orebokech.com> <87fyr4w8sh.fsf@stupidchicken.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 1129392894 29799 80.91.229.2 (15 Oct 2005 16:14:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 15 Oct 2005 16:14:54 +0000 (UTC) Cc: romain@orebokech.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 15 18:14:45 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EQofz-0004Tb-6r for ged-emacs-devel@m.gmane.org; Sat, 15 Oct 2005 18:14:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EQofy-0007Fm-FX for ged-emacs-devel@m.gmane.org; Sat, 15 Oct 2005 12:14:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EQoep-0006cw-Em for emacs-devel@gnu.org; Sat, 15 Oct 2005 12:13:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EQoeo-0006cd-On for emacs-devel@gnu.org; Sat, 15 Oct 2005 12:13:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EQoeo-0006cW-J0 for emacs-devel@gnu.org; Sat, 15 Oct 2005 12:13:14 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EQoeo-0001p5-KD for emacs-devel@gnu.org; Sat, 15 Oct 2005 12:13:14 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1EQoeo-0004fd-1u; Sat, 15 Oct 2005 12:13:14 -0400 Original-To: Chong Yidong In-reply-to: <87fyr4w8sh.fsf@stupidchicken.com> (message from Chong Yidong on Fri, 14 Oct 2005 09:02:54 -0400) 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:44080 Archived-At: Here's another idea. We impose a limit on the size of the image file that Emacs is willing to read, say 50 megabytes. This should be easy to implement and independent of image type. That might be a good idea, but it won't address this problem. In this problem case, the file itself is not too large, but the image size is too large due to invalid data. At the same time, we implement image width and height limits in x_create_x_image_and_pixmap, to deal with malicious images that specify gigantic width and height sizes, even though the file size isn't that big. Will that succeed in handling the problem case we got?