git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95810
13f79535-47bb-0310-9956-
ffa450edef68
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;