Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
sbomer committed Jun 5, 2024
1 parent 4180d2c commit 1558d72
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Test/Mono.Cecil.Tests/PortablePdbTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1172,6 +1172,8 @@ static void GetCodeViewPdbPath (ModuleDefinition module, out string pdbPath)
var cv = Mixin.GetCodeViewEntry (header);
Assert.IsNotNull (cv);

// Sanity check that the CodeView debug directory entry has the expected signature:
// https://github.com/dotnet/runtime/blob/main/docs/design/specs/PE-COFF.md#codeview-debug-directory-entry-type-2
CollectionAssert.AreEqual (new byte [] { 0x52, 0x53, 0x44, 0x53 }, cv.Data.Take (4));

pdbPath = Encoding.UTF8.GetString (cv.Data, 24, cv.Data.Length - 25);
Expand Down

0 comments on commit 1558d72

Please sign in to comment.