From: amosjeffries <> Date: Thu, 2 Aug 2007 04:52:45 +0000 (+0000) Subject: Additional array security in HttpHeader::clean() X-Git-Tag: SQUID_3_0_PRE7~136 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0b57cb3dba6427de46ac760b51ed733a09e6abaa;p=thirdparty%2Fsquid.git Additional array security in HttpHeader::clean() Coverity pointed out a possible over-run on statHistCount[]. This enforces that the index enums are zero-based same as the array. --- diff --git a/src/HttpHeader.h b/src/HttpHeader.h index 8b0351c8f4..667518f4ba 100644 --- a/src/HttpHeader.h +++ b/src/HttpHeader.h @@ -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