Merge pull request #10838 from AdmiralCurtiss/volume-verifier-out-of-bounds-read
DiscIO/VolumeVerifier: Avoid out-of-bounds reads on trimmed Wii ISOs.
This commit is contained in:
commit
bae715f396
|
@ -1151,6 +1151,8 @@ void VolumeVerifier::Process()
|
||||||
excess_bytes = 0;
|
excess_bytes = 0;
|
||||||
else
|
else
|
||||||
excess_bytes -= bytes_over_max;
|
excess_bytes -= bytes_over_max;
|
||||||
|
content_read = false;
|
||||||
|
group_read = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
const bool is_data_needed = m_calculating_any_hash || content_read || group_read;
|
const bool is_data_needed = m_calculating_any_hash || content_read || group_read;
|
||||||
|
|
Loading…
Reference in New Issue