raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=83512198b893845b25c4f5afd49dbea945809ead

commit 83512198b893845b25c4f5afd49dbea945809ead
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Thu Dec 4 16:03:32 2014 +0900

    evas - gif loader - fix technically "wrong" sizeof (doesnt cause a bug)
    
    go from sizeof(char **) to sizeof(char *) ... effectively. so no real bug.
---
 src/modules/evas/loaders/gif/evas_image_load_gif.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/modules/evas/loaders/gif/evas_image_load_gif.c 
b/src/modules/evas/loaders/gif/evas_image_load_gif.c
index e62bf9e..acdf5ab 100644
--- a/src/modules/evas/loaders/gif/evas_image_load_gif.c
+++ b/src/modules/evas/loaders/gif/evas_image_load_gif.c
@@ -211,16 +211,16 @@ _decode_image(GifFileType *gif, DATA32 *data, int rowpix, 
int xin, int yin,
 
    // build a blob of memory to have pointers to rows of pixels
    // AND store the decoded gif pixels (1 byte per pixel) as welll
-   rows = malloc((h * sizeof(GifRowType *)) + (w * h * sizeof(GifPixelType)));
+   rows = malloc((h * sizeof(GifRowType)) + (w * h * sizeof(GifPixelType)));
    if (!rows) goto on_error;
-   
+
    // fill in the pointers at the start
    for (yy = 0; yy < h; yy++)
      {
-        rows[yy] = ((unsigned char *)rows) + (h * sizeof(GifRowType *)) +
+        rows[yy] = ((unsigned char *)rows) + (h * sizeof(GifRowType)) +
           (yy * w * sizeof(GifPixelType));
      }
-   
+
    // if give is interlaced, walk interlace pattern and decode into rows
    if (gif->Image.Interlace)
      {

-- 


Reply via email to