Skip to content

Commit

Permalink
Fix decrypted reading with the offset is bigger than UINT32_MAX
Browse files Browse the repository at this point in the history
  • Loading branch information
Maschell committed Aug 5, 2022
1 parent f09f8f2 commit 6899987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/WUD/DiscReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ bool DiscReader::readDecrypted(uint8_t *out_buffer, uint64_t clusterOffset, uint
uint32_t blockNumber = (totalOffset / BLOCK_SIZE);
uint32_t blockOffset = (totalOffset % BLOCK_SIZE);

readOffset = (blockNumber * BLOCK_SIZE);
readOffset = ((uint64_t) blockNumber * BLOCK_SIZE);
if (!useFixedIV) {
memset(usedIV, 0, 16);
uint64_t ivTemp = usedFileOffset >> 16;
Expand Down

0 comments on commit 6899987

Please sign in to comment.