Skip to content

Commit b219056

Browse files
WTassouxMic92
authored andcommittedFeb 6, 2025
Fix support for files larger than 4GB
1 parent 739a486 commit b219056

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/patchelf.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ void ElfFile<ElfFileParamNames>::shiftFile(unsigned int extraPages, size_t start
492492
{
493493
assert(startOffset >= sizeof(Elf_Ehdr));
494494

495-
unsigned int oldSize = fileContents->size();
495+
auto oldSize = fileContents->size();
496496
assert(oldSize > startOffset);
497497

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

0 commit comments

Comments
 (0)