diff options
| author | Eli Zaretskii | 2014-02-19 19:26:14 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2014-02-19 19:26:14 +0200 |
| commit | c021382022a9b5d1e61415f219eaa2b31a8c1a29 (patch) | |
| tree | cab9945d276245bf59dfc687402c8589e8627f8f /src/data.c | |
| parent | f097a3d25f77b08548c6d491ddf736ae3d6f58bf (diff) | |
| download | emacs-c021382022a9b5d1e61415f219eaa2b31a8c1a29.tar.gz emacs-c021382022a9b5d1e61415f219eaa2b31a8c1a29.zip | |
Avoid crashes on MS-Windows when JPEG images are too large.
src/image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: If
CreateDIBSection returns an error indication, zero out *ximg after
destroying the image. This avoids crashes in memory allocations
due to the fact that some of the callers also call
x_destroy_x_image, which will attempt to free an already free'd
block of memory.
Diffstat (limited to 'src/data.c')
0 files changed, 0 insertions, 0 deletions