httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: httpd-2.0/modules/filters mod_include.c
Date Fri, 17 Aug 2001 17:24:46 GMT
trawick     01/08/17 10:24:46

  Modified:    modules/filters mod_include.c
  Log:
  Fix a problem parsing tags.
  
  We're in find_end_sequence() walking over the directive and the rest
  of the tag but we stop parsing so we don't walk over too much storage
  (e.g., mmap) at once).  When we resume later, ctx->directive_length
  has the value it had when we bailed out, so directive_length is wrong
  and we hit errors like:
  
  [Fri Aug 17 11:12:06 2001] [error] [client 127.0.0.1] unknown directiv
  e "include virt" in parsed doc /home/trawick/apacheinst/htdocs/manual/
  mod/mod_include.html
  
  Revision  Changes    Path
  1.122     +2 -0      httpd-2.0/modules/filters/mod_include.c
  
  Index: mod_include.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/filters/mod_include.c,v
  retrieving revision 1.121
  retrieving revision 1.122
  diff -u -r1.121 -r1.122
  --- mod_include.c	2001/08/11 04:04:12	1.121
  +++ mod_include.c	2001/08/17 17:24:46	1.122
  @@ -270,6 +270,8 @@
           }
           while (c < buf + len) {
               if (ctx->bytes_parsed >= BYTE_COUNT_THRESHOLD) {
  +                /* gonna start over parsing the directive next time through */
  +                ctx->directive_length = 0;
                   return dptr;
               }
   
  
  
  

Mime
View raw message