forked from enlightenment/efl
Elm cnp: Fix string bounds checking.
Patch by Hyoyoung Chang. SVN revision: 60269
This commit is contained in:
parent
5b30088911
commit
b0f58c2b27
|
@ -1198,7 +1198,7 @@ mark_up(const char *start, int inlen, int *lenp)
|
|||
q = ret = malloc(l + 1);
|
||||
|
||||
/* Second pass: Change characters */
|
||||
for (p = start; *p; )
|
||||
for (p = start; ((!endp) || (p < endp)) && (*p); )
|
||||
{
|
||||
for (i = 0; i < N_ESCAPES; i++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue