DiscIO/VolumeVerifier: Don't try to verify data that would read out of bounds.

This commit is contained in:
Admiral H. Curtiss 2022-07-13 13:35:07 +02:00
parent aa29433754
commit 10407cc8c1
No known key found for this signature in database
GPG Key ID: F051B4C4044F33FB

View File

@ -1151,6 +1151,8 @@ void VolumeVerifier::Process()
excess_bytes = 0;
else
excess_bytes -= bytes_over_max;
content_read = false;
group_read = false;
}
const bool is_data_needed = m_calculating_any_hash || content_read || group_read;