Skip to content

Commit

Permalink
Merge pull request #1462 from grumpycoders/exe2elf-fix
Browse files Browse the repository at this point in the history
Fixing exe2elf's boundaries
  • Loading branch information
nicolasnoble authored Nov 14, 2023
2 parents 8bce372 + 8dfec4c commit a64ba39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/exe2elf/exe2elf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Usage: {} input.ps-exe [-h] -o output.elf

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

Expand Down

0 comments on commit a64ba39

Please sign in to comment.