[gimp] Bug 769959 - crash during WebP file loading
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 769959 - crash during WebP file loading
- Date: Tue, 16 Aug 2016 01:16:10 +0000 (UTC)
commit e4a2f220e0e7a868fa6f56b0cb82c0ee97ab1ba6
Author: skal <pascal massimino gmail com>
Date: Mon Aug 15 16:16:20 2016 -0700
Bug 769959 - crash during WebP file loading
WebPDataClear() was called on already-free'd data.
plug-ins/file-webp/file-webp-load.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/plug-ins/file-webp/file-webp-load.c b/plug-ins/file-webp/file-webp-load.c
index 05b7fdd..0b669f2 100644
--- a/plug-ins/file-webp/file-webp-load.c
+++ b/plug-ins/file-webp/file-webp-load.c
@@ -149,9 +149,6 @@ load_image (const gchar *filename,
/* Attempt to decode the data as a WebP image */
outdata = WebPDecodeRGBA (indata, indatalen, &width, &height);
- /* Free the original compressed data */
- g_free (indata);
-
/* Check to ensure the image data was loaded correctly */
if (! outdata)
return -1;
@@ -208,7 +205,8 @@ load_image (const gchar *filename,
}
}
- WebPDataClear (&wp_data);
+ /* Free the original compressed data */
+ g_free (indata);
if (icc)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]