[gimp/metadata-browser] plug-ins: don't crash loading a transparent indexed png
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] plug-ins: don't crash loading a transparent indexed png
- Date: Thu, 13 Sep 2012 00:27:48 +0000 (UTC)
commit e44791dba5ad9a10fe3ff12ccbc669f1a243525d
Author: Massimo Valentini <mvalentini src gnome org>
Date: Mon Jul 9 18:04:08 2012 +0200
plug-ins: don't crash loading a transparent indexed png
with no text chunk, in that case 'i' == tile_height and
*** glibc detected *** ...2.0/plug-ins/file-png:
double free or corruption (out): 0x00000000011af590 ***
plug-ins/common/file-png.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/common/file-png.c b/plug-ins/common/file-png.c
index e95d9fd..dc35885 100644
--- a/plug-ins/common/file-png.c
+++ b/plug-ins/common/file-png.c
@@ -1210,8 +1210,8 @@ load_image (const gchar *filename,
while (iter->length--)
{
- data[i * 2 + 1] = alpha[data[i * 2]];
- data[i * 2] -= empty;
+ data[1] = alpha[data[0]];
+ data[0] -= empty;
data += n_components;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]