cedric pushed a commit to branch master.

commit 2efcd3bb198cd84df9091e1afa03063c58cefd6f
Author: Cedric Bail <[email protected]>
Date:   Fri Jul 5 11:34:34 2013 +0900

    evas: fix gif loader accessing uninitialized value.
---
 src/modules/evas/loaders/gif/evas_image_load_gif.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 7f9d484..ed7d89f 100644
--- a/src/modules/evas/loaders/gif/evas_image_load_gif.c
+++ b/src/modules/evas/loaders/gif/evas_image_load_gif.c
@@ -911,7 +911,7 @@ evas_image_load_specific_frame(Eina_File *f,
         goto on_error;
      }
 
-   gif_frame = malloc(sizeof (Gif_Frame));
+   gif_frame = calloc(1, sizeof (Gif_Frame));
    if (!gif_frame)
      {
         *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;

-- 

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

Build for Windows Store.

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

Reply via email to