Skip to content
Closed
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions changes-entries/authnz-fcgi-stderr-bound.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*) mod_authnz_fcgi: Log the content of a FastCGI stderr record using its
received length instead of treating the buffer as a C string, avoiding a
read past the received bytes. [arshiya tabasum]
4 changes: 2 additions & 2 deletions modules/aaa/mod_authnz_fcgi.c
Original file line number Diff line number Diff line change
Expand Up @@ -629,8 +629,8 @@ static apr_status_t handle_response(const fcgi_provider_conf *conf,
case AP_FCGI_STDERR: /* Text to log */
if (clen) {
ap_log_rerror(APLOG_MARK, APLOG_WARNING, 0, r,
APLOGNO(02507) "%s: Logged from %s: '%s'",
fn, conf->backend, readbuf);
APLOGNO(02507) "%s: Logged from %s: '%.*s'",
fn, conf->backend, (int)readbuflen, readbuf);
}

if (clen > readbuflen) {
Expand Down