1
0
mirror of synced 2024-11-24 15:50:16 +01:00

fix: Crash when using BufferedReader ReverseIterator

This commit is contained in:
WerWolv 2022-07-29 21:44:00 +02:00
parent 419a2875b3
commit 2b9e43db82

View File

@ -53,7 +53,7 @@ namespace hex::prv {
this->updateBuffer(address - std::min<u64>(address, this->m_buffer.size()), size);
auto result = &this->m_buffer[address - this->m_startAddress];
auto result = &this->m_buffer[address - this->m_bufferAddress];
return { result, result + std::min(size, this->m_buffer.size()) };
}