discomfitor pushed a commit to branch enlightenment-0.19.

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

commit cd04374949418361124d460ef465179431eec5dc
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Tue Apr 21 08:52:19 2015 +0900

    e - xsettings - calloc buffer since we leave 3 of 4 bytes unset
    
    the first 4 bytes is a msb/lsb thing for xsetttings - we ignore 3 of
    the 4 bytes. thus we should just calloc the whole buffer to ensure its 0
---
 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 2df0867..f248968 100644
--- a/src/bin/e_xsettings.c
+++ b/src/bin/e_xsettings.c
@@ -335,7 +335,7 @@ _e_xsettings_apply(Settings_Manager *sm)
    EINA_LIST_FOREACH(settings, l, s)
      len += s->length;
 
-   pos = data = malloc(len);
+   pos = data = calloc(1, len);
    if (!data) return;
 
 #if __BYTE_ORDER == __LITTLE_ENDIAN

-- 


Reply via email to