raster pushed a commit to branch master.

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

commit abb780bf5f8730cc03b0fcf62d0a10e5ae50aa6a
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Fri Dec 13 20:39:43 2013 +0900

    edje - epp - fix possible array access by negative
    
    this should fix CID 1039357
---
 src/bin/edje/epp/cpplib.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/bin/edje/epp/cpplib.c b/src/bin/edje/epp/cpplib.c
index 4314b15..031a230 100644
--- a/src/bin/edje/epp/cpplib.c
+++ b/src/bin/edje/epp/cpplib.c
@@ -981,7 +981,8 @@ cpp_skip_hspace(cpp_reader * pfile)
             FORWARD(2);
          }
        else if (c == '@' && CPP_BUFFER(pfile)->has_escapes
-                && is_hor_space[PEEKN(1)])
+                && (PEEKN(1) != EOF) && (PEEKN(1) >= 0)
+                && (PEEKN(1) < 256) && is_hor_space[PEEKN(1)])
           {
              FORWARD(1);
           }

-- 


Reply via email to