fix: care non-null terminated chunk data

This commit is contained in:
Nao YONASHIRO 2019-05-17 15:19:09 +09:00 committed by Felipe Zimmerle
parent 52532a1bce
commit 774ff40c96
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277

View File

@ -992,6 +992,7 @@ void sec_audit_logger_json(modsec_rec *msr) {
/* Write the sanitized chunk to the log
* and advance to the next chunk. */
chunk->data[chunk->length] = 0;
yajl_string(g, chunk->data);
chunk_offset += chunk->length;
}