httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aa...@apache.org
Subject cvs commit: apache-1.3/src/main http_protocol.c
Date Wed, 19 Jun 2002 18:44:26 GMT
aaron       2002/06/19 11:44:26

  Modified:    src/main http_protocol.c
  Log:
  Better document the error cases returned from get_chunk_size().
  
  Revision  Changes    Path
  1.320     +9 -0      apache-1.3/src/main/http_protocol.c
  
  Index: http_protocol.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/main/http_protocol.c,v
  retrieving revision 1.319
  retrieving revision 1.320
  diff -u -r1.319 -r1.320
  --- http_protocol.c	18 Jun 2002 00:59:57 -0000	1.319
  +++ http_protocol.c	19 Jun 2002 18:44:25 -0000	1.320
  @@ -2051,6 +2051,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.
  + */
   API_EXPORT(long) ap_get_chunk_size(char *b)
   {
       long chunksize = 0;
  
  
  

Mime
View raw message