Skip to content

Commit 774ff40

Browse files
orisanoFelipe Zimmerle
authored andcommitted
fix: care non-null terminated chunk data
1 parent 52532a1 commit 774ff40

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apache2/msc_logging.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -992,6 +992,7 @@ void sec_audit_logger_json(modsec_rec *msr) {
992992

993993
/* Write the sanitized chunk to the log
994994
* and advance to the next chunk. */
995+
chunk->data[chunk->length] = 0;
995996
yajl_string(g, chunk->data);
996997
chunk_offset += chunk->length;
997998
}

0 commit comments

Comments
 (0)