billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=572f2301f5b64ebe6e3364a195d7d030ada15f58

commit 572f2301f5b64ebe6e3364a195d7d030ada15f58
Author: Boris Faure <bill...@gmail.com>
Date:   Wed Aug 13 03:18:43 2014 +0200

    fix out of bounds access. CID 1231069
---
 src/bin/termio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/termio.c b/src/bin/termio.c
index f3e3374..74acb68 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -2597,7 +2597,7 @@ _codepoint_is_wordsep(const Eina_Unicode g)
        0xff65,
        0xe002a
    };
-   size_t imax = sizeof(wordsep)/sizeof(wordsep[0]),
+   size_t imax = sizeof(wordsep)/sizeof(wordsep[0]) - 1,
           imin = 0;
 
   while (imax >= imin)

-- 


Reply via email to