Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #10838 from AdmiralCurtiss/volume-verifier-out-of-…
…bounds-read

DiscIO/VolumeVerifier: Avoid out-of-bounds reads on trimmed Wii ISOs.
  • Loading branch information
AdmiralCurtiss committed Jul 13, 2022
2 parents cb350ae + 10407cc commit bae715f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Core/DiscIO/VolumeVerifier.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit bae715f

Please sign in to comment.