Limit rsub null termination to where necessary

This commit is contained in:
Martin Vierula
2022-09-06 05:29:38 -07:00
parent 592519f45d
commit d9df7f529e
2 changed files with 4 additions and 0 deletions

View File

@@ -1,6 +1,8 @@
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
[@martinhsv]
* XML parser cleanup: NULL duplicate pointer

View File

@@ -656,7 +656,9 @@ nextround:
msr->if_stream_changed = 1;
memcpy(msr->stream_input_data, data, size);
#ifndef MSC_LARGE_STREAM_INPUT
msr->stream_input_data[size] = '\0';
#endif
var->value_len = size;
var->value = msr->stream_input_data;