Skip to content

Commit

Permalink
Restore saved position after reading ELF file
Browse files Browse the repository at this point in the history
  • Loading branch information
fjeremic committed May 21, 2020
1 parent a0c27f3 commit 5657b21
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions BinaryTools.Elf/ElfFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ public static ElfFile ReadElfFile(BinaryReader reader)
var sections = new ElfSectionHeaderTable(reader, header);
var segments = new ElfProgramHeaderTable(reader, header, sections);

reader.BaseStream.Position = savedPosition;

return new ElfFile(header, segments, sections);
}
catch (InaccessibleAddressException exception)
Expand Down

0 comments on commit 5657b21

Please sign in to comment.