#2476 Fixed crash in DMI memory reader.

This commit is contained in:
XMRig
2021-07-06 23:07:31 +07:00
parent d6502c52a0
commit b47b01b623

View File

@@ -230,6 +230,10 @@ void xmrig::DmiMemory::setId(const char *slot, const char *bank)
m_slot = slot;
m_bank = bank;
if (!slot || !bank) {
return;
}
try {
std::cmatch cm;
if (std::regex_match(slot, cm, std::regex("^Channel([A-Z])[-_]DIMM(\\d+)$", std::regex_constants::icase))) {