From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen 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 21:33:02 +0100 Message-ID: <8762fawk1t.fsf@gnus.org> References: <874nuuwlib.fsf@gnus.org> <4F3972C3.2010209@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1329165209 19988 80.91.229.3 (13 Feb 2012 20:33:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Feb 2012 20:33:29 +0000 (UTC) Cc: Katsumi Yamaoka , Stefan Monnier , emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 13 21:33:27 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 1Rx2aQ-0001U1-Fu for ged-emacs-devel@m.gmane.org; Mon, 13 Feb 2012 21:33:22 +0100 Original-Received: from localhost ([::1]:39833 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rx2aP-0001kK-Vm for ged-emacs-devel@m.gmane.org; Mon, 13 Feb 2012 15:33:21 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:57707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rx2aM-0001k2-Si for emacs-devel@gnu.org; Mon, 13 Feb 2012 15:33:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rx2aH-0007dV-QW for emacs-devel@gnu.org; Mon, 13 Feb 2012 15:33:18 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:43733) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rx2aH-0007dP-IE for emacs-devel@gnu.org; Mon, 13 Feb 2012 15:33:13 -0500 Original-Received: from 93-41-188-50.ip82.fastwebnet.it ([93.41.188.50] helo=rusty) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1Rx2a9-0001rC-2V; Mon, 13 Feb 2012 21:33:05 +0100 In-Reply-To: <4F3972C3.2010209@cs.ucla.edu> (Paul Eggert's message of "Mon, 13 Feb 2012 12:29:55 -0800") User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.0.93 (gnu/linux) X-MailScanner-ID: 1Rx2a9-0001rC-2V MailScanner-NULL-Check: 1329769986.01698@UZnenVpcxixamKZdSaZmcA X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.224.195 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:148573 Archived-At: 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. Right. But the default value of 6.0 disallows a lot of real-world images. (9gag in particular.) Perhaps binding it to, say, 60.0 in shr.el would make sense? -- (domestic pets only, the antidote for overdose, milk.) http://lars.ingebrigtsen.no * Sent from my Rome