[*] Fix TLS thread index out of bounds access

This commit is contained in:
Reece Wilson 2023-05-09 14:21:55 +01:00
parent f842573352
commit 9f59d4f921

View File

@ -96,7 +96,7 @@ namespace Aurora::Threading::Threads
if (uKey >= this->ptrs.size())
{
this->ptrs.reserve(uKey * 2);
this->ptrs.resize(uKey);
this->ptrs.resize(uKey + 1);
}
auto &sharedRef = this->ptrs[uKey];