From 465356ed08bfff2fd249b42e62096f5efb687455 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 23 Jan 2008 17:19:58 +0000 Subject: assert if hashmap iterator is out of bounds (e.g. happens when derefing end() svn-id: r30623 --- common/hashmap.h | 1 + 1 file changed, 1 insertion(+) (limited to 'common') diff --git a/common/hashmap.h b/common/hashmap.h index d5e2cdcaf3..f78447ace4 100644 --- a/common/hashmap.h +++ b/common/hashmap.h @@ -135,6 +135,7 @@ public: Node *deref() const { assert(_hashmap != 0); + assert(_idx < _arrsize); Node *node = _hashmap->_arr[_idx]; assert(node != 0); return node; -- cgit v1.2.3