fix potential use-after-free when reallocating cache

This commit is contained in:
tevador
2020-06-27 20:21:06 +02:00
parent 7741eb1e97
commit 32ab5dea54
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -54,6 +54,9 @@ public:
{
return program;
}
const uint8_t* getMemory() const {
return mem.memory;
}
protected:
void initialize();
alignas(64) randomx::Program program;