keith       01/09/10 08:07:13

  Modified:    src/native/mod_jk/apache1.3 mod_jk.c
  Log:
  General case of chunked input was traversing an unintended code path.
  
  Reported by: David Schreibman <[EMAIL PROTECTED]>
  
  Revision  Changes    Path
  1.15      +3 -2      jakarta-tomcat/src/native/mod_jk/apache1.3/mod_jk.c
  
  Index: mod_jk.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/native/mod_jk/apache1.3/mod_jk.c,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- mod_jk.c  2001/09/08 20:04:28     1.14
  +++ mod_jk.c  2001/09/10 15:07:12     1.15
  @@ -845,12 +845,13 @@
                                         l, 
                                         &is_recoverable_error);
                   
  -                    if (s.content_read < s.content_length || s.is_chunked) {
  +                    if (s.content_read < s.content_length || 
  +                     (s.is_chunked && ! s.no_more_chunks)) {
                           /*
                            * If the servlet engine didn't consume all of the
                            * request data, consume and discard all further
                            * characters left to read from client 
  -                         */
  +                         */
   
                           char *buff = ap_palloc(r->pool, 2048);
                           if (buff != NULL) {
  
  
  

Reply via email to