Skip to content

Commit

Permalink
Read exact 16 bytes in UUID load command
Browse files Browse the repository at this point in the history
  • Loading branch information
Grivus committed Jun 9, 2023
1 parent 94cec6c commit 0f06793
Showing 1 changed file with 1 addition and 1 deletion.
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 0f06793

Please sign in to comment.