Browse Source

[core] discard oversized trailers

x-ref:
  "PVS-Studio Analysis Results"
  https://redmine.lighttpd.net/boards/3/topics/8459
  http://www.fly-server.ru/pvs-studio/lighttpd/
personal/stbuehler/fix-fdevent
Glenn Strauss 3 years ago
parent
commit
9948537721
  1. 1
      src/connections-glue.c

1
src/connections-glue.c

@ -190,6 +190,7 @@ static handler_t connection_handle_read_post_chunked(server *srv, connection *co
/* ignore excessively long trailers;
* disable keep-alive on connection */
con->keep_alive = 0;
p = c->mem->ptr + buffer_string_length(c->mem) - 4;
}
}
hsz = p + 4 - (c->mem->ptr+c->offset);

Loading…
Cancel
Save