summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorScott Mansell <phiren@gmail.com>2026-07-26 22:22:18 +1200
committerScott Mansell <phiren@gmail.com>2026-07-28 19:44:49 +1200
commit4782a04c2032e02ba7785b1378036ba30d579ce9 (patch)
tree7c19e81107da248ca3bef00405d05b222b42cf04 /Source/Core
parentfeeb36bf07a187175232340e2e4d8a00d226fca0 (diff)
GCZ: use 64-bit for m_data_offset
A malicious GCZ file could probably force this to be negative. Shouldn't cause any issues other than file read failures, but need to fix because it is causing errors on MSVC.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DiscIO/CompressedBlob.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DiscIO/CompressedBlob.h b/Source/Core/DiscIO/CompressedBlob.h
index 6f44e77976..712bb93917 100644
--- a/Source/Core/DiscIO/CompressedBlob.h
+++ b/Source/Core/DiscIO/CompressedBlob.h
@@ -72,7 +72,7 @@ private:
CompressedBlobHeader m_header = {};
std::vector<u64> m_block_pointers = {};
std::vector<u32> m_hashes = {};
- int m_data_offset = 0;
+ u64 m_data_offset = 0;
File::DirectIOFile m_file = {};
u64 m_file_size = 0;
std::vector<u8> m_zlib_buffer = {};