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

This commit is contained in:
PabloMK7
2024-05-16 00:03:40 +02:00
parent c9349a8de4
commit 475a061a72
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: