xoofx / LibObjectFile

LibObjectFile is a .NET library to read, manipulate and write linker and executable object files (e.g ELF, PE, DWARF, ar...)
BSD 2-Clause "Simplified" License
159 stars 11 forks source link

Fix SliceStream.Seek offset check #19

Closed filipnavara closed 3 years ago

filipnavara commented 3 years ago

Suppose that SliceStream has zero length. At the creation Position will have value 0 and. The check in Seek method would prevent reassigning the 0 to Position property which should be perfectly valid.