Artic Base: Fix out of bounds cache reads (#127)

This commit is contained in:
PabloMK7 2024-05-16 00:03:40 +02:00 committed by GitHub
parent 893dad57b2
commit 05cccb585d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 56 additions and 11 deletions

View file

@ -88,8 +88,16 @@ public:
}
}
void invalidate(const key_type& key) {
auto i = find(key);
if (i != m_list.cend()) {
m_list.erase(i);
}
}
void clear() {
m_list.clear();
m_array.fill(value_type{});
}
private: