From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#8528: 24.0.50; 32-bit Emacs with apparent 128M buffer size limit Date: Wed, 20 Apr 2011 23:58:36 -0700 Organization: UCLA Computer Science Department Message-ID: <4DAFD59C.5090602@cs.ucla.edu> References: <87bp00iqih.fsf@gmail.com> <83r58w2lst.fsf@gnu.org> <4DAFCC4F.1080900@cs.ucla.edu> <83mxjk2jl1.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1303369662 16816 80.91.229.12 (21 Apr 2011 07:07:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 21 Apr 2011 07:07:42 +0000 (UTC) Cc: 8528@debbugs.gnu.org, ego111@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 21 09:07:38 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 1QCnzF-00061K-Ke for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Apr 2011 09:07:37 +0200 Original-Received: from localhost ([::1]:54226 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCnzF-0005fo-3h for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Apr 2011 03:07:37 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:50616) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCnz8-0005Wz-Nr for bug-gnu-emacs@gnu.org; Thu, 21 Apr 2011 03:07:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCnz7-0000QD-Lp for bug-gnu-emacs@gnu.org; Thu, 21 Apr 2011 03:07:30 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54391) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCnz7-0000Q9-J3 for bug-gnu-emacs@gnu.org; Thu, 21 Apr 2011 03:07:29 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QCnqv-0000Px-Qp; Thu, 21 Apr 2011 02:59:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Apr 2011 06:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8528 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8528-submit@debbugs.gnu.org id=B8528.13033691261586 (code B ref 8528); Thu, 21 Apr 2011 06:59:01 +0000 Original-Received: (at 8528) by debbugs.gnu.org; 21 Apr 2011 06:58:46 +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 1QCnqf-0000PW-5A for submit@debbugs.gnu.org; Thu, 21 Apr 2011 02:58:45 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QCnqd-0000PJ-91 for 8528@debbugs.gnu.org; Thu, 21 Apr 2011 02:58:44 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id A92E239E80DB; Wed, 20 Apr 2011 23:58:37 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ytXRuvAUrthg; Wed, 20 Apr 2011 23:58:36 -0700 (PDT) Original-Received: from [192.168.1.10] (pool-71-189-109-235.lsanca.fios.verizon.net [71.189.109.235]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id A03DC39E8083; Wed, 20 Apr 2011 23:58:36 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 In-Reply-To: <83mxjk2jl1.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 21 Apr 2011 02:59:01 -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:45912 Archived-At: On 04/20/11 23:40, Eli Zaretskii wrote: > Right, but wouldn't you agree that such a limitation is too stringent? Yes, absolutely, the limit should be removed if possible. In a brief look at the code, it appeared to me that there were places where the it does not check for integer overflow in size calculations when converting external to internal form. So it could well be that this preliminary check may be needed to avoid catastrophe later. I have not checked this out carefully, though, and I could be wrong. (One way to find out would be to test it with a worst-case-bloat file, but I haven't had time to do that.) > E.g., I should be able to use find-file-literally to visit a 512MB > file, but currently I cannot. If we know that byte bloat cannot occur, which is the case with find-file-literally, then the divide-by-4 limit should not be needed. That case should be easy, in that it shouldn't require a lot of analysis to fix that case safely.