cedric pushed a commit to branch master.

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

commit f52f5628916f44a6b8ce1fdd3b9cc40f6c997eda
Author: Romain Perier <romain.per...@openwide.fr>
Date:   Fri Jan 30 10:49:58 2015 +0100

    eina: eina_file - fix "invalid read of size 1" in valgrind
    
    @fix
    
    Signed-off-by: Cedric BAIL <ced...@osg.samsung.com>
---
 src/lib/eina/eina_file_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/eina/eina_file_common.c b/src/lib/eina/eina_file_common.c
index 3e5b615..6a573da 100644
--- a/src/lib/eina/eina_file_common.c
+++ b/src/lib/eina/eina_file_common.c
@@ -88,7 +88,7 @@ _eina_file_escape(char *path, size_t len)
                    char tmp;
 
                    len -= p + 3 - q;
-                   memmove(q, p + 3, len - (q - result));
+                   memmove(q, p + 3, len - (q - result) - 1);
                    result[len] = '\0';
                    p = q;
 

-- 


Reply via email to