cedric pushed a commit to branch master.

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

commit 4cb4a8c70af20f08175fa043722e2cec710605c8
Author: jiin.moon <jiin.m...@samsung.com>
Date:   Tue May 26 18:31:12 2015 +0200

    embryo_cc: prevent memory curruption
    
    Summary:
    modified codes according to prevent result,
    @fix
    
    Reviewers: Jaehyun, Hermet, cedric
    
    Reviewed By: cedric
    
    Subscribers: cedric
    
    Differential Revision: https://phab.enlightenment.org/D2564
    
    Signed-off-by: Cedric BAIL <ced...@osg.samsung.com>
---
 src/bin/embryo/embryo_cc_sc2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/embryo/embryo_cc_sc2.c b/src/bin/embryo/embryo_cc_sc2.c
index 7f0a125..6956a80 100644
--- a/src/bin/embryo/embryo_cc_sc2.c
+++ b/src/bin/embryo/embryo_cc_sc2.c
@@ -1042,7 +1042,7 @@ command(void)
                       while ((*lptr <= ' ') && (*lptr != '\0'))
                          lptr++;
                       for (i = 0; 
-                            (i < (int)(sizeof(name))) && 
+                            (i < (int)(sizeof(name)) - 1) &&
                             (alphanum(*lptr));
                            i++, lptr++)
                          name[i] = *lptr;

-- 


Reply via email to