]> granicus.if.org Git - apache/commitdiff
Prevent 1-byte overflow on 8192 boundary (see PR 43310)
authorJim Jagielski <jim@apache.org>
Mon, 29 Oct 2007 01:25:16 +0000 (01:25 +0000)
committerJim Jagielski <jim@apache.org>
Mon, 29 Oct 2007 01:25:16 +0000 (01:25 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@589461 13f79535-47bb-0310-9956-ffa450edef68

server/protocol.c

index 697f6997a808e634e6cfbe3554a4f84313b76930..7ab8c273705669da5a88c12bee1768f564a0164f 100644 (file)
@@ -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;