mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-11 01:22:45 -05:00
Compare commits
2 Commits
v6.22.1
...
3f1d410624
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3f1d410624 | ||
|
|
68b5fa474b |
@@ -88,7 +88,6 @@ bool xmrig::DmiReader::decode(uint8_t *buf)
|
|||||||
}
|
}
|
||||||
|
|
||||||
uint8_t *data = buf;
|
uint8_t *data = buf;
|
||||||
int i = 0;
|
|
||||||
|
|
||||||
while (data + 4 <= buf + m_size) {
|
while (data + 4 <= buf + m_size) {
|
||||||
dmi_header h{};
|
dmi_header h{};
|
||||||
@@ -97,7 +96,6 @@ bool xmrig::DmiReader::decode(uint8_t *buf)
|
|||||||
if (h.length < 4 || h.type == 127) {
|
if (h.length < 4 || h.type == 127) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
i++;
|
|
||||||
|
|
||||||
uint8_t *next = data + h.length;
|
uint8_t *next = data + h.length;
|
||||||
while (static_cast<uint32_t>(next - buf + 1) < m_size && (next[0] != 0 || next[1] != 0)) {
|
while (static_cast<uint32_t>(next - buf + 1) < m_size && (next[0] != 0 || next[1] != 0)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user