mirror of
https://github.com/nginx/nginx.git
synced 2024-12-18 21:23:36 -06:00
Uwsgi: added a check on maximum uwsgi request size.
Requested by Chris Caputo.
This commit is contained in:
parent
07c3e79b64
commit
b71792b110
@ -960,6 +960,12 @@ ngx_http_uwsgi_create_request(ngx_http_request_t *r)
|
||||
}
|
||||
#endif
|
||||
|
||||
if (len > 65535) {
|
||||
ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0,
|
||||
"uwsgi request is too big: %uz", len);
|
||||
return NGX_ERROR;
|
||||
}
|
||||
|
||||
b = ngx_create_temp_buf(r->pool, len + 4);
|
||||
if (b == NULL) {
|
||||
return NGX_ERROR;
|
||||
|
Loading…
Reference in New Issue
Block a user