fix: Crash when parsing process memory provider regions

This commit is contained in:
WerWolv
2024-07-16 18:11:06 +02:00
parent fc40e8ba70
commit 90e11e1c5d

View File

@@ -438,7 +438,7 @@ namespace hex::plugin::builtin {
const u64 end = std::stoull(split[0].substr(split[0].find('-') + 1), nullptr, 16);
std::string name;
if (split.size() >= 5)
if (split.size() > 5)
name = combineStrings(std::vector(split.begin() + 5, split.end()), " ");
m_memoryRegions.insert({ { start, end - start }, name });