raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=31f8c6f17e1b62ecdc95f3bd0a51dcd7552419d5

commit 31f8c6f17e1b62ecdc95f3bd0a51dcd7552419d5
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Sun Oct 29 11:19:48 2017 +0900

    eina debug - ensure sockaddr is 0'd out before filling in to avoid junk
    
    valgrind does complain about this. i'm not sure it matters but it's
    safer to 0 it out in case some field is being used that we don't think
    is being used that we didn't set.
---
 src/lib/eina/eina_debug.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/eina/eina_debug.c b/src/lib/eina/eina_debug.c
index c72f495a83..c3b1a24ab2 100644
--- a/src/lib/eina/eina_debug.c
+++ b/src/lib/eina/eina_debug.c
@@ -514,6 +514,7 @@ eina_debug_local_connect(Eina_Bool is_master)
                   sizeof(curstate)) < 0)
      goto err;
    // sa that it's a unix socket and where the path is
+   memset(&socket_unix, 0, sizeof(socket_unix));
    socket_unix.sun_family = AF_UNIX;
    strncpy(socket_unix.sun_path, buf, sizeof(socket_unix.sun_path) - 1);
    socket_unix_len = LENGTH_OF_SOCKADDR_UN(&socket_unix);

-- 


Reply via email to