From: amosjeffries <> Date: Thu, 2 Aug 2007 05:04:23 +0000 (+0000) Subject: Reduce application abort to using max level IFF level given is >max X-Git-Tag: SQUID_3_0_PRE7~135 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e879923e7856a3e1cc52e78e68849f7a40e315bc;p=thirdparty%2Fsquid.git Reduce application abort to using max level IFF level given is >max --- diff --git a/src/debug.cc b/src/debug.cc index 464bc5ad92..72178fa4c0 100644 --- a/src/debug.cc +++ b/src/debug.cc @@ -1,6 +1,6 @@ /* - * $Id: debug.cc,v 1.102 2007/04/28 22:26:37 hno Exp $ + * $Id: debug.cc,v 1.103 2007/08/01 23:04:23 amosjeffries Exp $ * * DEBUG: section 0 Debug Routines * AUTHOR: Harvest Derived @@ -231,7 +231,9 @@ debugArg(const char *arg) { l = atoi(arg); assert(s >= -1); - assert(s < MAX_DEBUG_SECTIONS); + + if(s >= MAX_DEBUG_SECTIONS) + s = MAX_DEBUG_SECTIONS-1; if (l < 0) l = 0;