mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
Check return value of modsecurity_request_body_store
This commit is contained in:
committed by
Felipe Zimmerle
parent
6ce7f4d689
commit
7fff8938ba
@@ -432,7 +432,7 @@ apr_status_t modsecurity_request_body_to_stream(modsec_rec *msr, const char *buf
|
||||
char* allocated = NULL;
|
||||
|
||||
if (msr->stream_input_data == NULL) {
|
||||
// Is the request body length is known beforehand? (requests that are not Transfer-Encoding: chunked)
|
||||
// Is the request body length known beforehand? (requests that are not Transfer-Encoding: chunked)
|
||||
if (msr->request_content_length > 0) {
|
||||
// Use min of Content-Length and SecRequestBodyLimit
|
||||
allocate_length = min(msr->request_content_length, msr->txcfg->reqbody_limit);
|
||||
|
Reference in New Issue
Block a user