coverity 169273 - off-by-one on cgi chunking swallow limit
This commit is contained in:
parent
d6761e87b5
commit
01020b60f6
1 changed files with 1 additions and 1 deletions
|
@ -2659,7 +2659,7 @@ lws_chunked_html_process(struct lws_process_html_args *args,
|
|||
if (!s->pos)
|
||||
s->start = sp;
|
||||
s->swallow[s->pos++] = *sp;
|
||||
if (s->pos == sizeof(s->swallow))
|
||||
if (s->pos == sizeof(s->swallow) - 1)
|
||||
goto skip;
|
||||
for (n = 0; n < s->count_vars; n++)
|
||||
if (!strncmp(s->swallow, s->vars[n], s->pos)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue