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, 19 Jun 2002 18:43:29 GMT
aaron       2002/06/19 11:43:29

  Modified:    modules/http http_protocol.c
  Log:
  Better document the error cases returned from get_chunk_size().
  
  Revision  Changes    Path
  1.440     +9 -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.439
  retrieving revision 1.440
  diff -u -r1.439 -r1.440
  --- http_protocol.c	18 Jun 2002 00:14:21 -0000	1.439
  +++ http_protocol.c	19 Jun 2002 18:43:28 -0000	1.440
  @@ -1763,6 +1763,15 @@
       return 1;
   }
   
  +/**
  + * Parse a chunk extension, detect overflow.
  + * There are two error cases:
  + *  1) If the conversion would require too many bits, a -1 is returned.
  + *  2) If the conversion used the correct number of bits, but an overflow
  + *     caused only the sign bit to flip, then that negative number is
  + *     returned.
  + * In general, any negative number can be considered an overflow error.
  + */
   static long get_chunk_size(char *b)
   {
       long chunksize = 0;
  
  
  

Mime
View raw message