diff options
author | Max Horn | 2008-01-23 17:19:58 +0000 |
---|---|---|
committer | Max Horn | 2008-01-23 17:19:58 +0000 |
commit | 465356ed08bfff2fd249b42e62096f5efb687455 (patch) | |
tree | 3565f3547d00ade399a0ad40198cf4065fdace66 | |
parent | 8e178f2e60c9bc28fc826c1698e4109268281f76 (diff) | |
download | scummvm-rg350-465356ed08bfff2fd249b42e62096f5efb687455.tar.gz scummvm-rg350-465356ed08bfff2fd249b42e62096f5efb687455.tar.bz2 scummvm-rg350-465356ed08bfff2fd249b42e62096f5efb687455.zip |
assert if hashmap iterator is out of bounds (e.g. happens when derefing end()
svn-id: r30623
-rw-r--r-- | common/hashmap.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; |