diff options
| author | JosJuice <josjuice@gmail.com> | 2017-05-26 23:10:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-26 23:10:31 +0200 |
| commit | aa33fabded3ad9300fed0e68c2596decefcd65e5 (patch) | |
| tree | 57fca34d238538551fa8f67f22c3531d404a9890 /Source/Core/DiscIO/VolumeWad.cpp | |
| parent | 700a443c2a89caacbbd6a23f2c2c5991745f1515 (diff) | |
| parent | b5a2f34a3778a1921e2d448557d4557807364f6f (diff) | |
Merge pull request #5483 from leoetlino/max-tmd-size
Check TMD sizes using the actual constant
Diffstat (limited to 'Source/Core/DiscIO/VolumeWad.cpp')
| -rw-r--r-- | Source/Core/DiscIO/VolumeWad.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DiscIO/VolumeWad.cpp b/Source/Core/DiscIO/VolumeWad.cpp index f170abdd47..86932f897b 100644 --- a/Source/Core/DiscIO/VolumeWad.cpp +++ b/Source/Core/DiscIO/VolumeWad.cpp @@ -41,7 +41,7 @@ CVolumeWAD::CVolumeWAD(std::unique_ptr<IBlobReader> reader) : m_reader(std::move m_opening_bnr_offset = m_tmd_offset + Common::AlignUp(m_tmd_size, 0x40) + Common::AlignUp(m_data_size, 0x40); - if (m_tmd_size > 1024 * 1024 * 4) + if (!IOS::ES::IsValidTMDSize(m_tmd_size)) { ERROR_LOG(DISCIO, "TMD is too large: %u bytes", m_tmd_size); return; |
