httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject cvs commit: httpd-2.0/server protocol.c
Date Wed, 05 Dec 2001 01:34:00 GMT
brianp      01/12/04 17:34:00

  Modified:    server   protocol.c
  Log:
  Fixed check for buffer overrun in ap_rgetline()
  
  Revision  Changes    Path
  1.60      +1 -1      httpd-2.0/server/protocol.c
  
  Index: protocol.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/protocol.c,v
  retrieving revision 1.59
  retrieving revision 1.60
  diff -u -r1.59 -r1.60
  --- protocol.c	2001/12/03 12:12:31	1.59
  +++ protocol.c	2001/12/05 01:34:00	1.60
  @@ -257,7 +257,7 @@
               AP_DEBUG_ASSERT(!APR_BRIGADE_EMPTY(req_cfg->bb));
               break;
           }
  -        if (length - 1 < n) {
  +        if (total + length - 1 < n) {
               if (!*s) {
                   *s = apr_palloc(r->pool, length + 2); /* +2 for LF, null */
               }
  
  
  

Mime
View raw message