raster pushed a commit to branch master.

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

commit db447bece5a5929e31ae2282605fe783f5b1444d
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Tue Aug 12 17:45:08 2014 +0900

    fix non 0 terminated buffer in ethmubd slave
    
    this fixes a potential non 0 terminated string buffer in ethumb slave
    process -  harmless for apps, but might happen. this fixes CID 1193232
---
 src/bin/ethumb_client/ethumbd_slave.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/bin/ethumb_client/ethumbd_slave.c 
b/src/bin/ethumb_client/ethumbd_slave.c
index 387908b..735c8c3 100644
--- a/src/bin/ethumb_client/ethumbd_slave.c
+++ b/src/bin/ethumb_client/ethumbd_slave.c
@@ -151,6 +151,7 @@ _ec_pipe_str_read(struct _Ethumbd_Child *ec EINA_UNUSED, 
char **str)
        *str = NULL;
        return 0;
      }
+   buf[size] = 0;
 
    *str = strdup(buf);
    return 1;

-- 


Reply via email to