mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Limit rsub null termination to where necessary
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -1,6 +1,8 @@
|
|||||||
DD mmm YYYY - 2.9.x (to be released)
|
DD mmm YYYY - 2.9.x (to be released)
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
|
* Limit rsub null termination to where necessary
|
||||||
|
[Issue #2794 - @marcstern, @martinhsv]
|
||||||
* IIS: Update dependencies for next planned release
|
* IIS: Update dependencies for next planned release
|
||||||
[@martinhsv]
|
[@martinhsv]
|
||||||
* XML parser cleanup: NULL duplicate pointer
|
* XML parser cleanup: NULL duplicate pointer
|
||||||
|
@@ -656,7 +656,9 @@ nextround:
|
|||||||
msr->if_stream_changed = 1;
|
msr->if_stream_changed = 1;
|
||||||
|
|
||||||
memcpy(msr->stream_input_data, data, size);
|
memcpy(msr->stream_input_data, data, size);
|
||||||
|
#ifndef MSC_LARGE_STREAM_INPUT
|
||||||
msr->stream_input_data[size] = '\0';
|
msr->stream_input_data[size] = '\0';
|
||||||
|
#endif
|
||||||
|
|
||||||
var->value_len = size;
|
var->value_len = size;
|
||||||
var->value = msr->stream_input_data;
|
var->value = msr->stream_input_data;
|
||||||
|
Reference in New Issue
Block a user