From: Amos Jeffries Date: Thu, 23 Apr 2015 12:04:52 +0000 (-0700) Subject: Ensure class Lock counter remains within bounds X-Git-Tag: SQUID_3_5_4~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbdab4ceff72ba421243ba33246b06daafe17855;p=thirdparty%2Fsquid.git Ensure class Lock counter remains within bounds --- diff --git a/src/base/Lock.h b/src/base/Lock.h index 33eb51a3df..8a995e59ca 100644 --- a/src/base/Lock.h +++ b/src/base/Lock.h @@ -35,6 +35,7 @@ public: #if defined(LOCKCOUNT_DEBUG) old_debug(0,1)("Incrementing this %p from count %u\n",this,count_); #endif + assert(count_ < UINT32_MAX); ++count_; }