From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: [lekktu@gmail.com: Re: Crash when having malformed PBM image on screen and viewing *Messages* buffer (on Windows)] Date: Mon, 06 Aug 2007 13:23:14 -0400 Message-ID: <87zm14efwd.fsf@stupidchicken.com> References: <46A72CB4.40701@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1186421196 16713 80.91.229.12 (6 Aug 2007 17:26:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Aug 2007 17:26:36 +0000 (UTC) Cc: Jason Rumney , emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 06 19:26:33 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1II6Lc-00088p-Rm for ged-emacs-devel@m.gmane.org; Mon, 06 Aug 2007 19:26:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1II6LY-0003L3-UY for ged-emacs-devel@m.gmane.org; Mon, 06 Aug 2007 13:26:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1II6LU-0003JY-0z for emacs-devel@gnu.org; Mon, 06 Aug 2007 13:26:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1II6LP-0003IM-Ls for emacs-devel@gnu.org; Mon, 06 Aug 2007 13:26:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1II6LP-0003IJ-Fm for emacs-devel@gnu.org; Mon, 06 Aug 2007 13:26:15 -0400 Original-Received: from cyd.mit.edu ([18.115.2.24]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1II6Ku-00005a-HY; Mon, 06 Aug 2007 13:25:45 -0400 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 3C4D24E35D; Mon, 6 Aug 2007 13:23:14 -0400 (EDT) In-Reply-To: (Richard Stallman's message of "Wed\, 25 Jul 2007 16\:12\:03 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-Detected-Kernel: Linux 2.6 (newer, 1) 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:76097 Archived-At: > As I said in the original thread about this bug, the problem can be > reproduced on GNU/Linux. The recipe to reproduce it is: > > - start emacs -Q > - run this in *scratch* buffer > > (progn > (put-image '(image :type pbm :data "") 0) > (pop-to-buffer "*Messages*") > (goto-char (point-max))) > > Now press . The problem is that the size of the *Messages* buffer shrinks during redisplay_window, as a result of message log truncation: from ... unsigned char *) 0x85da2f8 "pe pbm :data )' call-interactively: End of bufferNot a PBM image: `(image :type pbm :data )' call-interactively: End of buffer to ... unsigned char *) 0x85da4cc "pe pbm :data )' call-interactively: End of bufferNot a PBM image: `(image :type pbm :data )' [2 times] I've checked in code into both the trunk and branch to handle this corner case.