bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=174f35544678c436f8c71ac1562fcb982e783228

commit 174f35544678c436f8c71ac1562fcb982e783228
Author: Marcel Hollerbach <[email protected]>
Date:   Mon Sep 26 11:44:47 2016 +0200

    ecore_wl2: fix array overflow
    
    fixes CID 1363215
---
 src/lib/ecore_wl2/ecore_wl2_dnd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/ecore_wl2/ecore_wl2_dnd.c 
b/src/lib/ecore_wl2/ecore_wl2_dnd.c
index 9b9af76..14257cd 100644
--- a/src/lib/ecore_wl2/ecore_wl2_dnd.c
+++ b/src/lib/ecore_wl2/ecore_wl2_dnd.c
@@ -590,7 +590,7 @@ data_offer_source_actions(void *data, struct wl_data_offer 
*wl_data_offer EINA_U
 
    offer->actions = 0;
 
-   for (i = 0; i < sizeof(types); ++i)
+   for (i = 0; types[i] != 0; ++i)
    {
       if (source_actions & types[i])
         offer->actions |= _wl_to_action_convert(types[i]);

-- 


Reply via email to