bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#16683: 24.3; Crash on OS X when loading a bad PPM image


From: Marcus Karlsson
Subject: bug#16683: 24.3; Crash on OS X when loading a bad PPM image
Date: Sun, 9 Feb 2014 23:30:08 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Fri, Feb 07, 2014 at 01:53:14PM +0000, Gareth Rees wrote:
> Emacs for Mac OS X crashes when trying to display a badly formatted
> PPM image. The crash is 100% reproducible.

I'm able to reproduce this crash on the current head.

My impression after running it through the debugger is that -release is
called on the pixmap after it has been deallocated earlier in pbm_load.
I have created a patch that sets the pixmap to NO_PIXMAP in case
pbm_load runs into an error.

In the long run the better solution is probably to look over the NS
memory management so that it works properly.

                Marcus

Attachment: 16683-fix.patch
Description: Text Data


reply via email to

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