diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2013-12-13 20:39:43 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2013-12-13 21:26:05 +0900 |
commit | abb780bf5f8730cc03b0fcf62d0a10e5ae50aa6a (patch) | |
tree | e641359ee2b21786846e93fcfd39e01822bd0f2c | |
parent | 4bcfee0ef3f571ce627332bb26689d27ffcff388 (diff) |
edje - epp - fix possible array access by negative
this should fix CID 1039357
-rw-r--r-- | src/bin/edje/epp/cpplib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/edje/epp/cpplib.c b/src/bin/edje/epp/cpplib.c index 4314b15f9..031a23050 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); } |