From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r107264: shr.el (shr-rescale-image): Allow viewing large images. Date: Mon, 13 Feb 2012 15:41:51 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <874nuu1n5c.fsf@lifelogs.com> References: <874nuuwlib.fsf@gnus.org> <4F3972C3.2010209@cs.ucla.edu> <8762fawk1t.fsf@gnus.org> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1329165739 24064 80.91.229.3 (13 Feb 2012 20:42:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Feb 2012 20:42:19 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 13 21:42:19 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rx2j0-0002Aa-H5 for ged-emacs-devel@m.gmane.org; Mon, 13 Feb 2012 21:42:14 +0100 Original-Received: from localhost ([::1]:39896 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rx2j0-0003S9-1k for ged-emacs-devel@m.gmane.org; Mon, 13 Feb 2012 15:42:14 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:47239) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rx2iu-0003Rh-1X for emacs-devel@gnu.org; Mon, 13 Feb 2012 15:42:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rx2io-00010N-S9 for emacs-devel@gnu.org; Mon, 13 Feb 2012 15:42:07 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:35914) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rx2io-00010B-Lt for emacs-devel@gnu.org; Mon, 13 Feb 2012 15:42:02 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Rx2il-0001qN-Hu for emacs-devel@gnu.org; Mon, 13 Feb 2012 21:41:59 +0100 Original-Received: from c-76-28-40-19.hsd1.vt.comcast.net ([76.28.40.19]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Feb 2012 21:41:59 +0100 Original-Received: from tzz by c-76-28-40-19.hsd1.vt.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Feb 2012 21:41:59 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 20 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-76-28-40-19.hsd1.vt.comcast.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.0.93 (gnu/linux) Cancel-Lock: sha1:+8q77qSCdMR2Eg/UWxViMukH4bY= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:148575 Archived-At: On Mon, 13 Feb 2012 21:33:02 +0100 Lars Ingebrigtsen wrote: LI> Paul Eggert writes: >> For incredibly large images, the underlying libraries are >> likely to have unchecked integer or memory overflows, dumping >> core if you're lucky and having "interesting" behavior otherwise. >> Even if the libraries themselves are reliable (a big "if"), >> that part of Emacs is less well ironed out, and I wouldn't >> be surprised if Emacs proper has exploitable bugs in this >> area. LI> Right. But the default value of 6.0 disallows a lot of real-world LI> images. (9gag in particular.) Perhaps binding it to, say, 60.0 in LI> shr.el would make sense? Or make `max-image-size' a plist of conditions, so filtering by absolute size AND by relative size to frame AND by file size are all possible at once? Ted