edje - epp - fix possible array access by negative

this should fix CID 1039357
This commit is contained in:
Carsten Haitzler 2013-12-13 20:39:43 +09:00
parent 4bcfee0ef3
commit abb780bf5f
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}