Skip to content

Commit

Permalink
Fixing exe2elf's boundaries
Browse files Browse the repository at this point in the history
No idea how this worked before, and I know it worked before.
  • Loading branch information
nicolasnoble authored Nov 14, 2023
1 parent 8bce372 commit 8dfec4c
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 8dfec4c

Please sign in to comment.