httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aa...@apache.org
Subject cvs commit: httpd-2.0/modules/http http_protocol.c
Date Wed, 29 May 2002 14:57:27 GMT
aaron       02/05/29 07:57:27

  Modified:    modules/http http_protocol.c
  Log:
  Ignore leading zeros when parsing hex value for chunk extensions.
  
  Revision  Changes    Path
  1.425     +5 -0      httpd-2.0/modules/http/http_protocol.c
  
  Index: http_protocol.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/http/http_protocol.c,v
  retrieving revision 1.424
  retrieving revision 1.425
  diff -u -r1.424 -r1.425
  --- http_protocol.c	29 May 2002 06:42:58 -0000	1.424
  +++ http_protocol.c	29 May 2002 14:57:26 -0000	1.425
  @@ -1692,6 +1692,11 @@
       long chunksize = 0;
       size_t chunkbits = sizeof(long) * 8;
   
  +    /* Skip leading zeros */
  +    while (*b == '0') {
  +        ++b;
  +    }
  +
       while (apr_isxdigit(*b) && (chunkbits > 0)) {
           int xvalue = 0;
   
  
  
  

Mime
View raw message