raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=6981d09f9bbce4ea907286fc93982a744567c505

commit 6981d09f9bbce4ea907286fc93982a744567c505
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Wed Feb 12 09:52:03 2020 +0000

    eina - promise - be safe if no scheduled_entry is there
    
    something is causing a scheduled entry to be called with no scheduled
    entry: https://phab.enlightenment.org/T8490 - valgrind trace
    aattached. i can't see it so i don't know what. the only protection i
    can put in is this.
---
 src/lib/eina/eina_promise.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/eina/eina_promise.c b/src/lib/eina/eina_promise.c
index ece5ad0c96..98ef61e03d 100644
--- a/src/lib/eina/eina_promise.c
+++ b/src/lib/eina/eina_promise.c
@@ -425,6 +425,7 @@ _eina_future_dispatch(Eina_Future_Scheduler *scheduler, 
Eina_Future *f, Eina_Val
 static void
 _scheduled_entry_cb(Eina_Future *f, Eina_Value value)
 {
+   EINA_SAFETY_ON_NULL_RETURN(f->scheduled_entry);
    // This function is called by the scheduler, so it has to be defined
    Eina_Future_Scheduler *scheduler = f->scheduled_entry->scheduler;
 

-- 


Reply via email to