Browse Source

[core] fix triggered assert on HTTP chunked input (fixes #2822)

(thx AlxT)

x-ref:
  "Segmentation fault on HTTP chunked input"
  https://redmine.lighttpd.net/issues/2822
personal/stbuehler/mod-csrf
Glenn Strauss 4 years ago
parent
commit
a156fdbc7b
  1. 1
      src/connections-glue.c

1
src/connections-glue.c

@ -125,6 +125,7 @@ static handler_t connection_handle_read_post_chunked(server *srv, connection *co
while (0 == te_chunked) {
char *p;
chunk *c = cq->first;
if (NULL == c) break;
force_assert(c->type == MEM_CHUNK);
p = strchr(c->mem->ptr+c->offset, '\n');
if (NULL != p) { /* found HTTP chunked header line */

Loading…
Cancel
Save