Skip to content

fix: care non-null terminated chunk data #2097

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apache2/msc_logging.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down