Skip to content

Commit

Permalink
Fix support for files larger than 4GB
Browse files Browse the repository at this point in the history
  • Loading branch information
WTassoux authored and Mic92 committed Feb 6, 2025
1 parent 739a486 commit b219056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/patchelf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ void ElfFile<ElfFileParamNames>::shiftFile(unsigned int extraPages, size_t start
{
assert(startOffset >= sizeof(Elf_Ehdr));

unsigned int oldSize = fileContents->size();
auto oldSize = fileContents->size();
assert(oldSize > startOffset);

/* Move the entire contents of the file after 'startOffset' by 'extraPages' pages further. */
Expand Down

0 comments on commit b219056

Please sign in to comment.