Skip to content

Commit

Permalink
Merge pull request #94 from Grivus/fix-uuid-reading
Browse files Browse the repository at this point in the history
Read exact 16 bytes in UUID load command
  • Loading branch information
konrad-kruczynski authored Jun 14, 2023
2 parents 94cec6c + 6a2508e commit 37620f6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.17.2] - 2023-06-09
### Fixed
- MachO: fix for reading LC_UUID command.

## [2.17.1] - 2023-04-25
### Fixed
- ELF: fix for `SHN_LORESERVE` edge case.
Expand Down
2 changes: 1 addition & 1 deletion ELFSharp/ELFSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>netstandard2.0</TargetFramework>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>sgKey.snk</AssemblyOriginatorKeyFile>
<Version>2.17.1.0</Version>
<Version>2.17.2.0</Version>
<AssemblyVersion>2.0</AssemblyVersion>
<Authors>Konrad Kruczyński, Piotr Zierhoffer, Łukasz Kucharski, Bastian Eicher, Cameron, Everett Maus, Fox, Reuben Olinsky, Connor Christie, Rollrat, Ulysses Wu, Cédric Luthi, Yong Yan, Filip Navara, Dedmen Miller, Murat Ocaktürk, Grivus, Alex E.</Authors>
<Owners>Konrad Kruczyński</Owners>
Expand Down
2 changes: 1 addition & 1 deletion ELFSharp/MachO/UUID.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ internal UUID(SimpleEndianessAwareReader reader, Stream stream) : base(reader, s

private Guid ReadUUID()
{
var rawBytes = Reader.ReadBytes(16).TakeWhile(x => x != 0).ToArray();
var rawBytes = Reader.ReadBytes(16).ToArray();

// Deal here with UUID endianess. Switch scheme is 4(r)-2(r)-2(r)-8(o)
// where r is reverse, o is original order.
Expand Down

0 comments on commit 37620f6

Please sign in to comment.