]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Ensure class Lock counter remains within bounds
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 23 Apr 2015 12:04:52 +0000 (05:04 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 23 Apr 2015 12:04:52 +0000 (05:04 -0700)
src/base/Lock.h

index 33eb51a3df7e4aa3f499b65a9f5bf91b43b07990..8a995e59ca5487067670fc1ab4d7eadd707395f6 100644 (file)
@@ -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_;
     }