emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: address@hidden: Re: Crash when having malformed PBM image on screen


From: Chong Yidong
Subject: Re: address@hidden: Re: Crash when having malformed PBM image on screen and viewing *Messages* buffer (on Windows)]
Date: Mon, 06 Aug 2007 13:23:14 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

> 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 <down> <right> <down> <right>.

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]