mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
fix: care non-null terminated chunk data
This commit is contained in:
parent
52532a1bce
commit
774ff40c96
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user