From 0b57cb3dba6427de46ac760b51ed733a09e6abaa Mon Sep 17 00:00:00 2001 From: amosjeffries <> Date: Thu, 2 Aug 2007 04:52:45 +0000 Subject: [PATCH] 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. --- src/HttpHeader.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5