Skip to content

Commit

Permalink
Fixed: chuck null pointer when unknown CT is sent and over in-memory …
Browse files Browse the repository at this point in the history
…limit
  • Loading branch information
brenosilva committed Apr 4, 2013
1 parent d8262fc commit 0840b13
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apache2/msc_reqbody.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ static apr_status_t modsecurity_request_body_store_memory(modsec_rec *msr,

/* Would storing this chunk mean going over the limit? */
if ((msr->msc_reqbody_spilltodisk)
&& (msr->txcfg->reqbody_buffering != REQUEST_BODY_FORCEBUF_ON)
&& (msr->msc_reqbody_length + length > (apr_size_t)msr->txcfg->reqbody_inmemory_limit))
{
msc_data_chunk **chunks;
Expand Down

0 comments on commit 0840b13

Please sign in to comment.