cedric pushed a commit to branch enlightenment-0.17.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=9038dd0b652380b2d0831b7014658575a5a96941

commit 9038dd0b652380b2d0831b7014658575a5a96941
Author: Mike Blumenkrantz <m.blumenk...@samsung.com>
Date:   Thu Apr 18 10:39:58 2013 +0100

    don't apply xsettings if no settings exist
    
    * fixes buffer overflow
---
 src/bin/e_xsettings.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/e_xsettings.c b/src/bin/e_xsettings.c
index b2aa221..1ee5ac4 100644
--- a/src/bin/e_xsettings.c
+++ b/src/bin/e_xsettings.c
@@ -131,7 +131,7 @@ _e_xsettings_activate(Settings_Manager *sm)
                                  ecore_x_current_time_get(), atom,
                                  sm->selection, 0, 0);
 
-   _e_xsettings_apply(sm);
+   if (settings) _e_xsettings_apply(sm);
 
    return 1;
 }

-- 


Reply via email to