billiob pushed a commit to branch master.

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

commit fd1e4ffd4592152e95a9c080a6826188a2a5ff08
Author: Boris Faure <bill...@gmail.com>
Date:   Thu Sep 4 20:44:02 2014 +0200

    fix segfault when decoding buggy xterm sequence. cf T1625
---
 src/bin/termptyesc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index d9bf1ed..2557e0f 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -1050,7 +1050,7 @@ _xterm_arg_get(Eina_Unicode **ptr)
    Eina_Unicode *b = *ptr;
    int sum = 0;
 
-   while (isdigit(*b))
+   while (*b && isdigit(*b))
      {
         sum *= 10;
         sum += *b - '0';

-- 


Reply via email to