stefan pushed a commit to branch eet-1.7.

commit ae66fce6900bcb24bf572f0b1ae80dd4c7e2f5a3
Author: Stefan Schmidt <[email protected]>
Date:   Fri Jun 28 09:38:05 2013 +0100

    eet_image: Initialize bigend_data to NULL to avoid segfaults.
    
    We are not initializing bigend_data but freeing it later
    unconditional which might result in segfaults. Better play
    safe here and set it to NULL. Fixes phab issue T195.
---
 ChangeLog           | 6 +++++-
 NEWS                | 1 +
 src/lib/eet_image.c | 2 +-
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index fd313e9..da10520 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -686,6 +686,10 @@
 
         * 1.7.6 release
 
-2013-06-011  Stefan Schmidt
+2013-06-11  Stefan Schmidt
 
         * Fix memory leak in eet_image
+
+2013-06-28  Stefan Schmidt
+
+        * Fix segfault in edje_cc in some case when using eet
diff --git a/NEWS b/NEWS
index 390aac6..fcd4089 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@ Changes since Eet 1.7.7:
 
 Fixes:
     * Fix memory leak in eet_image.
+    * With segfault with edje_cc in some cases
 
 Eet 1.7.7
 
diff --git a/src/lib/eet_image.c b/src/lib/eet_image.c
index 4bf515c..1756973 100644
--- a/src/lib/eet_image.c
+++ b/src/lib/eet_image.c
@@ -746,7 +746,7 @@ eet_data_image_lossless_compressed_convert(int         
*size,
 
    {
       unsigned char *d, *comp;
-      int *header, *bigend_data, ret, ok = 1;
+      int *header, *bigend_data = NULL, ret, ok = 1;
       uLongf buflen = 0;
 
       buflen = (((w * h * 101) / 100) + 3) * 4;

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to