From: Jim Jagielski Date: Mon, 29 Oct 2007 01:25:16 +0000 (+0000) Subject: Prevent 1-byte overflow on 8192 boundary (see PR 43310) X-Git-Tag: 2.3.0~1304 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6c0689eeaeaac40263bdd9281a8d16f0bd9788ce;p=apache Prevent 1-byte overflow on 8192 boundary (see PR 43310) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@589461 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/protocol.c b/server/protocol.c index 697f6997a8..7ab8c27370 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -1525,7 +1525,7 @@ AP_DECLARE(int) ap_vrprintf(request_rec *r, const char *fmt, va_list va) { apr_size_t written; struct ap_vrprintf_data vd; - char vrprintf_buf[AP_IOBUFSIZE]; + char vrprintf_buf[AP_IOBUFSIZE+1]; vd.vbuff.curpos = vrprintf_buf; vd.vbuff.endpos = vrprintf_buf + AP_IOBUFSIZE;