From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#4291: 23.1; doc-view-mode temporary directory vulnerable to denial of service Date: Tue, 12 Jul 2011 18:16:06 -0400 Message-ID: <87zkkj9mc9.fsf@stupidchicken.com> References: <1x7hwk3gis.fsf@fencepost.gnu.org> <7kzkkj897u.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1310509058 5049 80.91.229.12 (12 Jul 2011 22:17:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 12 Jul 2011 22:17:38 +0000 (UTC) Cc: David Bremner , 4291@debbugs.gnu.org To: Lars Magne Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 13 00:17:34 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QglGj-0000um-TG for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Jul 2011 00:17:30 +0200 Original-Received: from localhost ([::1]:39967 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QglGi-0004Vc-Ma for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Jul 2011 18:17:28 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QglGN-0004Uz-Au for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2011 18:17:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QglGJ-0000gs-9N for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2011 18:17:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58207) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QglGI-0000gk-Um for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2011 18:17:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QglGI-0007Rt-5I; Tue, 12 Jul 2011 18:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Jul 2011 22:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 4291 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 4291-submit@debbugs.gnu.org id=B4291.131050897628574 (code B ref 4291); Tue, 12 Jul 2011 22:17:02 +0000 Original-Received: (at 4291) by debbugs.gnu.org; 12 Jul 2011 22:16:16 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QglFX-0007Qp-Gb for submit@debbugs.gnu.org; Tue, 12 Jul 2011 18:16:15 -0400 Original-Received: from vm-emlprdomr-05.its.yale.edu ([130.132.50.146]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QglFW-0007Qf-8w for 4291@debbugs.gnu.org; Tue, 12 Jul 2011 18:16:14 -0400 Original-Received: from furball (173-9-75-145-NewEngland.hfc.comcastbusiness.net [173.9.75.145]) (authenticated bits=0) by vm-emlprdomr-05.its.yale.edu (8.14.4/8.14.4) with ESMTP id p6CMG7Uq027257 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 12 Jul 2011 18:16:07 -0400 In-Reply-To: (Lars Magne Ingebrigtsen's message of "Tue, 12 Jul 2011 23:46:27 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Scanned-By: MIMEDefang 2.71 on 130.132.50.146 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 12 Jul 2011 18:17:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:48800 Archived-At: Lars Magne Ingebrigtsen writes: >>>> IIRC /tmp/docview$uid is predictable because doc-view tries to reuse >>>> previouly-rendered pages. I'm not convinced this is really a good >>>> feature, but obviously the author thought it was important, so I'd >>>> rather not drop it without a discussion. >>> >>> It could just stash the directory name in a variable, and use the normal >>> `make-temp-file' to create the directory, couldn't it? >> >> I think the idea referred to above is to potentially re-use pages >> converted by a previous Emacs instance (which seems like a bad feature >> to me too). > > Oh, I see. Hm. Sounds like a bad idea to me, too. :-) I think the idea is that if you view the same pdf N times in Emacs, the disk space won't increase monotonically (Emacs doesn't delete any of those files AFAIK).