]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Additional array security in HttpHeader::clean()
authoramosjeffries <>
Thu, 2 Aug 2007 04:52:45 +0000 (04:52 +0000)
committeramosjeffries <>
Thu, 2 Aug 2007 04:52:45 +0000 (04:52 +0000)
Coverity pointed out a possible over-run on statHistCount[].
This enforces that the index enums are zero-based same as the array.

src/HttpHeader.h

index 8b0351c8f457a7446e2fb32120bde327994613d7..667518f4ba63f5177159b34eef091461f248a1eb 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: HttpHeader.h,v 1.21 2007/05/29 13:31:37 amosjeffries Exp $
+ * $Id: HttpHeader.h,v 1.22 2007/08/01 22:52:45 amosjeffries Exp $
  *
  *
  * SQUID Web Proxy Cache          http://www.squid-cache.org/
@@ -136,7 +136,7 @@ typedef enum {
 
 /* possible owners of http header */
 typedef enum {
-    hoNone,
+    hoNone =0,
 #if USE_HTCP
     hoHtcpReply,
 #endif