cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=08deba98f864eb26271ddbb4d7d530e1bcd800c9

commit 08deba98f864eb26271ddbb4d7d530e1bcd800c9
Author: Cedric BAIL <[email protected]>
Date:   Thu Oct 5 16:02:47 2017 -0700

    evas: make sure we always open the file and look at its header before 
trying to load data.
---
 src/lib/evas/common/evas_image_load.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/evas/common/evas_image_load.c 
b/src/lib/evas/common/evas_image_load.c
index b871bfe7c8..0ea6a582d6 100644
--- a/src/lib/evas/common/evas_image_load.c
+++ b/src/lib/evas/common/evas_image_load.c
@@ -420,7 +420,7 @@ evas_common_load_rgba_image_data_from_file(Image_Entry *ie)
    evas_image_load_func = ie->info.loader;
    evas_module_use(ie->info.module);
 
-   if (!ie->f)
+   if (!ie->loader_data)
      {
         Evas_Module *em = ie->info.module;
 
@@ -451,7 +451,7 @@ end:
              ie->info.module = em;
           }
      }
-   if ((!ie->f) || (!ie->info.module))
+   if ((!ie->f) || (!ie->info.module) || (!ie->loader_data))
      {
         ie->load_failed = 1;
         return EVAS_LOAD_ERROR_DOES_NOT_EXIST;

-- 


Reply via email to