mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-23 12:35:42 +01:00
prepo: : Don't read extra buffer from report unless passed
Prepo doesn't always pass a secondary buffer, we assume it always does which leads to a bad read.
This commit is contained in:
parent
b66ccaa376
commit
2f0b322e72
@ -75,9 +75,14 @@ private:
|
|||||||
const auto user_id = rp.PopRaw<u128>();
|
const auto user_id = rp.PopRaw<u128>();
|
||||||
const auto process_id = rp.PopRaw<u64>();
|
const auto process_id = rp.PopRaw<u64>();
|
||||||
std::vector<std::vector<u8>> data{ctx.ReadBuffer(0)};
|
std::vector<std::vector<u8>> data{ctx.ReadBuffer(0)};
|
||||||
|
|
||||||
if constexpr (Type == Core::Reporter::PlayReportType::Old2) {
|
if constexpr (Type == Core::Reporter::PlayReportType::Old2) {
|
||||||
|
const auto read_buffer_count =
|
||||||
|
ctx.BufferDescriptorX().size() + ctx.BufferDescriptorA().size();
|
||||||
|
if (read_buffer_count > 1) {
|
||||||
data.emplace_back(ctx.ReadBuffer(1));
|
data.emplace_back(ctx.ReadBuffer(1));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
LOG_DEBUG(
|
LOG_DEBUG(
|
||||||
Service_PREPO,
|
Service_PREPO,
|
||||||
|
Loading…
Reference in New Issue
Block a user