Add logic to handle the "reent" bug

This commit is contained in:
Maschell
2026-04-17 23:45:49 +02:00
parent 66fd70e759
commit a22da69f2d
11 changed files with 247 additions and 34 deletions

View File

@@ -47,3 +47,11 @@ size_t PluginData::getMemoryFootprint() const {
return totalSize;
}
void PluginData::setAllowWithReentBug() {
mIsReentBugAllowed = true;
}
bool PluginData::isReentBugAllowed() const {
return mIsReentBugAllowed;
}

View File

@@ -45,10 +45,15 @@ public:
size_t getMemoryFootprint() const;
void setAllowWithReentBug();
bool isReentBugAllowed() const;
private:
std::vector<uint8_t> mBuffer;
std::string mSource;
std::unique_ptr<uint32_t> mHandle = std::make_unique<uint32_t>();
bool mIsReentBugAllowed = false;
};
struct PluginDataSharedPtrComparator {