Skip to content

Commit a64ba39

Browse files
authored
Merge pull request #1462 from grumpycoders/exe2elf-fix
Fixing exe2elf's boundaries
2 parents 8bce372 + 8dfec4c commit a64ba39

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/exe2elf/exe2elf.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Usage: {} input.ps-exe [-h] -o output.elf
7676

7777
std::vector<uint8_t> dataIn;
7878
dataIn.resize(memory->actualSize());
79-
memory->readAt(dataIn.data(), dataIn.size(), memory->actualSize());
79+
memory->readAt(dataIn.data(), dataIn.size(), memory->lowestAddress());
8080
while ((dataIn.size() & 3) != 0) dataIn.push_back(0);
8181
ELFIO::elfio writer;
8282

0 commit comments

Comments
 (0)