mirror of
https://github.com/PabloMK7/citra.git
synced 2025-12-18 05:08:47 +00:00
Artic Base: Fix out of bounds cache reads (#127)
This commit is contained in:
parent
893dad57b2
commit
05cccb585d
2 changed files with 56 additions and 11 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue